Hi,<br>
<br>
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:<br>
<br>
/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<br>
/lnet-svn/trunk/lazaruspackage/lib/x86_64-linux/lhttp.o: could not read symbols: Bad value<br>
<br>
I build project with -fPIC switch and reinstall lNet package with -fPIC
switch and rebuild lazarus with -fPIC switch but nothing helped.<br>
This error occurs in different files, depending on where I put the -fPIC
switch (lnet package installer, project options or lazarus build
editor)<br>
<br>
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?<br>
<br>
Problems are on Ubuntu 10.10 64bit, GNOME GTK2.<br>
<br>
Regards<br>