php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28577 mysqli doesn't compile
Submitted: 2004-05-30 13:25 UTC Modified: 2004-07-11 22:25 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:1 (33.3%)
From: mc at webheberg dot com Assigned: georg (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.0.0RC2 OS: Linux Debian
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mc at webheberg dot com
New email:
PHP Version: OS:

 

 [2004-05-30 13:25 UTC] mc at webheberg dot com
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 ??




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-31 12:11 UTC] derick@php.net
Assigning to the maintainer.
 [2004-06-11 22:22 UTC] rodolfo at rodsoft dot org
A quick fix would be to change line 193 of mysqli_prop.c 
from 

MYSQLI_MAP_PROPERTY_LONG_LONG(stmt_num_rows_read, STMT, stmt->result->row_count);

to

MYSQLI_MAP_PROPERTY_LONG_LONG(stmt_num_rows_read, STMT, stmt->result.rows);

Or, a better one, put the line 193 inside #if MYSQL_VERSION_ID < 40102, and put the corrected line inside the #else. This way I hope it will behave correctly with older versions of mysql.
 [2004-07-01 01:16 UTC] user at example dot com
This looks like the same issue as in Bug #28376.
 [2004-07-11 22:25 UTC] georg@php.net
closed (works now with MySQL 4.1.3-beta)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 22:01:26 2024 UTC