From:             shawn dot richards at ink dot ltd dot uk
Operating system: Mac OS X Tiger.
PHP version:      5.1.1
PHP Bug Type:     Compile Failure
Bug description:  Failing when including --with-mysql

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 bug report at http://bugs.php.net/?id=35848&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=35848&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=35848&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=35848&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=35848&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=35848&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=35848&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=35848&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=35848&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=35848&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=35848&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=35848&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=35848&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=35848&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=35848&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=35848&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=35848&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=35848&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=35848&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=35848&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=35848&r=mysqlcfg

Reply via email to