Your message dated Thu, 14 Feb 2008 05:16:42 -0600
with message-id <[EMAIL PROTECTED]>
and subject line Re: Linking against libboost_serialization fails on AMD64
has caused the Debian Bug report #430001,
regarding Linking against libboost_serialization fails on AMD64
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
430001: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=430001
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: libboost-serialization-dev
Version: 1.33.1-10

When building a shared library the linker outputs the following error:

[EMAIL PROTECTED]:~/shibboleth-1.3/shib-memcache-ccache$ /bin/sh ../ libtool --silent --mode=link --tag=CXX g++ -DBIG_JOINS=1 -pthread - Wall -O2 -DNDEBUG -L/usr/local/shib-sp/lib -llog4cpp -lnsl -o shib- memcache-ccache.la -rpath /usr/local/shib-sp/libexec -module -avoid- version shib-memcache-ccache.lo ../shib-target/libshib-target.la ../ shib/libshib.la -lsaml -lxml-security-c -lxerces-c /usr/local/apr- util/lib/libaprutil-1.la -lboost_serialization /usr/bin/ld: /usr/lib/libboost_serialization.a(basic_iarchive.o): relocation R_X86_64_32S against `vtable for boost::archive::detail::basic_iarchive' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libboost_serialization.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

This library should be compiled with the -fPIC flag, at least on AMD64. I compiled it with this flag and the problem went away.







--- End Message ---
--- Begin Message ---
On Thu, Jun 21, 2007 at 05:45:06PM +0100, André Cruz wrote:
> Package: libboost-serialization-dev
> Version: 1.33.1-10
>
> When building a shared library the linker outputs the following error:
>
> [EMAIL PROTECTED]:~/shibboleth-1.3/shib-memcache-ccache$ /bin/sh ../libtool 
> --silent --mode=link --tag=CXX g++ -DBIG_JOINS=1 -pthread  -Wall -O2 
> -DNDEBUG  -L/usr/local/shib-sp/lib -llog4cpp -lnsl  -o shib- 
> memcache-ccache.la -rpath /usr/local/shib-sp/libexec -module -avoid- 
> version shib-memcache-ccache.lo ../shib-target/libshib-target.la ../ 
> shib/libshib.la -lsaml -lxml-security-c -lxerces-c  /usr/local/apr- 
> util/lib/libaprutil-1.la -lboost_serialization
> /usr/bin/ld: /usr/lib/libboost_serialization.a(basic_iarchive.o):  
> relocation R_X86_64_32S against `vtable for  
> boost::archive::detail::basic_iarchive' can not be used when making a  
> shared object; recompile with -fPIC
> /usr/lib/libboost_serialization.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
>
> This library should be compiled with the -fPIC flag, at least on AMD64. I 
> compiled it with this flag and the problem went away.

I believe, rather, that the problem lies in your build process.  When
you are creating a shared lib, you should link with
libboost_serialization.so rather than libboost_serialization.a.  The
former is inded linked using -fPIC; see

http://buildd.debian.org/fetch.cgi?&pkg=boost&ver=1.33.1-10&arch=arm&stamp=1168072635&file=log

-Steve

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to