Re: [ROOT] Compiling ROOT in RH Linux 7.1

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Thu Apr 04 2002 - 11:29:45 MEST


It look like it, where it says 

> directory `new' specified in #include

make sure that in your $ROOTSYS directory there is no directory "new"
anymore (superceeded by directory newdelete). Also check for such a
directory in any of your own include paths.

Cheers, Fons.



On Thu, 2002-04-04 at 02:55, Ashley Cambrell wrote:
> Hi Christian,
> 
> Christian Holm Christensen wrote:
> 
> >Hi,
> >
> >Just an aside note. 
> >
> >> g++ -pipe -Wall -Woverloaded-virtual -fPIC -D_REENTRANT -I. -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:32,
> >>                  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 gmake: *** [proof/src/G__Proof.o] Error 1
> >>
> Is this the same error or is it different?
> 
> 
> 
>  > make
> g++  -pipe -Wall -Woverloaded-virtual -fPIC -Iinclude -DHAVE_CONFIG 
> -D_REENTRANT -I. -o pcre/src/G__Pcre.o -c pcre/src/G__Pcre.cxx
> In file included from 
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/alloc.h:21,
>                  from 
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/bastring.h:39,
>                  from 
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/string:6,
>                  from pcre/inc/TPcre.h:72,
>                  from pcre/src/G__Pcre.h:29,
>                  from pcre/src/G__Pcre.cxx:5:
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_alloc.h:42: 
> directory `new' specified in #include
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_alloc.h: 
> In function `static void * 
> __malloc_alloc_template<0>::_S_oom_malloc(unsigned int)':
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_alloc.h:158:   
> instantiated from `__malloc_alloc_template<0>::allocate(unsigned int)'
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_alloc.h:407:   
> instantiated from `__default_alloc_template<true,0>::allocate(unsigned int)'
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/bastring.cc:33:   
> instantiated from 
> `basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> 
>  >::Rep::operator new(unsigned int, unsigned int)'
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/bastring.cc:60:   
> instantiated from 
> `basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> 
>  >::Rep::create(unsigned int)'
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/bastring.cc:71:   
> instantiated from 
> `basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> 
>  >::Rep::clone()'
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/bastring.h:75:   
> instantiated from here
> /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/stl_alloc.h:199: 
> type `bad_alloc' is not yet defined
> make: *** [pcre/src/G__Pcre.o] Error 1
> 
> g++ --version
> 2.95.4
> 
> Debian unstable
> 
> >
> >This is a bug in GCC, see [1].  This issue has been raised before on
> >roottalk [2] too.  
> >
> >Yours, 
> >
> >Christian Holm Christensen -------------------------------------------
> ><snip>
> >
> Ashley Cambrell
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:48 MET