RC1 MySQLi compiling error

php.internals

Sabine Seipel

22 years ago
Hello, the following configure & make with PHP5 RC1: root@vival:/install/php-5.0.0RC1# ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql4 --with-mysqli=/usr/local/mysql4_1/bin/mysql_config --with-pgsql=/usr/local/pgsql --disable-libxml result in: root@vival:/install/php-5.0.0RC1# make /bin/sh /install/php-5.0.0RC1/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/ctype/ -I/install/php-5.0.0RC1/ext/ctype/ -DPHP_ATOM_INC -I/install/php-5.0.0RC1/include -I/install/php-5.0.0RC1/main -I/install/php-5.0.0RC1 -I/install/php-5.0.0RC1/Zend -I/usr/local/mysql4/include/mysql -I/usr/local/mysql4_1/include/mysql -I/usr/local/pgsql/include -I/install/php-5.0.0RC1/TSRM -g -O2 -prefer-pic -c /install/php-5.0.0RC1/ext/ctype/ctype.c -o ext/ctype/ctype.lo /bin/sh /install/php-5.0.0RC1/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysql/ -I/install/php-5.0.0RC1/ext/mysql/ -DPHP_ATOM_INC -I/install/php-5.0.0RC1/include -I/install/php-5.0.0RC1/main -I/install/php-5.0.0RC1 -I/install/php-5.0.0RC1/Zend -I/usr/local/mysql4/include/mysql -I/usr/local/mysql4_1/include/mysql -I/usr/local/pgsql/include -I/install/php-5.0.0RC1/TSRM -g -O2 -prefer-pic -c /install/php-5.0.0RC1/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.lo /bin/sh /install/php-5.0.0RC1/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysqli/ -I/install/php-5.0.0RC1/ext/mysqli/ -DPHP_ATOM_INC -I/install/php-5.0.0RC1/include -I/install/php-5.0.0RC1/main -I/install/php-5.0.0RC1 -I/install/php-5.0.0RC1/Zend -I/usr/local/mysql4/include/mysql -I/usr/local/mysql4_1/include/mysql -I/usr/local/pgsql/include -I/install/php-5.0.0RC1/TSRM -g -O2 -prefer-pic -c /install/php-5.0.0RC1/ext/mysqli/mysqli.c -o ext/mysqli/mysqli.lo In file included from /install/php-5.0.0RC1/ext/mysqli/mysqli.c:31: /install/php-5.0.0RC1/ext/mysqli/php_mysqli.h:47: syntax error before "MYSQL_STMT" /install/php-5.0.0RC1/ext/mysqli/php_mysqli.h:47: warning: no semicolon at end of struct or union /install/php-5.0.0RC1/ext/mysqli/php_mysqli.h:51: syntax error before '}' token /install/php-5.0.0RC1/ext/mysqli/php_mysqli.h:51: warning: data definition has no type or storage class /install/php-5.0.0RC1/ext/mysqli/php_mysqli.h:108: syntax error before '*' token /install/php-5.0.0RC1/ext/mysqli/mysqli.c:91: syntax error before '*' token /install/php-5.0.0RC1/ext/mysqli/mysqli.c: In function `php_clear_stmt_bind': /install/php-5.0.0RC1/ext/mysqli/mysqli.c:93: `stmt' undeclared (first use in this function) /install/php-5.0.0RC1/ext/mysqli/mysqli.c:93: (Each undeclared identifier is reported only once /install/php-5.0.0RC1/ext/mysqli/mysqli.c:93: for each function it appears in.) /install/php-5.0.0RC1/ext/mysqli/mysqli.c: In function `mysqli_objects_free_storage': /install/php-5.0.0RC1/ext/mysqli/mysqli.c:125: syntax error before ')' token /install/php-5.0.0RC1/ext/mysqli/mysqli.c: In function `zm_startup_mysqli': /install/php-5.0.0RC1/ext/mysqli/mysqli.c:454: `MYSQL_NO_DATA' undeclared (first use in this function) /install/php-5.0.0RC1/ext/mysqli/mysqli.c: In function `php_mysqli_fetch_into_hash': /install/php-5.0.0RC1/ext/mysqli/mysqli.c:563: syntax error before ')' token make: *** [ext/mysqli/mysqli.lo] Error 1 It seems to be an Bug! regards Sabine Seipel
-- +++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz

Georg Richter

22 years ago
Hi,
> ot@vival:/install/php-5.0.0RC1# ./configure > --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql4 > --with-mysqli=/usr/local/mysql4_1/bin/mysql_config > --with-pgsql=/usr/local/pgsql --disable-libxml
using two different mysql libraries will not work of course. You have to specify --with-mysql=/path_to_mysql_4.1