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)