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

Re: ld error

On Wed, Oct 13, 2004 at 07:59:32PM -0400, Don Hayward wrote:
> I'm trying to build the mythtv package from the source deb.  I get
> this error when the mythtv lib is being assembled:
> /usr/bin/ld: 
> /usr/lib/gcc-lib/x86_64-linux/3.3.5/../../../../lib64/liblirc_client.a(lirc_client.o): relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
> /usr/lib/gcc-lib/x86_64-linux/3.3.5/../../../../lib64/liblirc_client.a: 
> could not read symbols: Bad value

This looks like you're trying to make a shared object and linking
to a static object.  The debian policy says that shared objects
(.so) should be build using -fPIC and that static libs (.a)
should be build without.

So basicly what you see is normal and expected.

I have no idea why it's trying to link to the static version when
the shared version should be available too.

> My system is from the pure64 archive, including gcc-3.3.  Would moving
> over to the gcc-3.4 archive and that compiler solve this problem?

This should have nothing to do with it.  If the gcc-3.4 archive has
the liblirc_client.a build using -fPIC it's actually a bug in
gcc-3.4 archive.  Could you check that it's linked to the shared
version or not?


Reply to: