ID: 37388 User updated by: s dot s at terra dot com dot br Reported By: s dot s at terra dot com dot br -Status: Feedback +Status: Open Bug Type: MySQLi related Operating System: Slackware Linux 10.2 PHP Version: 5.1.4 New Comment:
Step 1: Remove the libmysqlclient.a Step 2: Try to run configure again on PHP 5.1.4 source tree ------------------------------------------------------- checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... yes checking for MySQL UNIX socket location... /tmp/mysql.sock configure: error: Cannot find libmysqlclient under /usr/local/mysql. Note that the MySQL client library is not bundled anymore! ------------------------------------------------------- Previous Comments: ------------------------------------------------------------------------ [2006-05-16 06:28:16] [EMAIL PROTECTED] Please remove libmysqlclient.a and try again. See http://bugs.mysql.com/bug.php?id=4921 for details. ------------------------------------------------------------------------ [2006-05-16 01:17:22] s dot s at terra dot com dot br Hi, you can see the full config.log file on: http://lhotian.no-ip.org:8000/php/config.log Machine setup to reproduce the error: Apache 2.2.2 (untested on other versions, but thats not the point) PHP 5.1.4 (tested with 5.1.3 and got the same error) MySQL 5.0.21 (binary standard) (tested with 5.0.20 and 5.0.20a and got the same error) It compiles clearly with MySQL 5.0.19 (binary standard), using the same setup. ------------------------------------------------------------------------ [2006-05-15 21:55:14] [EMAIL PROTECTED] Can't reproduce it. Please put the whole error output in the net, not just the end of it. Though, it looks like a misconfiguration/miscompilation. At least these "undefined references to `__pure_virtual'" clearly show that you have a problem in your system. ------------------------------------------------------------------------ [2006-05-09 20:52:37] s dot s at terra dot com dot br Description: ------------ Configure step stops when check for mysqlcli lib usability. I think its missing the SSL support on mysqli or the configure check is gessing something wrong (like link to the system libs) or its a mysql issue (if so, Im posting it on the wrong place ;) p.s. The problem only occurs before MySQL 5.0.20 (in this version was included SSL support for the cli) Reproduce code: --------------- ./configure --prefix=/usr \ --sysconfdir=/etc \ --with-apxs2 \ --with-config-file-path=/etc/apache \ --disable-ipv6 \ --enable-sockets \ --with-zlib \ --with-bz2 \ --with-openssl \ --enable-calendar \ --enable-dba \ --enable-ftp \ --with-dom \ --with-dom-xslt \ --with-dom-exslt \ --with-gdbm \ --with-db3 \ --with-inifile \ --enable-soup \ --enable-gd-native-ttf \ --with-gettext \ --with-mime-magic \ --with-mysql-sock \ --with-mysql=/usr/local/mysql \ --with-pdo-mysql=/usr/local/mysql \ --with-mysqli=/usr/local/mysql/bin/mysql_config \ --with-xmlrpc \ --with-xslt \ --with-iconv \ --enable-memory-limit \ --enable-zend-multibyte Expected result: ---------------- No compilation errors ;) Actual result: -------------- >From config.log: [Many messages like] /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)(.text+0x64): In function `TaoCrypt::FileSource::~FileSource(void)': : undefined reference to `__builtin_delete' /usr/local/mysql/lib/libmysqlclient.a(libtaocrypt_la-file.o)(.text+0x200): In function `TaoCrypt::FileSink::~FileSink(void)': : undefined reference to `__builtin_delete' collect2: ld returned 1 exit status configure: failed program was: #line 58781 "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(); int main() { mysql_error() ; return 0; } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37388&edit=1