In the last episode (May 21), Roberto Slepetys Ferreira said:
> I follow your sugestion, but when I try to compile it in the Red Hat
> distribuction, it stills give me the same error:
>
> -----------------------
>
> /bin/sh ../libtool --mode=link gcc -O3 -DDBUG_OFF -O2 -g -pipe -march=i386
> -mcpu=i686 -rdynamic -o ft_dump ft_dump.o libmyisam.a ../mysys/libmysys.a
> ../dbug/libdbug.a ../strings/libmystrings.a -lpthread -lz -lcrypt -lnsl -lm -lpthread
> mkdir .libs
> gcc -O3 -DDBUG_OFF -O2 -g -pipe -march=i386 -mcpu=i686 -rdynamic -o ft_dump ft_dump.o
> libmyisam.a ../mysys/libmysys.a ../dbug/libdbug.a ../strings/libmystrings.a -lpthread -lz
> -lcrypt -lnsl -lm -lpthread
> ../mysys/libmysys.a(raid.o)(.text+0x95): In function `my_raid_create':
> /usr/src/redhat/BUILD/mysql-4.0.13/mysys/raid.cc:119: undefined reference to
> `operator new(unsigned)'
This is a longstanding bug caused by libtool. It should be linking
with g++, not gcc. In that directory's Makefile, change
CCLD = $(CC)
to
CCLD = $(CXX)
and try "make ft_dump" again.
--
Dan Nelson
dnelson@stripped