Hi Christian,
We noted and fixed the problem a few days ago by renaming the directory 'new'.
To use this fix you need to delete the directory 'new' and download its replacement
(the directory 'newdelete').
I think that your solution is more elegant :)
Cheers,
Philippe.
i.e. do 'rm -rf new; cvs update -dP'
-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Christian Holm
Christensen
Sent: Wednesday, March 13, 2002 12:12 PM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] Odd behaviour of GCC
Hi all,
While trying to a compile a fresh checkout of ROOT, I get some strange
messages from GCC (`2.96'):
prompt% g++ -pipe -Wall -Woverloaded-virtual -fPIC -Iinclude
-I. -DHAVE_CONFIG -D_REENTRANT -o proof/src/G__Proof.o -c
proof/src/G__Proof.cxx
In file included from /usr/include/g++-3/stl_algobase.h:52,
from /usr/include/g++-3/stl_tree.h:56,
from /usr/include/g++-3/map:31,
from proof/inc/TProof.h:40,
from proof/src/G__Proof.h:31,
from proof/src/G__Proof.cxx:5:
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include/new.h:33:15: new is a directory
So GCC tries to include the directory <root src tree>/new as a header!
Looking at the include paths from GCC, I get
prompt% g++ -v -pipe -Wall -Woverloaded-virtual -fPIC -Iinclude
-I. -DHAVE_CONFIG -D_REENTRANT -o proof/src/G__Proof.o -c
proof/src/G__Proof.cxx
...
#include "..." search starts here:
#include <...> search starts here:
include
.
/usr/include/g++-3
/usr/local/include
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include
/usr/include
...
I could solve it by changing the command line to
prompt% g++ -v -pipe -Wall -Woverloaded-virtual -fPIC -Iinclude
-idirafter . -DHAVE_CONFIG -D_REENTRANT -o proof/src/G__Proof.o -c
proof/src/G__Proof.cxx
...
#include "..." search starts here:
#include <...> search starts here:
include
/usr/include/g++-3
/usr/local/include
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include
/usr/include
.
So there seems to be some problem in the Red Hat 7.2 CPP version
2.96-98. A heads up on that one.
This problem has probably only recently surfaced, due to the
inclussion of
#include <map>
in proof/inc/TProof.h
Yours,
Christian Holm Christensen -------------------------------------------
Address: Sankt Hansgade 23, 1. th. Phone: (+45) 35 35 96 91
DK-2200 Copenhagen N Cell: (+45) 28 82 16 23
Denmark Office: (+45) 353 25 305
Email: cholm@nbi.dk Web: www.nbi.dk/~cholm
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:45 MET