|
Boost Users : |
Subject: Re: [Boost-users] [python] ImportError undefined symbol
From: Brian Budge (brian.budge_at_[hidden])
Date: 2009-07-30 15:50:41
On Wed, Jul 29, 2009 at 5:58 PM, troy d. straszheim<troy_at_[hidden]> wrote:
> Brian Budge wrote:
>>
>> Hi all -
>>
>> I'm not much of a python guru, in fact our resident guru is out on
>> maternity :) I'm hoping someone might tell me what is going on and
>> how to get around it.
>>
>> We're using boost python, and have created a plugin = libMyPlugin.
>> libMyPlugin links to libuuid and to libOtherLib. Our python test
>> script is pretty simple and looks like this:
>>
>> import libMyPlugin
>> from libMyPlugin import DoStuff
>>
>> but I get an error like this:
>>
>> ImportError: libOtherLib.so: undefined symbol: uuid_generate
>>
>>
>> libOtherLib uses the symbol uuid_generate, but ldd reveals that it
>> does NOT link against libuuid. ldd shows that libMyPlugin links
>> against libuuid and libOtherLib.
>>
>> Can anyone explain (a) why this is happening and (b) how to fix it?
>>
>
> Sounds like libOtherLib is built incorrectly. If it linked against libuuid,
> I b'lieve the problem would go away. As you describe it,
> if I built a c++ program that linked against libOtherLib, it'd die at
> startup with a rtld error...
>
> -t
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
You're right. We rebuild libOtherLib, linking it to libuuid, and now
it works.
Thanks,
Brian
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