[fpc-pascal] Problems with "relocation errors"
Krzysztof
dibo20 at wp.pl
Fri Nov 5 18:29:04 CET 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20101105/f01a00b1/attachment.html>
More information about the fpc-pascal
mailing list