Re: [ROOT] compilation trouble for h2root

From: Rene Brun (brun@pcbrun.cern.ch)
Date: Thu Oct 28 2004 - 23:01:14 MEST


Hi Daan,

It looks like you have an obsolete version of CERNLIB with an old 
version
of the RFIO library. To import the right RFIO/shift library see
http://root.cern.ch/root/Install.html (section "Managed Tape I/O")
run, your configure command again (to pick the shift lib).
Building h2root is done with something like:
g++ -O   -o bin/h2root main/src/h2root.o hbook/src/hntvar2.o \
 -Llib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix \
 /home/brun/cern/pro/lib/libpacklib.a 
/home/brun/cern/pro/lib/libkernlib.a   \
 /home/brun/shift/lib/libshift.a -lnsl -lg2c -lnsl -lm -ldl  -pthread 
-rdynamic

Rene Brun

On 
Wed, 
27 
Oct 2004, daan wrote:

> 
> Hi all,
> 
> Yesterday I installed a fresh suse9.0 (gcc 3.3.1) and now I'm trying to 
> install root4.00.08f. This, however, failed while it was compiling 
> h2root...
> 
> 
> g++ -O   -o bin/h2root main/src/h2root.o hbook/src/hntvar2.o \
>            -Llib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree 
> -lMatrix \
>             /cernlib/pro/lib/libpacklib.a /cernlib/pro/lib/libkernlib.a   
> \
>             -lg2c -lnsl -lm -ldl  -pthread -rdynamic
> /cernlib/pro/lib/libpacklib.a(error.o)(.text+0x25c): In function 
> `rfio_serror':
> : `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead
> /cernlib/pro/lib/libpacklib.a(serror.o)(.text+0x26): In function 
> `sstrerror':
> : `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
> /cernlib/pro/lib/libpacklib.a(remote.o)(.text+0x417): In function 
> `isremote':
> : undefined reference to `errno'
> /cernlib/pro/lib/libpacklib.a(remote.o)(.text+0x481): In function 
> `isremote':
> : undefined reference to `errno'
> collect2: ld returned 1 exit status
> make: *** [bin/h2root] Error 1
> 
> 
> I should also say that the cernlibs are those provided by our institute, 
> so they are not compiled on my proper machine. Don't know if this makes a 
> difference though.
> 
> 
> Do you have any idea what I can do about this?
> 
> 
> 
> daan
> 



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