[ROOT] Compilation of ROOTv 3.00.06 failed on ALPHA-OSF1

From: Patois Yannick (patois@ganil.fr)
Date: Fri Apr 20 2001 - 14:54:07 MEST


Hi,

My machine:
$ uname -a
OSF1 V5.0 910 alpha

My compiler:
$ g++ --version
2.95.2

The closest target I found is 'alphaegcs', which did indeed worked for
every release of ROOT I ever compiled (quite a few ;).

But on this new version I got:
$ gmake
[most stuff works]
cp cint/iosenum/iosenum.alphaegcs cint/include/iosenum.h
g++ -O2 -fPIC -mcpu=ev5 -D__osf__ -D__alpha -Iinclude  -o
unix/src/TUnixSystem.o -c unix/src/TUnixSystem.cxx
unix/src/TUnixSystem.cxx:68: declaration of C function `int statfs(const
char *, statfs *)' conflicts with
/usr/include/sys/mount.h:593: previous declaration `int statfs(char *,
statfs *, ...)' here
unix/src/TUnixSystem.cxx: In function `int statfs(const char *, statfs
*)':
unix/src/TUnixSystem.cxx:2862: confused by earlier errors, bailing out
gmake: *** [unix/src/TUnixSystem.o] Error 1

I commented out the line 68 of revision 1.21 of the file
unix/src/TUnixSystem.cxx:
//    extern "C" int statfs(const char *file, struct statfs *buffer);
And similary worked on line 136 of revision 1.30 of file
rootd/src/rootd.cxx

And things worked again.

However I did not make any extensive check of correctness of
functionnalities involving the use of the incriminated prototype.

	Yannick



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