Problem in installing ROOT 5.21.04 on Ubuntu 8.10. (xrootd)

Hello,

I am trying to install ROOT 5.21.04 on Ubuntu 8.10 from source, because there is no RooFit in the one in it (5.18/00b).

Before the installation I followed this page:
twiki.cern.ch/twiki/bin/view/LH … LCOnDebian

so that it would be more similar with SLC4. But it failed to find g+±3.4. So I just installed the one available in synaptic (g++ 4.3.2).

The configure complained that it could not find some packages, I just installed the one (or similar one) until it didn’t complain again. Finally, there is no problem in the configuring. But it failed in the making (make -j2):

[quote]
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__ -O2 -DXrdDEBUG=0 -DUSENEWHDRS -I. -I… -o …/…/obj/XrdSecpwdSrvAdmin.o XrdSecpwdSrvAdmin.cc
bin/rmkdepend -R -fgraf2d/asimage/src/TASPluginGS.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Igraf2d/freetype/src/freetype-2.3.5/include -Igraf2d/asimage/src/libAfterImage -D__cplusplus – graf2d/asimage/src/TASPluginGS.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Igraf2d/freetype/src/freetype-2.3.5/include -Igraf2d/asimage/src/libAfterImage -o graf2d/asimage/src/TASPluginGS.o -c graf2d/asimage/src/TASPluginGS.cxx
bin/rmkdepend -R -fgraf2d/asimage/src/TASPaletteEditor.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Igraf2d/asimage/src/libAfterImage -D__cplusplus – graf2d/asimage/src/TASPaletteEditor.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Igraf2d/asimage/src/libAfterImage -o graf2d/asimage/src/TASPaletteEditor.o -c graf2d/asimage/src/TASPaletteEditor.cxx
In function ‘int open(const char*, int, …)’,
inlined from ‘bool ExpPuk(const char*, bool)’ at XrdSecpwdSrvAdmin.cc:2407:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
In function ‘int open(const char*, int, …)’,
inlined from ‘void SavePasswd(XrdOucString, XrdOucString, bool)’ at XrdSecpwdSrvAdmin.cc:1825:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
In function ‘int open(const char*, int, …)’,
inlined from ‘bool SavePuk()’ at XrdSecpwdSrvAdmin.cc:2130:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
graf2d/asimage/src/TASPaletteEditor.cxx: In member function ‘void TASPaletteEditor::Open()’:
graf2d/asimage/src/TASPaletteEditor.cxx:473: warning: ignoring return value of ‘int fscanf(FILE*, const char*, …)’, declared with attribute warn_unused_result
graf2d/asimage/src/TASPaletteEditor.cxx:481: warning: ignoring return value of ‘int fscanf(FILE*, const char*, …)’, declared with attribute warn_unused_result
make[5]: *** […/…/obj/XrdSecpwdSrvAdmin.o] Error 1
make[4]: *** [Linuxall] Error 2
make[3]: *** [all] Error 2
make[2]: *** [XrdSecpwd] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/data/sw/root/net/xrootd/src/xrootd’
make: *** [net/xrootd/src/xrootd/lib/libXrdSec.so] Error 2
make: *** Waiting for unfinished jobs…
rm core/utils/src/RStl_tmp.cxx core/utils/src/rootcint_tmp.cxx[/quote]

And the return of gcc -v is:

[quote]Reading specs from /usr/lib/gcc/x86_64-linux-gnu/3.4.6/specs
Configured with: …/src/configure -v --enable-languages=c,f77 --prefix=/usr --libexecdir=/usr/lib --with-gxx-include-dir=/usr/include/c++/3.4 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --program-suffix=-3.4 --enable-__cxa_atexit x86_64-linux-gnu
Thread model: posix
gcc version 3.4.6 (Ubuntu 3.4.6-8ubuntu2)[/quote]

the return of g++ -v is:

[quote]Using built-in specs.
Target: x86_64-linux-gnu
Configured with: …/src/configure -v --with-pkgversion=‘Ubuntu 4.3.2-1ubuntu10’ --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu10)[/quote]

What should I do? The config.log file is also attached for your reference.

Thank you very much for your kind help.
config.log.gz (17.2 KB)

Hi,

Our experience with gcc 4.3.2 is limited to the version installed on lxplus under
/afs/cern.ch/sw/lcg/contrib/gcc/4.3.2/slc4_amd64_gcc34/bin/gcc
where we do not have any problem in building XROOTD.
It looks like in your installation some prototype has changed, but this is difficult to debug w/o access to the machine.
If you are just using RooFit then the simplest is to disable XROOTD:

./configure --disable-xrootd <your_other_options>

G. Ganis

Hello,

Thank you very much for your reply.

Sorry, but it still doesn’t work if I only disable xrootd. After I removed gcc-3.4 and reinstalled gcc-4.3.2, it works without xrootd. But there is still problem in building xrootd. Anyway, it doesn’t matter, I just copied the error messages for your reference.

[quote]bin/rmkdepend -R -fcore/base/src/TROOT.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -D__cplusplus – core/base/src/TROOT.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -o core/base/src/TROOT.o -c core/base/src/TROOT.cxx
Copying net/xrootd/src/xrootd/lib/libXrdSut.so …
Copying net/xrootd/src/xrootd/lib/libXrdCrypto.so …
Copying net/xrootd/src/xrootd/lib/libXrdSec.so …
Generating dictionary net/netx/src/G__Netx.cxx…
core/utils/src/rootcint_tmp -cint -f net/netx/src/G__Netx.cxx -c -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc net/netx/inc/TXNetFile.h net/netx/inc/TXNetFileStager.h net/netx/inc/TXNetSystem.h net/netx/inc/LinkDef.h
bin/rmkdepend -R -fproof/proofd/src/XProofProtUtils.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -D__cplusplus – proof/proofd/src/XProofProtUtils.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -o proof/proofd/src/XProofProtUtils.o -c proof/proofd/src/XProofProtUtils.cxx
bin/rmkdepend -R -fproof/proofd/src/XrdProofConn.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -D__cplusplus – proof/proofd/src/XrdProofConn.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -o proof/proofd/src/XrdProofConn.o -c proof/proofd/src/XrdProofConn.cxx
bin/rmkdepend -R -fproof/proofd/src/XrdProofdAdmin.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -D__cplusplus – proof/proofd/src/XrdProofdAdmin.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -o proof/proofd/src/XrdProofdAdmin.o -c proof/proofd/src/XrdProofdAdmin.cxx
bin/rmkdepend -R -fproof/proofd/src/XrdProofdAux.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -D__cplusplus – proof/proofd/src/XrdProofdAux.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -o proof/proofd/src/XrdProofdAux.o -c proof/proofd/src/XrdProofdAux.cxx
bin/rmkdepend -R -fproof/proofd/src/XrdProofdClient.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -D__cplusplus – proof/proofd/src/XrdProofdClient.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -o proof/proofd/src/XrdProofdClient.o -c proof/proofd/src/XrdProofdClient.cxx
bin/rmkdepend -R -fproof/proofd/src/XrdProofdClientMgr.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -D__cplusplus – proof/proofd/src/XrdProofdClientMgr.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -o proof/proofd/src/XrdProofdClientMgr.o -c proof/proofd/src/XrdProofdClientMgr.cxx
bin/rmkdepend -R -fproof/proofd/src/XrdProofdConfig.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -D__cplusplus – proof/proofd/src/XrdProofdConfig.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -o proof/proofd/src/XrdProofdConfig.o -c proof/proofd/src/XrdProofdConfig.cxx
bin/rmkdepend -R -fproof/proofd/src/XrdProofdManager.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -D__cplusplus – proof/proofd/src/XrdProofdManager.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -o proof/proofd/src/XrdProofdManager.o -c proof/proofd/src/XrdProofdManager.cxx
bin/rmkdepend -R -fproof/proofd/src/XrdProofdNetMgr.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -D__cplusplus – proof/proofd/src/XrdProofdNetMgr.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -o proof/proofd/src/XrdProofdNetMgr.o -c proof/proofd/src/XrdProofdNetMgr.cxx
bin/rmkdepend -R -fproof/proofd/src/XrdProofdPriorityMgr.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -D__cplusplus – proof/proofd/src/XrdProofdPriorityMgr.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -o proof/proofd/src/XrdProofdPriorityMgr.o -c proof/proofd/src/XrdProofdPriorityMgr.cxx
bin/rmkdepend -R -fproof/proofd/src/XrdProofdProofServ.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -D__cplusplus – proof/proofd/src/XrdProofdProofServ.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -o proof/proofd/src/XrdProofdProofServ.o -c proof/proofd/src/XrdProofdProofServ.cxx
bin/rmkdepend -R -fproof/proofd/src/XrdProofdProofServMgr.d -Y -w 1000 – -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -D__cplusplus – proof/proofd/src/XrdProofdProofServMgr.cxx
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -Wno-deprecated -Inet/xrootd/src/xrootd/src -Iproof/proofd/inc -DUSENEWHDRS -o proof/proofd/src/XrdProofdProofServMgr.o -c proof/proofd/src/XrdProofdProofServMgr.cxx
In function ‘int open(const char*, int, …)’,
inlined from ‘int XrdProofdProofServ::CreateUNIXSock(XrdSysError*)’ at proof/proofd/src/XrdProofdProofServ.cxx:615:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
proof/proofd/src/XrdProofdProofServMgr.cxx: In member function ‘int XrdProofdProofServMgr::Create(XrdProofdProtocol*)’:
proof/proofd/src/XrdProofdProofServMgr.cxx:1507: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_resultmake: *** [proof/proofd/src/XrdProofdProofServ.o] Error 1
make: *** Waiting for unfinished jobs…

proof/proofd/src/XrdProofdProofServMgr.cxx:1542: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result
proof/proofd/src/XrdProofdProofServMgr.cxx:1551: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result
proof/proofd/src/XrdProofdProofServMgr.cxx:1558: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result
In function ‘int open(const char*, int, …)’,
inlined from ‘int XrdProofdProofServMgr::SaveAFSkey(XrdSecCredentials*, const char*)’ at proof/proofd/src/XrdProofdProofServMgr.cxx:3266:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make: *** [proof/proofd/src/XrdProofdProofServMgr.o] Error 1[/quote]