Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-03-25 10:31:35


----- Original Message -----
From: "Carter Sanders" <boost_at_[hidden]>
> I have just upgraded to boost 1.27, and I am having the following
problem:
>
> $ python2
> Python 2.1.1 (#1, Aug 13 2001, 19:37:40)
> [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-96)] on linux2
> Type "copyright", "credits" or "license" for more information.
> >>> import RandomEngine
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> ImportError: ./RandomEngine.so: undefined symbol: __gxx_personality_v0
> >>>
>
> $ python2
> Python 2.1.1 (#1, Aug 13 2001, 19:37:40)
> [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-96)] on linux2
> Type "copyright", "credits" or "license" for more information.
> >>> import RandomEngine
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> ImportError: ./RandomEngine.so: undefined symbol: __gxx_personality_v0
> >>>
>
> $ nm getting_started1.so| grep personality
> U __gxx_personality_v0
> localhost:~/newboost
> $ nm libboost_python.a| grep personality
> U __gxx_personality_v0
> U __gxx_personality_v0
> U __gxx_personality_v0
> U __gxx_personality_v0
> U __gxx_personality_v0
> U __gxx_personality_v0
> U __gxx_personality_v0
> U __gxx_personality_v0
> U __gxx_personality_v0
> U __gxx_personality_v0
>
> I have reproduced the problem on Python 1.5.2 as well.
>
> The symbol is undefined in getting_started1.so as well, but I can
import that just fine. Does anybody know how I might approach fixing
this? Any help would be greatly appreciated.
>
>
> Configuration:
> RH7.2
> GCC3.02
> Boost 1.27
>
> I have a couple of general configuration questions:
> Can I get away with running GCC3.02 or do I need to upgrade to 3.03?

I think 3.0.2 will work. 3.0.4 is current.

> Do I need to recompile my python with GCC3? It was compiled with 2.96.

Your Python doesn't use C++, so I think its compiler doesn't matter.
However, the boost.python library must be compiled with the same
compiler that you use for your modules. If you're using a precompiled
binary of libboost_python, that could be causing your problems.

-Dave


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk