#45584 [NEW]: PHP 5 compilation failed with mysql/32bit on AIX5.3/64bit

From: Date: Mon, 21 Jul 2008 16:18:41 +0000
Subject: #45584 [NEW]: PHP 5 compilation failed with mysql/32bit on AIX5.3/64bit
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-127072@lists.php.net to get a copy of this message
From: frederic dot cabo at fr dot ibm dot com Operating system: aix 5.3 TL06 PHP version: 5.2.6 PHP Bug Type: Compile Failure Bug description: PHP 5 compilation failed with mysql/32bit on AIX5.3/64bit Description: ------------ Hi, i'm trying to compile php5.2.6 on aix 5.3/64bit, with mysql extension. # CC=cc ./configure --with-mysql=shared,/opt/mysql5 --with-mysql-sock=/tmp/mysql.sock and i get this error : checking for mysql_close in -lmysqlclient... no checking for mysql_errno in -lmysqlclient... no configure: error: Try adding --with-zlib-dir=<DIR>. Please check config.log for more information. When i look at that logfile, i see : /* 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:62585: checking for mysql_errno in -lmysqlclient configure:62604: cc -o conftest -g -R/opt/mysql5/lib -L/opt/mysql5/lib conftest.c -lmysqlclient -lm 1>&5 ld: 0706-027 The -R /opt/mysql5/lib flag is ignored. ld: 0711-317 ERROR: Undefined symbol: .mysql_errno ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. configure: failed program was: #line 62593 "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_errno(); int main() { mysql_errno() ; return 0; } Is there a bug known, on that kind of configuration? Thanks for help ;-) -- Edit bug report at http://bugs.php.net/?id=45584&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45584&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45584&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45584&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45584&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45584&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45584&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45584&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45584&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45584&r=support Expected behavior: http://bugs.php.net/fix.php?id=45584&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45584&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45584&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45584&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45584&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45584&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45584&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45584&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45584&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45584&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45584&r=mysqlcfg

« previous php.bugs (#127072) next »