[Gate-users] Installation problems - Root related?

Marc Chamberland mchamber at connect.carleton.ca
Mon Jan 14 17:57:25 CET 2008


Thank you for the quick reply, Simon.

The first time I tried making Gate, ROOTSYS was unknowingly set to a  
newer version of Root and the linking process failed miserably.

Then, I changed ROOTSYS and LD_LIBRARY_PATH to point to the Root 5.14  
installation and I got the error message from my previous message. In  
any case, I've tried it again just to make sure (I source env_gate.csh  
beforehand):

mchamber at surt> printenv ROOTSYS
/data/data014/HEP/root-5.14
mchamber at surt> printenv LD_LIBRARY_PATH
/data/data014/HEP/root-5.14/lib:/local/X11/lib:/local/X11/lib/X11:/usr/ 
lib:/lib:/usr/lib/X11:/usr/openwin/lib:/local/lib:/opt/local/lib:/data/ 
data014/HEP/Geant4/geant4.9.0.p01/lib/Linux-g++:/data/data014/HEP/ 
CLHEP/lib:/data/data014/HEP/Coin/lib:/home/mchamber/geant4/lib/Linux-g++
mchamber at surt> make
Using granular libraries ...
Linking Gate ...
./tmp/Linux-g++/Gate/libGate.so: undefined reference to  
`TTree::SetEntryList(TEntryList*, char const*)'
./tmp/Linux-g++/Gate/libGate.so: undefined reference to  
`TTree::CopyAddresses(TTree*, bool)'
./tmp/Linux-g++/Gate/libGate.so: undefined reference to  
`TTree::ResetBranchAddress(TBranch*)'
./tmp/Linux-g++/Gate/libGate.so: undefined reference to  
`TTree::GetEntryList()'
collect2: ld returned 1 exit status
make: *** [bin/Linux-g++/Gate] Error 1

You say those functions should be defined in the header file? Would  
that be TTree.h? Or would they be in another header file? Because in  
TTree.h from root 5.14.00g, those functions are definitely not there.  
There's CopyAddresses, but it takes on an additional argument. If you  
have time, please have a look at the attached file. It's from the  
source code of Root 5.14 that I just downloaded from the Root website.

Thank you again for your time, it's really appreciated!

~Marc


-------------- next part --------------
A non-text attachment was scrubbed...
Name: TTree.h
Type: application/octet-stream
Size: 23705 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20080114/37fc46e2/attachment.obj>
-------------- next part --------------


Le 08-01-14 ? 11:12, Simon Stute a ?crit :

> Hi Marc,
>
>
> 2008/1/14, Marc Chamberland <mchamber at connect.carleton.ca>: Hi Gate  
> Users!
>
> I'm trying to install Gate v3.1.2 on a Linux system. Gate compiles
> fine, but the make command fails when it comes to linking. Here's the
> message I get:
>
> Using granular libraries ...
> Linking Gate ...
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to
> `TTree::SetEntryList(TEntryList*, char const*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to
> `TTree::CopyAddresses(TTree*, bool)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to
> `TTree::ResetBranchAddress(TBranch*)'
> ./tmp/Linux-g++/Gate/libGate.so: undefined reference to
> `TTree::GetEntryList()'
> collect2: ld returned 1 exit status
> make: *** [bin/Linux-g++/Gate] Error 1
>
> On this system, Root 5.14.00g is installed (as the requirements
> state). Now, I know next to nothing about this, but I'm under the
> impression libGate.so is looking for the functions SetEntryList, etc.,
> in the TTree class of Root. However, when I look at TTree.h, I see
> that these functions are not defined anywhere.
>
> BUT! I see from the Root website that those functions are defined in
> TTree.h of the latest Root release but not in TTree.h of version  
> 5.14.Does this mean that  I should be using a newer version than  
> Root 5.14?
>
> Not at all, 5.14 works well with gate3.1.2 version.
> When you get "Undefined reference" error messages while linking,  
> that means that the definition is present in the header file but not  
> in the corresponding library. I think your problem here is just  
> related to your environment (assuming ROOT is well installed). Have  
> you fixed the ROOTSYS environment variable before launching make,  
> have you source the env_gate.sh/csh file before launching make, have  
> you added the ROOT libraries path to your LD_LIBRARY_PATH ???
>
> Anyone else encountered this problem?
>
> I'd appreciate any help you can provide me in resolving this problem.
> Thank you in advance!
>
> ~Marc
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.healthgrid.org
> http://lists.healthgrid.org/mailman/listinfo/gate-users
>
> Good luck !
> Simon



More information about the Gate-users mailing list