ID: 35848 Comment by: pfroling at hotmail dot com Reported By: shawn dot richards at ink dot ltd dot uk Status: Assigned Bug Type: MySQL related Operating System: Mac OS X Tiger. PHP Version: 5CVS-2005-12-30 (snap) Assigned To: andrey New Comment:
Thank you pamelastone. That fixed my configure problem. ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql-dir=/usr/local/mysql --with-zlib-dir=/usr Previous Comments: ------------------------------------------------------------------------ [2006-04-19 17:01:35] pamelastone at gmail dot com The problem is fixed when using --with-mysql-dir=/usr/local/mysql instead of --with-mysql=/usr/local/mysql ------------------------------------------------------------------------ [2006-03-07 21:05:10] thijs dot wijnmaalen at gmail dot com You could fix this issue by changing the config line to: --with-mysql=shared (thanks to YorHel) ------------------------------------------------------------------------ [2005-12-31 00:42:15] [EMAIL PROTECTED] Assigned to Mysql support. ------------------------------------------------------------------------ [2005-12-30 16:41:46] shawn dot richards at ink dot ltd dot uk Found the problem. The PHP compile fails when using this version of MySQL: Mac OS X 10.4, (PowerPC, 64-bit) I have a 64-bit machine and the PHP compile process freaks out at some point because the ranlib returns strange results since data somewhere exceeds the expected 32-bits. This is a legitimate bug, which might not exist in the PHP compiler...but the compile process fails. ------------------------------------------------------------------------ [2005-12-30 06:38:50] shawn dot richards at ink dot ltd dot uk Description: ------------ Mac OS X patched up to date. Apache 2. PHP 5 (latest snap) Compilation with --with-mysql option fails. Have tried compiling with MySQL 4.x Standard, 5.x Standard (preferred) and 5.x Debug. Same error every compilation even though MySQL works every time. Reproduce code: --------------- ./configure --with-apxs2=/usr/local/apache/bin/apxs --enable-bcmath --enable-debug --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/local/lib Expected result: ---------------- Successful compile. Actual result: -------------- Configure script fails with....... checking for MSSQL support via FreeTDS... no checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... no checking for mysql_close in -lmysqlclient... no checking for mysql_error in -lmysqlclient... no configure: error: mysql configure failed. Please check config.log for more information. -------------------------------------------- Config Log says......... configure:58617: checking for MSSQL support via FreeTDS configure:59267: checking for MySQL support configure:59313: checking for specified location of the MySQL UNIX socket configure:59370: checking for MySQL UNIX socket location configure:59556: checking for mysql_close in -lmysqlclient configure:59575: gcc -o conftest -g -O2 -no-cpp-precomp -L/ usr/local/mysql/lib -L/usr/local/mysql/lib conftest.c - lmysqlclient -lz -lm -lxml2 -lz -liconv -lm -lxml2 -lz - liconv -lm 1>&5 /usr/bin/ld: truncated or malformed archive: /usr/local/ mysql/lib/libmysqlclient.a (ranlib structures in table of contents extends past the end of the table of contents, can't load from it) collect2: ld returned 1 exit status configure: failed program was: #line 59564 "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_close(); int main() { mysql_close() ; return 0; } configure:59796: checking for mysql_error in -lmysqlclient configure:59815: gcc -o conftest -g -O2 -no-cpp-precomp -L/ usr/local/mysql/lib -L/usr/local/mysql/lib -L/usr -L/usr conftest.c -lmysqlclient -lz -lz -lm -lxml2 -lz -liconv - lm -lxml2 -lz -liconv -lm 1>&5 /usr/bin/ld: truncated or malformed archive: /usr/local/ mysql/lib/libmysqlclient.a (ranlib structures in table of contents extends past the end of the table of contents, can't load from it) collect2: ld returned 1 exit status configure: failed program was: #line 59804 "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=35848&edit=1