Re: symbol lookup error: /usr/lib/libPhysics.so: undefined symbol: gRandom

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Fri, 13 Apr 2012 15:41:01 +0200


Hi,

You can preload all the libraries we "usually" recommend by running root-config --libs. You could to take those (the ones starting with -l...) and LD_PRELOAD them all:

LD_PRELOAD="/usr/lib/libRIO.so /usr/lib/libTree.so /usr/lib/libCore.so ..." ./binary

Cheers, Axel.

On 04/13/2012 03:37 PM, Cristina Morales Morales wrote:
> Hi Alex,
>
> yes, you are right. I did that but unfortunately then I get more errors like:
>
> symbol lookup error: /usr/lib/libTree.so: undefined symbol: _ZTI7TSQLRow
>
> and I do not know where to find that.
> Is that a way to include all the libraries located in a given directlion like
> /usr/lib/ in the definition of LD_PRELOAD and not just one by one?
> (sorry for my ignorance)
>
> thanks a lot again,
>
> Cristina
>
>
>
>
> Quoting Axel Naumann <Axel.Naumann_at_cern.ch>:
>

>> Hi Cristina,
>>
>> Yes, you need to link against libCore. If the binary doesn't pull it in
>> itself it wasn't linked properly. You should be able to work around that
>> by running
>>
>> LD_PRELOAD=/usr/lib/libCore.so ./mybinary
>>
>> Cheers, Axel.
>>
>>
>> On 04/13/2012 02:39 PM, Cristina Morales Morales wrote:
>>>
>>> Dear all, 
>>>
>>> I am trying to run an executable provided by someone else (I do not have
>> the
>>> source code). Apparently it has been built with a 32bit system.
>>> Doing ldd ./executable
>>> I do not find any library missed.
>>> However I get
>>>
>>> symbol lookup error: /usr/lib/libPhysics.so: undefined symbol: gRandom
>>>
>>> I have been searching for TRandom in internet and I found that some people
>> have
>>> it in libCore.so. 
>>> Where should it be in libCore or libPhysics?
>>> What do I have to do to add it and where do I have to add it?
>>>
>>> Thanks a lot for your help, 
>>>
>>> Cristina
>>>
>>>
>>>
>>>
>>> ----------------------------------------------------------------
>>> This message was sent using IMP, the Internet Messaging Program.
>>>
>>>
>>

>
>
Received on Fri Apr 13 2012 - 15:41:57 CEST

This archive was generated by hypermail 2.2.0 : Tue Apr 17 2012 - 17:50:01 CEST