ID: 35848 User updated by: shawn dot richards at ink dot ltd dot uk Reported By: shawn dot richards at ink dot ltd dot uk -Status: Bogus +Status: Open Bug Type: Compile Failure Operating System: Mac OS X Tiger. PHP Version: 5CVS-2005-12-30 (snap) New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [2005-12-30 07:07:52] shawn dot richards at ink dot ltd dot uk What 'shared libs' are you referring to? Looking on the download page at http://dev.mysql.com/downloads/mysql/ 5.0.html, i can only see shared libs for Linux. Please give me some more exact help because I do not know what to do to fix this. It is a brand new Apple box and I have no idea what could have 'broken' it. This is very strange since I am doing a standard install from a dmg and a compile with the options I have shown. Are you saying that because you cannot see anything wrong on your system that there is nothing wrong with the compile process? Other people are complaining about this crash albeit on Solaris. ------------------------------------------------------------------------ [2005-12-30 06:43:50] [EMAIL PROTECTED] Your system is somewhat broken. Works fine for me. (hint: Install mysql shared libs too) ------------------------------------------------------------------------ [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