> I'm trying to build the FLTK 1.3.0 with --enable-shared > option under Centos 5.4 x86_64 and meet the following error. > > > === making src === > g++ -L. -L/usr/lib64 -Wl,-soname,libfltk.so.1.3 -lXext -lXft > -lfontconfig -lXinerama -lpthread -ldl -lm -lX11 -shared > -fPIC -o libfltk.so.1.3 ... > /usr/bin/ld: Fl.o: relocation R_X86_64_32 against `a local > symbol' can not be used when making a shared object; > recompile with -fPIC > Fl.o: could not read symbols: Bad value > collect2: ld returned 1 exit status > > Does anyone have ideas?
I'm not sure if this is a fltk problem or a compiler problem - I *suspect* that it is a problem with fltk's configure script, maybe, but am not sure. It might be a tools/compiler problem on Centos, though that is less likely. I do not currently have any x86_64 linux system to test on. However, lots of libs are suffering from this moving to x86_64, so it's all over google... The gentoo folk have a nice description of things to try here: http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3 In the short term, try hand-editing the generated makeinclude file and add -fPIC to the CFLAGS and CXXFLAGS settings and see if that helps. Please let us know how that goes. Thanks... SELEX Galileo Ltd Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

