Boost logo

Boost Users :

Subject: Re: [Boost-users] building Boost with -fPIC on x86_64 linux box
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-04-07 12:19:35


Francois Mauger wrote:

> Hi boosters,
>
> He is my problem:
> I have a AMD 64 Linux box with boost installed on it, particularly with
> the Boost.Python component. Boost version is 1.34.1 (an old one
> but the same problem occurs with new 1.38.0 as explained below).
> also gcc version is 3.4.6.
...
> /usr/bin/ld: /usr/local/lib/python2.5/config/libpython2.5.a(abstract.o):
> relocat
> ion R_X86_64_32 against `a local symbol' can not be used when making a
> shared object; recompile with -fPIC

It does not seem like the problem has anything to do with Boost.

> Or does it mean there is something wrong with 'libpython2.5.a' which
> is provided by the sysadmin and out of my privilege scope?

Yes. For whatever reason, you have or link to static python library, which,
understandably, is not built with -fPIC.

- Volodya


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net