-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 9 Dec 2002, Pierre wrote:
> I try to compile mysql-3.23.53 on my GNU/Linux system with gcc-3.2 there > was no problem with the configure, but for the make I got this : > > [...] > Making all in isam > gmake[2]: Entering directory `/tmp/mysql-3.23.53/isam' > /bin/sh ../libtool --mode=link gcc -s -O3 -DDBUG_OFF -O3 -march=i686 > -L/usr/local/BerkeleyDB.4.1/lib -lpthread -lgpm -rdynamic -o isamchk > isamchk.o sort.o libnisam.a ../mysys/libmysys.a > ../dbug/libdbug.a ../strings/libmystrings.a -lpthread -lz -lcrypt -lnsl > -lm -lpthread gcc -s -O3 -DDBUG_OFF -O3 -march=i686 > -L/usr/local/BerkeleyDB.4.1/lib -lpthread -lgpm -rdynamic -o isamchk > isamchk.o sort.o libnisam.a ../mysys/libmysys.a ../dbug/libdbug.a > ../strings/libmystrings.a -lpthread -lz -lcrypt -lnsl -lm -lpthread > ../mysys/libmysys.a(my_tempnam.o): In function `my_tempnam': > my_tempnam.o(.text+0x51): the use of `tempnam' is dangerous, better use > `mkstemp' > ../mysys/libmysys.a(raid.o): In function `my_raid_create': > raid.o(.text+0xa5): undefined reference to `operator new(unsigned)' > raid.o(.text+0x132): undefined reference to `operator delete(void*)' > ../mysys/libmysys.a(raid.o): In function `my_raid_open': > raid.o(.text+0x185): undefined reference to `operator new(unsigned)' > raid.o(.text+0x20f): undefined reference to `operator delete(void*)' > ../mysys/libmysys.a(raid.o): In function `my_raid_close': > raid.o(.text+0x7c1): undefined reference to `operator delete(void*)' > collect2: ld returned 1 exit status > gmake[2]: *** [isamchk] Error 1 > gmake[2]: Leaving directory `/tmp/mysql-3.23.53/isam' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory `/tmp/mysql-3.23.53' > gmake: *** [all-recursive-am] Error 2 The problem is, that the RAID functionality of MySQL has been implemented in C++, which leads to these interesting errors, when linking object files that include C++ code with some C compilers. There are three options you should try (in the recommended order): o simply compile without "--with-raid", if you don't need it o use "CC=g++" when running "configure" o add CFLAGS="-DHAVE_MYSYS_NEW" - this might also help to work around this problem. Bye, LenZ - -- For technical support contracts, visit https://order.mysql.com/?ref=mlgr __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Mr. Lenz Grimmer <[EMAIL PROTECTED]> / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Production Engineer /_/ /_/\_, /___/\___\_\___/ Hamburg, Germany <___/ www.mysql.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE99OhgSVDhKrJykfIRAqwbAJ93ax7DEQGoWPlohu1Zqct5JUCVtwCbBdqq KBjLO89E6zAfbkzaT1NmoWc= =+EgD -----END PGP SIGNATURE----- --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php