Boost logo

Boost :

From: Carter Sanders (boost_at_[hidden])
Date: 2002-03-25 06:46:40


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?
Do I need to recompile my python with GCC3? It was compiled with 2.96.

Thanks-
        Carter


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