Hi Rene, hi ROOTers,
I got another cxx error when trying to compile ROOT 3.00.06 from source
on Tru64 5.0. I followed your advice concerning statfs()
> Meanwhile, I suggest to comment the line 68 in TUnixSystem
> //extern "C" int statfs(const char *file, struct statfs *buffer);
but TPosixThread also produces errors:
------------------------ <SNIP> ------------------------------
ifkas1> gmake
cxx -v -O -nostdnew -D__osf__ -D__alpha -Iinclude -D_REENTRANT -o
thread/src/TPosixThread.o -c thread/src/TPosixThread.cxx
/usr/lib/cmplrs/cxx/exx -v -nostdnew -g0 -O4 -thread_safe
-long_double_size 128 -D__osf__ -D__alpha -Iinclude -D_REENTRANT -o
thread/src/TPosixThread.o thread/src/TPosixThread.cxx
cxx: Warning: include/TThread.h, line 168: conversion from pointer to
smaller integer
static void Printf(const char *txt,void* i) { Printf(txt,(int)i); }
------------------------------------------------------------^
cxx: Error: thread/src/TPosixThread.cxx, line 42: a value of type
"pthread_t"
cannot be assigned to an entity of type "Int_t"
th->fId = id; SetUniqueID(th->fId);
----------^
cxx: Error: thread/src/TPosixThread.cxx, line 61: argument of type
"Int_t" is
incompatible with parameter of type "pthread_t"
return pthread_cancel(th->fId);
------------------------^
cxx: Error: thread/src/TPosixThread.cxx, line 112: return value type
does not
match the function type
return pthread_self();
---------^
cxx: Info: 3 errors detected in the compilation of
"thread/src/TPosixThread.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 -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__="16:29:03" -D__DATE__="Mar 20 2001"
2.42u 0.45s 0:06.5 44%
gmake: *** [thread/src/TPosixThread.o] Error 1
------------------------ </SNIP> -----------------------------
I also tried 'cxx -threads [...]', but this produced even more errors.
I haven't found a way to tell DecUnix 4.0 from Tru64 5.0 yet, as I am
busy preparing a talk for the DPG.
Regards,
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:40 MET