Re: Compiler error (was: Re: [ROOT] Lib version)

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Mar 14 2001 - 18:14:54 MET


Hi Oliver,

Hum!, we are probably running with teh same compiler, but different
default settings. When I compile with option -v, I get the following:


 cxx -v -O -nostdnew -D__osf__ -D__alpha -Iinclude  -D_REENTRANT -o \
 unix/src/TUnixSystem.o -c unix/src/TUnixSystem.cxx

/usr/lib/cmplrs/cxx/exx -v -nostdnew -g0 -O4 -thread_safe -presteel -D__osf__
-D__alpha -Iinclude -D_REENTRANT -o unix/src/TUnixSystem.o
unix/src/TUnixSystem.cxx 

These macros are in effect at the start of the compilation.
----- ------ --- -- ------ -- --- ----- -- --- ------------

 -D_REENTRANT -D_SYSTYPE_BSD -D__osf__ -D__unix__ -D__unix
 -D__INITIAL_POINTER_SIZE=0 -D__digital__ -D__arch64__ -D__IEEE_FLOAT
 -D__Alpha_AXP -D__alpha -D__ALPHA -D__DECCXX_VER=60290024 -D__STD_ANSI
 -D__IMPLICIT_INCLUDE_ENABLED -D__X_FLOAT=0 -D__PRAGMA_ENVIRONMENT -D__DECCXX
 -D__EDG_VERSION__=240 -D__EDG__ -D__IMPLICIT_USING_STD -D__RTTI -D__EXCEPTIONS
 -D__GLOBAL_ARRAY_NEW -D__BOOL_IS_A_RESERVED_WORD -D_BOOL_EXISTS -D__WCHAR_T
 -D_WCHAR_T -D__cplusplus -D__TIME__="18:06:25" -D__DATE__="Mar 14 2001"
2.37u 0.30s 0:02.8 96%

Could you check the difference with your compiler?
I am running with OSF1  V4.0 878 alpha

The "statfs" is quite tricky and we have seen changes between successive OS
on the same machine. Could you do a man stafs and see the calling sequence
and specs?

Rene Brun


Oliver Mang wrote:
> 
> Hi Rene, Fons,
> 
> Fons Rademakers wrote:
> > with libXpm to avoid these problems. Or you can compile root from source
> > for your machine.
> 
> I tried to compile ROOT 3.00.06 from source, but gmake exits with the
> following error:
> 
> cxx -O -nostdnew -D__osf__ -D__alpha -Iinclude  -D_REENTRANT -o
> unix/src/TUnixSystem.o -c unix/src/TUnixSystem.cxx
> cxx: Error: unix/src/TUnixSystem.cxx, line 68: more than one instance of
>           overloaded function "statfs" has "C" linkage
>     extern "C" int statfs(const char *file, struct statfs *buffer);
> -------------------^
> cxx: Info: 1 error detected in the compilation of
> "unix/src/TUnixSystem.cxx".
> gmake: *** [unix/src/TUnixSystem.o] Error 1
> 
> The compiler is
> ifkas1> cxx -V
> Compaq C++ V6.2-024 for Compaq Tru64 UNIX V5.0A (Rev. 1094)
> 
> I configured with
> ifkas1> ./configure alphacxx6 --enable-soversion --enable-star
> --enable-thread --disable-opengl --disable-mysql --disable-pythia
> --disable-pythia6 --disable-venus --disable-srp
> --with-ttf-incdir=/users/local/ttf/include
> --with-ttf-libdir=/users/local/ttf/lib
> --with-ttf-fontdir=/users/local/ttf/fonts
> 
> and ROOTSYS set.
> Can you help me to get 3.00 working on my machine ?
> 
> Thanks in advance,
> Oliver
> --
> Oliver Mang
> HEGRA - High Energy Gamma Ray Astronomy
> Institut fuer Experimentelle und Angewandte Physik, CAU Kiel
> Phone: ++49/431/880-2482        E-Mail: mang@ifkhep.uni-kiel.de
> ---------------------------------------------------------------
> "The future is not what it used to be"



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:39 MET