ID: 35688 Updated by: [EMAIL PROTECTED] Reported By: sfletcher at abcoa dot com -Status: Open +Status: Bogus Bug Type: MySQLi related Operating System: AIX 5.2 PHP Version: 5.1.1 New Comment:
You're using wrong libs within wrong architecture. And this is never gonna be a PHP bug so stop reopening and call the IBM support instead.. Previous Comments: ------------------------------------------------------------------------ [2005-12-16 18:39:10] sfletcher at abcoa dot com Installed the GNU Binutils and redo the configure with this new command by enabling the --with-gnu-ld option. --snip-- ./configure --with-mysqli=/usr/local/mysql/bin/mysql_config --with-apxs2=../../apache2/bin/apxs --with-unixODBC --with-openssl --with-curl --with-gnu-ld --disable-libxml --disable-dom --enable-track-vars --enable-ftp --enable-sockets --snip-- Still get the configure failure. --snip-- checking for mcrypt support... no checking for mhash support... no checking whether to include mime_magic support... no checking for MING support... no checking for msession support... no checking for mSQL support... no checking for MSSQL support via FreeTDS... no checking for MySQL support... no checking for specified location of the MySQL UNIX socket... no checking for MySQLi support... yes checking whether to enable embedded MySQLi support... no checking for mysql_set_server_option in -lmysqlclient... no configure: error: wrong mysql library version or lib not found. Check config.log for more information. --snip-- and the log file... --snip-- configure:53543: checking for mcrypt support configure:54372: checking for mhash support configure:54844: checking whether to include mime_magic support configure:55199: checking for MING support configure:56122: checking for msession support configure:56830: checking for mSQL support configure:57339: checking for MSSQL support via FreeTDS configure:57987: checking for MySQL support configure:58033: checking for specified location of the MySQL UNIX socket configure:59186: checking for MySQLi support configure:59232: checking whether to enable embedded MySQLi support configure:59378: checking for mysql_set_server_option in -lmysqlclient configure:59397: gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/mysql/lib -L/usr/local/mysql/lib -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lmysqlclient -lz -lcrypt -lnsl_r -lm conftest.c -lmysqlclient -liconv -lssl -lcrypto -lcurl -lssl -lcrypto -lm -lcurl -lssl -lcrypto 1>&5 /usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/../../../../powerpc-ibm-aix5.2.0.0/bin/ld: warning: powerpc:601 architecture of input file `/usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/libgcc.a(_divdi3.o)' is incompatible with rs6000:6000 output /usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/../../../../powerpc-ibm-aix5.2.0.0/bin/ld: warning: powerpc:601 architecture of input file `/usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/libgcc.a(_moddi3.o)' is incompatible with rs6000:6000 output /usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/../../../../powerpc-ibm-aix5.2.0.0/bin/ld: warning: powerpc:601 architecture of input file `/usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/libgcc.a(_udivdi3.o)' is incompatible with rs6000:6000 output /usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/../../../../powerpc-ibm-aix5.2.0.0/bin/ld: warning: powerpc:601 architecture of input file `/usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/libgcc.a(_umoddi3.o)' is incompatible with rs6000:6000 output /usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/../../../../powerpc-ibm-aix5.2.0.0/bin/ld: warning: powerpc:601 architecture of input file `/usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/libgcc.a(_udivmoddi4.o)' is incompatible with rs6000:6000 output /usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/../../../../powerpc-ibm-aix5.2.0.0/bin/ld: warning: powerpc:601 architecture of input file `/usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/libgcc_eh.a(unwind-dw2.o)' is incompatible with rs6000:6000 output /usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/../../../../powerpc-ibm-aix5.2.0.0/bin/ld: warning: powerpc:601 architecture of input file `/usr/local/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/libgcc_eh.a(unwind-dw2-fde.o)' is incompatible with rs6000:6000 output /tmp//cc0rNEYc.o(.pr+0xc): In function `.main': conftest.c:59393: undefined reference to `.mysql_set_server_option' collect2: ld returned 1 exit status configure: failed program was: #line 59386 "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_set_server_option(); int main() { mysql_set_server_option() ; return 0; } --snip-- Since the GNU ld is working. So, re-opening the bug. I'm not trying to abuse the bug report, honestly. ------------------------------------------------------------------------ [2005-12-16 15:41:18] sfletcher at abcoa dot com Okay, what GNU software contain the ld because there is no GNU ld package?? ------------------------------------------------------------------------ [2005-12-16 15:23:10] sfletcher at abcoa dot com I do not have conftest.c on the machine as stated in the config.log. When doing Google search, I got this information.. --snip-- > when i checked a machine in which i had configured gcc for linux the > config.log did not have this message but the conftest.c file was absent > in both. Any pointers what to do. A new conftest.c file is created in the build tree by configure, for every compilation test performed by configure. --snip-- ------------------------------------------------------------------------ [2005-12-16 14:42:56] sfletcher at abcoa dot com What are the list of all of the natives and GNU tools? Can you specify them all, so I can go to the next step. ------------------------------------------------------------------------ [2005-12-16 01:16:22] [EMAIL PROTECTED] You're using GCC with native ld. Either use all native or all GNU tools. Not PHP bug. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/35688 -- Edit this bug report at http://bugs.php.net/?id=35688&edit=1