From:             mc at webheberg dot com
Operating system: Linux Debian
PHP version:      5.0.0RC2
PHP Bug Type:     Compile Failure
Bug description:  mysqli doesn't compile

Description:
------------
I'm trying to compile PHP5 with mysqli support. I've really tried all what
I can try. PHP5 RC1, RC2, with mysql 4.1.1, 4.1.2, 5.0.0, nothing
compiles.

For example :

./configure  --without-mysql
--with-mysqli=/src/mysql-standard-4.1.1-alpha-pc-linux-i686/bin/mysql_config

gives :

ext/mysqli/mysqli.o: In function `php_clear_stmt_bind':
/src/php-5.0.0RC2/ext/mysqli/mysqli.c:94: undefined reference to
`mysql_stmt_close'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_autocommit':
/src/php-5.0.0RC2/ext/mysqli/mysqli_api.c:65: undefined reference to
`mysql_autocommit'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_stmt_bind_param':
/src/php-5.0.0RC2/ext/mysqli/mysqli_api.c:174: undefined reference to
`mysql_stmt_bind_param'
ext/mysqli/mysqli_api.o: In function `zif_mysqli_stmt_bind_result':
/src/php-5.0.0RC2/ext/mysqli/mysqli_api.c:329: undefined reference to
`mysql_stmt_bind_result'

and so on ....


With a source distrib of MySQL, it's not better :

./configure  --without-mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config

=> it gives BUG #28376


So i've found a tip to compile, it's not very clean but it works :

./configure  --without-mysql
--with-mysqli=/src/mysql-standard-4.1.1-alpha-pc-linux-i686/bin/mysql_config
make
(let the error come)
./configure  --without-mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config
make
make install


Well, finally, isnt there a serious problem with mysqli ??




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

Reply via email to