mysqli_embedded

From: Date: Thu, 02 Mar 2006 19:26:24 +0000
Subject: mysqli_embedded
Groups: php.install 
Request: Send a blank email to php-install+get-17132@lists.php.net to get a copy of this message
Quick question about enable-embedded-mysqli. It seems like embedded-mysqli tries to link to libmysqld.a which is a c++ library. Using debian-linux and the newest php-5.1 and libmysqlclient15-dev (mysql 5.0.18-7). If I try to compile using this: $ ./configure \ --with-mysqli \ --enable-embedded-mysqli \ [snip] Then I get a linker error because gcc can't find c++ things like delete and new (stuff that libmysqld.a needs): $ make [snip] .../libmysqld.a(sql_analyse.o):(.gnu.linkonce.r._ZTV10field_info[vtable for field_info]+0x14): more undefined references to `__cxa_pure_virtual' follow .../libmysqld.a(sql_analyse.o): In function Procedure::~Procedure()': undefined reference to operator delete(void*)' .../libmysqld.a(sql_analyse.o): In function analyse::~analyse()': undefined reference to operator delete(void*)' collect2: ld returned 1 exit status make: *** [sapi/cgi/php] Error 1 $ This same error happens when I build the cli or cgi version. Also, if I change Makefile to use g++ to link, then everything works! BUILD_CGI = ... g++ ... $ make [snip] Build complete. (It is safe to ignore warnings about tempnam and tmpnam). $ Is this a bug with the configure script, or what? thanks, adrian

« previous php.install (#17132) next »