Bug #25354 PHP configure error
Submitted: 1 Jan 2007 22:54 Modified: 10 Jan 2007 11:31
Reporter: Baptiste Autin Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Installing Severity:S3 (Non-critical)
Version:5.0.27, Linux non-RPM i686 package OS:Linux (Linux (Suse 10.2))
Assigned to: CPU Architecture:Any
Tags: configure, php

[1 Jan 2007 22:54] Baptiste Autin
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
[10 Jan 2007 9:14] Sveta Smirnova
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments to the original bug instead.

Thank you for your interest in MySQL.

Duplicates Bug #19817
[10 Jan 2007 11:31] Baptiste Autin
Thanks for the answer.
Sorry for the duplicate. Unfortunately, I could not find the bug you mentioned (#19817) when I submitted mine.

But please note that bug #19817 does not show up in the list of bugs, neither when one searchs for the keyword "PHP", neither for "configure".
[10 Jan 2007 11:43] Sveta Smirnova
Thank you for the note.

I've added tags to the bug #19817