automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: R_X86_64_32S error building a shared library


From: Adam Nielsen
Subject: Re: R_X86_64_32S error building a shared library
Date: Mon, 26 Jan 2009 12:57:08 +1000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.8.1.18) Gecko/20081215 Thunderbird/2.0.0.18 Mnenhy/0.7.5.0

x86_64-pc-linux-gnu/bin/ld:
.../lib64/libboost_system-mt-1_37.a(error_code.o): relocation R_X86_64_32S
against `a local symbol' can not be used when making a  shared object;
recompile with -fPIC
.../lib64/libboost_system-mt-1_37.a: could not read symbols: Bad value
You do not need to have boost available as a shared library.
Sorry Jan, I don't understand - how can I link my library in with the user's
local installation of Boost if it's not available as a shared library?

I do not truly have an answer for that. But if I remember correctly,
I had seen ".pic.a" libraries previously which, I would say,
would alleviate the problem, short of them being much less widespread
in use than .a archives already are.

It really seems uncommon to me for users not to have shared libraries
these days..

Sorry, I should've expressed that more clearly - I didn't think it was possible to link with a user's local installation of Boost if it wasn't in shared-library form.

I have Boost installed on my system as a shared library, so I don't understand why libtool/gcc won't link to it.

Thanks,
Adam.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]