Hi all,
I am trying to install on my laptop root version 4.04/02. I downloaded the source file from:
root.cern.ch/root/Version404.html
then following the instructions in $ROOTSYS/README/INSTALL I did:
(I am using Debian sid, kernel 2.6.16, gcc 3.3)
pwd
/usr/local
cp ~/root_v4.04.02.source.tar.gz .
tar -zxvf root_v4.04.02.source.tar.gz
cd root
echo $ROOTSYS
/usr/local/root
#./configure linuxdeb
…
make
…
Compiling XrdXrClientWorker.cc …
g++ -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_ALL_SOURCE -D_REENTRANT -D_GNU_SOURCE -fPIC -rdynamic -Wall -Wno-deprecated -D__linux__ -DXrdDEBUG=0 -I. -I… -o …/…/obj/XrdXrClientWorker.o
XrdXrClientWorker.cc
…/XrdXrootd/XrdXrootdProtocol.hh:216: error: ISO C++ forbids declaration of ‘XrdXrootdAioReq’ with no type
…/XrdXrootd/XrdXrootdProtocol.hh:216: error: expected ‘;’ before ‘*’ token
make[5]: *** […/…/obj/XrdXrClientWorker.o] Error 1
make[4]: *** [Linuxall] Error 2
make[3]: *** [all] Error 2
make[2]: *** [XrdXr] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/root/xrootd/src/xrootd’
make: *** [xrootd/src/xrootd/lib/libXrdSec.so] Error 2
I took a look at the file:
./xrootd/src/xrootd/src/XrdXrootd/XrdXrootdProtocol.hh
and on line number 63 I added:
class XrdXrootdAioReq;
trying to recompile I got next error:
g++ -O1 -o bin/g2root main/src/g2root.o
-lpacklib -lkernlib
-lg2c -lnsl -lm -ldl -pthread -rdynamic
/usr/lib/gcc/i486-linux-gnu/4.0.4/…/…/…/…/lib/crt1.o: In function _start': ../sysdeps/i386/elf/start.S:115: undefined reference to
main’
collect2: ld returned 1 exit status
make: *** [bin/g2root] Error 1
now, the root is already there and working, but what sre these errors, and how can the later be resolved?
Cheers,
Ivan