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:31:00 +0200


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:31:57 CEST

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