Re: SuSE Linux compiling problems

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Mon Feb 22 1999 - 10:36:10 MET


In principle rootcint depends on LD_LIBRARY_PATH being correctly set.
However, it is not needed to run the interactive root module since
the front-end program "root" sets LD_LIBRARY_PATH before exec'ing
"root.exe" (the actual root). On the other hand, whem directly calling
root.exe you'll need a correct LD_LIBRARY_PATH. If you build yourself
root from source you can add "-rpath $ROOTSYS/lib" to the link statement.
(on GNU/Linux systems). In that case LD_LIBRARY_PATH is not needed
(good when root is centrally installed). Another alternative, on Linux,
for centrally installed root is to add $ROOTSYS/lib to /etc/ld.so.conf
(don't forget to run ldconfig afterwards).


Cheers, Fons.



Pasha Murat wrote:
> 
> Jochen Reuther writes:
>  > Hello all,
>  >
>  > I'm currently trying to make root work on my SuSE Linux system (with
>  > gcc) and after passing several problems successfully I ran in the
>  > following problem that I don't know how to fix it:.
>  > I try to recompile the whole root package (v2.21) with the given
>  > Makefile.linux and I get this error message:
>  >
>  > Generating dictionary BASE_G__Base1.cxx...
>  > rootcint: can't load library 'libCint.so'
>  > make: *** [BASE_G_Base1.cxx] Error 16
>  >
>  > Same problem when I try to start rootcint manually.
>  > The enviroment variable ROOTSYS is correctly set.
>  > The file $ROOTSYS/lib/libCint.so was just compiled before.
>  > Options to create .so have been  -shared -Wl,-soname,libCint.so -g
>  > When compiling cint there was a linking problem with not finding the
>  > libtermcap.so that I fixed with a softlink to an existing
>  > libtermcap.so.2.0.8
>  > My gcc don't need a LD_LIBRARY_PATH, but I don't think that's the prob.
>  >
> 
>         I've been having similar problem on SGI/IRIX/egcs.
> For some reason dropping '-Wl,-soname,libCint.so' from the list of linker
> options solved the problem - though I don't have a clue why.
> 
>                                                 -pasha

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland          Phone: +41 22 7679248
E-Mail: Fons.Rademakers@cern.ch              Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:29 MET