Description:
When configuring PHP (5.2.0) with MySQL (mysql-standard-5.0.27-linux-i686.tar.gz), I get:
./configure --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib
configure: error: mysql configure failed. Please check config.log for more information.
And with the mysqli driver :
./configure --with-mysqli=/usr/local/mysql/bin/mysql_config --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib
configure: error: wrong mysql library version or lib not found
And yet both /usr/local/mysql/lib/libmysqlxxxx and /usr/local/mysql/bin/mysql_config exist ; installation was done by copying the binary files to a /usr/local/mysql
For your information, these are the last lines of the config.log:
int main() {
mysql_error()
/usr/local/mysql/lib/libmysqlclient.a(crypto_wrapper.o):(.gnu.linkonce.d.__vt_Q25yaSSL10BulkCipher+0xc): more undefined references to `__pure_virtual' follow
/usr/local/mysql/lib/libmysqlclient.a(crypto_wrapper.o): In function `TaoCrypt::RSA_PrivateKey::~RSA_PrivateKey(void)':
crypto_wrapper.cpp:(.gnu.linkonce.t._._Q28TaoCrypt14RSA_PrivateKey+0x12e): undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(log.o): In function `yaSSL::Log::~Log(void)':
log.cpp:(.text+0x30): undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-algebra.o):(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0xc): undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-algebra.o):(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x10): undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-algebra.o):(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x14): undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-algebra.o):(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x18): undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-algebra.o):(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x3c): undefined reference to `__pure_virtual'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-algebra.o):(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x40): more undefined references to `__pure_virtual' follow
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-file.o): In function `TaoCrypt::FileSource::~FileSource(void)':
file.cpp:(.text+0x88): undefined reference to `__builtin_delete'
/usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-file.o): In function `TaoCrypt::FileSink::~FileSink(void)':
file.cpp:(.text+0x28c): undefined reference to `__builtin_delete'
collect2: ld returned 1 exit status
configure: failed program was:
#line 58262 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_error();
How to repeat:
Install the binary mysql-standard-5.0.27-linux-i686.tar in /usr/local/mysql
Untar PHP 5.2.0 for Linux.
Try :
./configure --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib
Description: When configuring PHP (5.2.0) with MySQL (mysql-standard-5.0.27-linux-i686.tar.gz), I get: ./configure --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib configure: error: mysql configure failed. Please check config.log for more information. And with the mysqli driver : ./configure --with-mysqli=/usr/local/mysql/bin/mysql_config --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib configure: error: wrong mysql library version or lib not found And yet both /usr/local/mysql/lib/libmysqlxxxx and /usr/local/mysql/bin/mysql_config exist ; installation was done by copying the binary files to a /usr/local/mysql For your information, these are the last lines of the config.log: int main() { mysql_error() /usr/local/mysql/lib/libmysqlclient.a(crypto_wrapper.o):(.gnu.linkonce.d.__vt_Q25yaSSL10BulkCipher+0xc): more undefined references to `__pure_virtual' follow /usr/local/mysql/lib/libmysqlclient.a(crypto_wrapper.o): In function `TaoCrypt::RSA_PrivateKey::~RSA_PrivateKey(void)': crypto_wrapper.cpp:(.gnu.linkonce.t._._Q28TaoCrypt14RSA_PrivateKey+0x12e): undefined reference to `__builtin_delete' /usr/local/mysql/lib/libmysqlclient.a(log.o): In function `yaSSL::Log::~Log(void)': log.cpp:(.text+0x30): undefined reference to `__builtin_delete' /usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-algebra.o):(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0xc): undefined reference to `__pure_virtual' /usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-algebra.o):(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x10): undefined reference to `__pure_virtual' /usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-algebra.o):(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x14): undefined reference to `__pure_virtual' /usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-algebra.o):(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x18): undefined reference to `__pure_virtual' /usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-algebra.o):(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x3c): undefined reference to `__pure_virtual' /usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-algebra.o):(.gnu.linkonce.d.__vt_Q28TaoCrypt23AbstractEuclideanDomain+0x40): more undefined references to `__pure_virtual' follow /usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-file.o): In function `TaoCrypt::FileSource::~FileSource(void)': file.cpp:(.text+0x88): undefined reference to `__builtin_delete' /usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-file.o): In function `TaoCrypt::FileSink::~FileSink(void)': file.cpp:(.text+0x28c): undefined reference to `__builtin_delete' collect2: ld returned 1 exit status configure: failed program was: #line 58262 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mysql_error(); How to repeat: Install the binary mysql-standard-5.0.27-linux-i686.tar in /usr/local/mysql Untar PHP 5.2.0 for Linux. Try : ./configure --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib