Hi,
I am trying to build root v4.02 under Fedora Core 3 (2.6 kernel, gcc 3.4) but fail. Compilation goes well, but at the linking stage I get:
g++ -O -o bin/h2root main/src/h2root.o hbook/src/hntvar2.o
-Llib -lCore -lCint -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix
/cern/pro/lib/libpacklib.a /cern/pro/lib/libkernlib.a
-lg2c -lnsl -lm -ldl -pthread -rdynamic
/cern/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: warning:
sys_errlist’ is deprecated; use strerror' or
strerror_r’ instead
/cern/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: warning:
sys_nerr’ is deprecated; use strerror' or
strerror_r’ instead
/cern/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’
/cern/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' /cern/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' /cern/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
I think __ctype_b should be replaced with __ctype_b_loc, but am not sure how to do that. Is there an easy fix for that or do I need to recompile cernlibs as well, and if so how? Anyway I am surprised why afs shows up there, because my machine is not sitting on afs…
Thanks,
Daniel