Hi,

On Sun, 2010-04-11 at 20:35 +0100, Andrew Dunk wrote:
> Hi Carsten,
> 
> Thanks for the reply, I made the changes, but now I am getting a linking 
> error:
> 
> g++ -shared  -olib-dbg/libOSGContrib.so \
>           
> -L/home/buildslave/OpenSG/Builds/x86_64-unknown-linux-gnu-g++/BaseLib/lib-dbg 
>  
> -L/home/buildslave/OpenSG/Builds/x86_64-unknown-linux-gnu-g++/SystemLib/lib-dbg
>    obj-dbg/OSGFTGLFontBase.o obj-dbg/OSGFTGLFont.o obj-dbg/OSGFTGLTextBase.o 
> obj-dbg/OSGFTGLText.o  -lOSGBase  -lOSGSystem  -lGLU -lGL -lXext -lXmu -lXi 
> -lXt -lICE -lSM -lX11 -lftgl -lfreetype -lpthread -ldl -lm  
> -L/usr/X11R6/lib64       \
>           -g   
> 
> /usr/bin/ld: 
> /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../lib/libftgl.a(FTFont.o): 
> relocation R_X86_64_32S against `vtable for FTFont' can not be used when 
> making a shared object; recompile with -fPIC
> /usr/lib/gcc/x86_64-linux-gnu/4.2.4/../../../../lib/libftgl.a: could not read 
> symbols: Bad value
> collect2: ld returned 1 exit status
> make[3]: *** [lib-dbg/libOSGContrib.so] Error 1
> 
> How do I go about recompiling it with PIC?  I think in the past when I 
> have compile this it would use -fPIC anyway??  I could be making that up 
> though...
> 

just to be sure because it is not entirely clear about which
recompilation you ask, you have to rebuild libftgl.a with -fPIC
or check if there is a libftgl.so available and use this one.

Usually packages these days should have a configure flag to add -fPIC
to the static builds, if not you have to add it to the CFLAGS/CXXFLAGS
passed  to configure.

kind regards
  gerrit



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to