Re: [ROOT] problem compiling root libraries

From: Gerardo Ganis (Gerardo.Ganis@cern.ch)
Date: Tue Mar 09 2004 - 20:32:19 MET


  Hi Belen,

  It looks like you are mixing two versions of gcc: you seem be
  using 2.95 but your ROOT lib path points to 2.96 .
  You should check your environment variable LD_LIBRARY_PATH and
  make sure that you have the following path

     /afs/cern.ch/sw/root/v3.05.05/rh73_gcc2952/root/lib

  in there (instead of /afs/cern.ch/sw/root/v3.05.05/rh73_gcc296/root/lib).

  Cheers,

  Gerri

  ps: you may find detailed instructions about setting LD_LIBRARY_PATH
      at http://root.cern.ch/root/Install.html


On Tue, 9 Mar 2004, Belen Salvachua Ferrando wrote:

> Hello,
> 
> I have been the whole afternoon with a problem and I am not able to 
> localize the solution. The problem is the following:
> When I try to compile an application which uses root libraries I get the 
> next error:
> 
> 
>  ../i686-rh73-gcc295-opt/prueba
> cd ../i686-rh73-gcc295-opt/; g++ -fPIC -pipe -ansi -pedantic -W 
> -Wall                                                    -Wwrite-strings 
> -Wpointer-arith -Woverloaded-virtual                             
> -Wno-long-long -O2 -march=pentium 
> -mcpu=pentium                                                          
> -malign-loops=2 -malign-jumps=2 -malign-functions=2  -g  -pthread   -L. 
> -L../../../installed/i686-rh73-gcc295-opt/lib 
> -L/afs/cern.ch/atlas/project/tdaq/DataFlow/DF-00-06-00/installed/..//installed/i686-rh73-gcc295-opt/lib 
> -L. -L../../../installed/i686-rh73-gcc295-opt/lib 
> -L/afs/cern.ch/atlas/project/tdaq/DataFlow/DF-00-06-00/installed//i686-rh73-gcc295-opt/lib 
> -L/afs/cern.ch/atlas/project/tdaq/cmt/online-00-20-00/installed/i686-rh73-gcc295-opt/lib  
> -o prueba.exe.new ../i686-rh73-gcc295-opt/prueba.o  -lAlgorithms      
> -lm -ldl     -L/afs/cern.ch/sw/root/v3.05.05/rh73_gcc296/root/lib -lCint 
> -lCore -lTree -lMatrix -lHist            -lpthread  ; mv -f 
> prueba.exe.new prueba
> /afs/cern.ch/sw/root/v3.05.05/rh73_gcc296/root/lib/libCore.so: undefined 
> reference to `__dynamic_cast_2'
> collect2: ld returned 1 exit status
> mv: cannot stat `prueba.exe.new': No such file or directory
> make[1]: *** [../i686-rh73-gcc295-opt/prueba] Error 1
> make: *** [prueba] Error 2
> 
> 
> I've tried several things and the problem persits. Does somebody know 
> what I could do???
> Thanks a lot in advance.
> 
> Best regards!
> 
> Belen.
> 
> 
> 
> 
> 



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET