List:General Discussion« Previous MessageNext Message »
From:Dan Nelson Date:May 21 2003 3:18pm
Subject:Re: How to select the dictionary list of a FTS table - now we have a compilation problem
View as plain text  
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
Thread
How to select the dictionary list of a FTS tableRoberto Slepetys Ferreira20 May
  • Re: How to select the dictionary list of a FTS tableDan Nelson20 May
  • Re: How to select the dictionary list of a FTS tableRoberto Slepetys Ferreira21 May
    • Re: How to select the dictionary list of a FTS tableDan Nelson21 May
  • Re: How to select the dictionary list of a FTS table - now we have a compilation problemRoberto Slepetys Ferreira21 May
    • Re: How to select the dictionary list of a FTS table - now we have a compilation problemDan Nelson21 May