Boost logo

Boost :

From: Carter Sanders (carter_at_[hidden])
Date: 2002-03-25 11:59:53


I downloaded the boost_jam rpms and did a make in a new directory after doing a "make links" with gcc resolving to gcc3.02. The make test passed with no problem. So as far as I know, my .so and my libbboost_python.a are both compiled with gcc3.02. I have symlinked the defs of gcc and g++ to achieve this. Do I need to symlink ld as well? I am running 2.11.90.0.8.

Also, is there a way to examine my libboost_python.a and confirm it was built with gcc3?

Thanks so much for your help.

-Carter
At 10:31 AM 3/25/2002 -0500, David Abrahams wrote:

>----- 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
>
>
>_______________________________________________
>Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


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