Subject: [Boost-build] Problem with -fPIC and boost::detail::sp_counted_base
From: Bo Jensen (jensen.bo_at_[hidden])
Date: 2011-04-29 06:00:39
I am building static library on 64 bit linux, but get this error :
relocation R_X86_64_32 against `vtable for
boost::detail::sp_counted_base' can not be used when making a shared
object; recompile with -fPIC
could not read symbols: Bad value
Everything is compiled with -fPIC, so I am a bit confused with this
link error. Further more there are so many hits in the code base on
this function, so I can not really figure out where the problem is and
how to fix it.
I am using lintel to compile and gcc for linking, but the same error
happens with gcc for both compile and link.
Any thoughts ?
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk