geant3_vmc undefined symbol: _ZN10TVirtualMC14DefineParticleEiPKc15TMCParticleTypeddd

From: Stefano Dusini <stefano.dusini_at_pd.infn.it>
Date: Fri, 17 Apr 2009 17:42:52 +0200


I'm trying to upgrade our (OPERA) detector simulation software to use ROOT v5.23 and therefore I have also upgraded the geant3_vmc version to v1.10. I have also modify the code to use TVirtualMC as the only interface to the MC transportation code. But at run time I get this error

/sps/opera/scratch/dusini/sw/OpRelease/3.1/OpSim/v7r4/Linux/opsim.exe:
symbol lookup error:
/sps/opera/scratch/dusini/sw/OpRelease_fluka/kits/geant3_vmc_1.10/lib/tgt_linux/libgeant321vmc.so:
undefined symbol: _ZN10TVirtualMC14DefineParticleEiPKc15TMCParticleTypeddd

In fact using

nm -u libgeant321vmc.so

I see that

U _ZN10TVirtualMC14DefineParticleEiPKc15TMCParticleTypeddd

where the U means (from nm man page) that the symbol is undefined.

What is wrong?

The geant3_vmc library has been build just with

gmake

and the environmental variable $ROOTSYS pointing to the ROOT v5.23 directory and $ROOTSYS/lib added to the $LD_LIBRARY_PATH and $ROOTSYS/bin added to $PATH.

Do I have to specify something else when I compile geant3_vmc? Do I have to use some special switch when I compile root?

Thanks a lot
Stefano

-- 
__________________________________________________________________
Stefano Dusini, INFN Padova, Via Marzolo, 8 I-35131 Padova, Italy
Phones: +39-049-827-7312 +39-049-789-7676. Handy +39-348-8137991

Received on Fri Apr 17 2009 - 17:43:27 CEST

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