> 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?
>
> BTW, I don't have problem to build a statistic library (without
> --enable-shared) from same source code.  Meanwhile, my GCC version
> is 4.4.2-50.


I've just downloaded and built, both with just 'make' and then with
'./configure --enable-shared ; make' on a 64-bit CentOS 5.6 machine
with gcc-4.1.2 as the default compiler, without problems.

I see the same compile line as you:
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 ...

That doesn't help you with CentOS 5.4 and gcc-4.4.2-50 though :-(

D.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to