Re: [ROOT] compiling ROOT 3.04 with gcc3.0.2

From: Piergiorgio Cerello (cerello@to.infn.it)
Date: Thu Nov 22 2001 - 17:37:14 MET


Thanks Jiri,
actually, I had to change rootd/Module.mk and proofd/Module.mk adding a
link to libstdc++.a, and it worked. I was either pointing to the wrong
libstdc++.a or it was missing in LPATH.
ciao,

  Piergiorgio

On 22 Nov 2001, Jiri Masik wrote:

> Fons Rademakers <Fons.Rademakers@cern.ch> writes:
> 
> > Hi PG,
> > 
> >    I'll check as soon as I am back from Alice week in Delhi.
> > But 3.01 works fine, so I am almost sure you made some installation error
> > of gcc 3.02. But to be sure let me try first.
> > 
> > Cheers, Fons.
> > 
> > 
> > On Wed, Nov 21, 2001 at 04:11:07PM +0100, Piergiorgio Cerello wrote:
> > > Hi Rooters,
> > > I'm trying to compile root_v3.02.04 on RH7 (kernel 2.4.2) with gcc-3.0.2
> > > The library creation is ok, but I get stuck when creating bin/rootd and I
> > > get the following message:
> > > 
> > > g++ -O  -o bin/rootd rootd/src/daemon.o rootd/src/error.o rootd/src/net.o
> > > rootd/src/netpar.o rootd/src/rootd.o    -lcrypt \
> > > 	   -lm -ldl -L/usr/lib -lpthread -rdynamic
> > > rootd/src/daemon.o(.data+0x0): undefined reference to
> > > `__gxx_personality_v0'
> > > rootd/src/error.o(.data+0x0): undefined reference to
> > > `__gxx_personality_v0'
> > > rootd/src/net.o: In function `NetRecv(void*&, int&, EMessageTypes&)':
> > > rootd/src/net.o(.text+0x478): undefined reference to `operator
> > > new[](unsigned)'
> 
> 
> Hi,
> 
> these errors might occur if one tries to mix incompatible compilers. I
> can reproduce it if I let g++3.0-compiled objects in rootd/src to be
> linked with g++-2.95.
> -- 
>         Jiri
> 



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