Hi, I often write shared library (DLL and SO). With DLL I have no serious problems, but with SO I often have "relocation R_X86_64_32S" error. If I use lazarus standard packages (LCL, etc.) then is ok, but If I try to use some external components (for example lNET, RichMemo) then I get this error. lNet example:
/lnet-svn/trunk/lazaruspackage/lib/x86_64-linux/lhttp.o: relocation R_X86_64_32S against `TC_LHTTP_HTTPSTATUSCODES' can not be used when making a shared object; recompile with -fPIC /lnet-svn/trunk/lazaruspackage/lib/x86_64-linux/lhttp.o: could not read symbols: Bad value I build project with -fPIC switch and reinstall lNet package with -fPIC switch and rebuild lazarus with -fPIC switch but nothing helped. This error occurs in different files, depending on where I put the -fPIC switch (lnet package installer, project options or lazarus build editor) I'm wondering, what is the reason of this error. Must I report it to author? I always create lazarus and fpc deb packages from SVN using create_fpc_deb.sh and create_lazarus_deb.sh scripts. Maybe I need some extra switch? Problems are on Ubuntu 10.10 64bit, GNOME GTK2. Regards
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal