Re: [ROOT] compile pb on SunOS gcc root 3.03.09

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Fri Oct 25 2002 - 01:25:38 MEST


Of course, and the patch was even provided by Eddy himself :-). So use
the cvs head.

Cheers, Fons.



On Thu, 2002-10-24 at 22:05, John Zweizig wrote:
> It appears that the change was made in cvs version 1.21 which was after
> the tag for 3.03-09. 
> Ciao,
> 
> John
> 
> On 24 Oct 2002, Fons Rademakers wrote:
> 
> > Strange, we include typeinfo when compiling on solaris with g++ (search
> > for typeinfo in TBuffer.h). Could you verify your source and check why
> > the case is not true for your setup.
> > 
> > Cheers, Fons.
> > 
> > 
> > 
> > On Thu, 2002-10-24 at 15:21, John Zweizig wrote:
> > > I had the same error and did exactly what the message said, i.e. added
> > > "#include <typeinfo>" to TBuffer.h (in root/base/inc).
> > > 
> > > On Wed, 23 Oct 2002, Eddy Offermann wrote:
> > > 
> > > > Dear all,
> > > > 
> > > > Trying to compile root 3.03.09 on "SunOS ox 5.9 Generic sun4u sparc SUNW,Sun-Fire"
> > > > after configuring with "./configure solarisgcc" results in the following error:
> > > > 
> > > > 
> > > > ==> lib/libCint.so done
> > > > g++ -O  -o bin/cint cint/main/cppmain.o \
> > > >            -Llib -lCint -lm -ltermcap -ldl -L/usr/ccs/lib -lgen
> > > > gcc -O -fPIC -DG__REGEXP1 -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -Iinclude  -o cint/tool/makecint.o -c cint/tool/makecint.c
> > > > g++ -O  -o bin/makecint cint/tool/makecint.o
> > > > g++ -O -fPIC -I/usr/openwin/include -Iinclude  -o utils/src/rootcint.o -c utils/src/rootcint.cxx
> > > > g++ -O  -o bin/rootcint utils/src/rootcint.o \
> > > >            -Llib -lCint -lm -ltermcap -ldl -L/usr/ccs/lib -lgen
> > > > Running build/unix/compiledata.sh
> > > > Making include/compiledata.h
> > > > g++ -O -fPIC -I/usr/openwin/include -Iinclude  -o base/src/InitGui.o -c base/src/InitGui.cxx
> > > > g++ -O -fPIC -I/usr/openwin/include -Iinclude  -o base/src/Match.o -c base/src/Match.cxx
> > > > g++ -O -fPIC -I/usr/openwin/include -Iinclude  -o base/src/Stringio.o -c base/src/Stringio.cxx
> > > > g++ -O -fPIC -I/usr/openwin/include -Iinclude  -o base/src/TApplication.o -c base/src/TApplication.cxx
> > > > In file included from include/TObject.h:188,
> > > >                  from include/TApplication.h:29,
> > > >                  from base/src/TApplication.cxx:29:
> > > > include/TBuffer.h: In function `class TBuffer & operator >>(TBuffer &, Tmpl *&)':
> > > > include/TBuffer.h:245: must #include <typeinfo> before using typeid
> > > > include/TBuffer.h: In function `class TBuffer & operator <<(TBuffer &, const Tmpl *)':
> > > > include/TBuffer.h:255: must #include <typeinfo> before using typeid
> > > > make: *** [base/src/TApplication.o] Error 1
> > > > 
> > > > any ideas ??
> > > > 
> > > > Eddy
> > > > 
> > > > 
> > 
-- 
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:51:15 MET