Compilation of ROOT V4.00.08 fails here :
g++ -O -o bin/h2root main/src/h2root.o hbook/src/hntvar2.o
-Llib -lCore -lCint -lHist -lGraf -lGraf3d -lTree -lMatrix
/usr/remote/prive/cernlib/pro/lib/libpacklib.a /usr/remote/prive/cernlib/pro/lib/libkernlib.a
-lg2c -lnsl -lm -ldl -lpthread -rdynamic
/usr/remote/prive/cernlib/pro/lib/libpacklib.a(error.o)(.text+0x5c5): In function rfio_serror_r': /afs/cern.ch/project/cernlib/i386_redhat61/2001/build/packlib/kernlib/shift/archive/rfio/error.c:151:
sys_errlist’ is deprecated; use strerror' or
strerror_r’ instead
/usr/remote/prive/cernlib/pro/lib/libpacklib.a(serror.o)(.text+0x29b): In function sstrerror_r': /afs/cern.ch/project/cernlib/i386_redhat61/2001/build/packlib/kernlib/shift/archive/common/serror.c:419:
sys_nerr’ is deprecated; use strerror' or
strerror_r’ instead
/usr/remote/prive/cernlib/pro/lib/libpacklib.a(u64subr.o)(.text+0x2f): In function strtou64': /afs/cern.ch/project/cernlib/i386_redhat61/2001/build/packlib/kernlib/shift/archive/common/u64subr.c:23: undefined reference to
__ctype_b’
/usr/remote/prive/cernlib/pro/lib/libpacklib.a(u64subr.o)(.text+0x61):/afs/cern.ch/project/cernlib/i386_redhat61/2001/build/packlib/kernlib/shift/archive/common/u64subr.c:25: undefined reference to __ctype_b' /usr/remote/prive/cernlib/pro/lib/libpacklib.a(u64subr.o)(.text+0x20f): In function
strutou64’:
/afs/cern.ch/project/cernlib/i386_redhat61/2001/build/packlib/kernlib/shift/archive/common/u64subr.c:73: undefined reference to __ctype_b' /usr/remote/prive/cernlib/pro/lib/libpacklib.a(u64subr.o)(.text+0x241):/afs/cern.ch/project/cernlib/i386_redhat61/2001/build/packlib/kernlib/shift/archive/common/u64subr.c:75: undefined reference to
__ctype_b’
collect2: ld returned 1 exit status
make: *** [bin/h2root] Error 1
GCC is SL native (3.2.3).
CERNLIB is 2001. I tried to disable the use of CERNLIB (–disable-cern) but could not.
=> What do I have to do to compile ROOT V4 without CERNLIB ? Then If I want
h2root, which version of cernlib is supported ?
=> By the way, what is the standard way to configure ROOT ? I used to do it with
the script : /afs/cern.ch/alice/library/root/new/cfg.sh
This script creates empty Pyhtia shared libraries… which I do not understand…
Thanks.