[Top][All Lists]

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

Re: R_X86_64_32S error building a shared library

From: Ralf Wildenhues
Subject: Re: R_X86_64_32S error building a shared library
Date: Wed, 21 Jan 2009 22:40:21 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hello Adam,

* Adam Nielsen wrote on Wed, Jan 21, 2009 at 12:32:57PM CET:
> 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

Please post the full command that causes this (libtool --mode=link ...)
including all of its output.

> libtest_la_SOURCES = main.cpp $(top_srcdir)/include/gamearchive.hpp
> The $(BOOST_*) variables are set by the "boost.m4" file from the Boost  
> website.  This does work fine if I use $(BOOST_*) in my executable, but 
> it doesn't work with the shared library.

Please post an URL to the macro file you have downloaded (IIRC there is
more than one set of such macros).  It may be necessary to also see the
output of configure and/or parts of config.log in order to fully
understand what's going on, but I'll be able to ask more specific
questions with the information asked above.


reply via email to

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