From:             noethen at daad dot de
Operating system: SuSE Linux Enterprise Server 9
PHP version:      5.0.2
PHP Bug Type:     Compile Failure
Bug description:  PHP5 won't configure with mysqli support on Intel EM64T

Description:
------------
My System is

 SuSE Linux Enterprise Server 9
 on Intel EM64T CPU
 with MySQL 4.1.7 installed from MySQL RPM package
 and Apache 2.0.52 installed from SuSE RPM package

Everything runs fine so far, including Apache and MySQL.

I try to configure PHP 5.0.2 with the following command:

 ./configure --with-apxs2=/usr/sbin/apxs2
             --with-mysqli=/usr/bin/mysql_config

The configuration process breaks with the following lines:

 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.

These are the last lines of config.log:

 configure:54936: checking for MySQLi support
 configure:54982: checking whether to enable embedded MySQLi
                  support
 configure:55115: checking for mysql_set_server_option in
                  -lmysqlclient
 configure:55134: gcc -o conftest -g -O2   -lmysqlclient
                  -lcrypt -lnsl -lm -lz conftest.c
                  -lmysqlclient  -lresolv -lm -ldl -lnsl 
                  -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
                  /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3
                  /../../../../x86_64-suse-linux/bin/ld:
                  cannot find -lmysqlclient
 collect2: ld returned 1 exit status
 configure: failed program was:
 #line 55123 "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; }




-- 
Edit bug report at http://bugs.php.net/?id=30835&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30835&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=30835&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=30835&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30835&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30835&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30835&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30835&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30835&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30835&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30835&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=30835&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=30835&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30835&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30835&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30835&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30835&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30835&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30835&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30835&r=mysqlcfg

Reply via email to