From: spam2 at rhsoft dot net Operating system: Linux PHP version: 5CVS-2007-07-29 (CVS) PHP Bug Type: MySQL related Bug description: Build against mysql 5.1.20 beta fails
Description: ------------ Build against a mysql-source-build 5.1.20 beta with prefix /usr/local/mysql/ fails. This is not a big problem and installing mysql-devel and building against this with 5.0.x client-library is a workaround, but it think this should be fixed. In file included from /usr/local/mysql/include/mysql/mysql.h:66, from /data/development/src/php/ext/mysql/php_mysql.c:67: /usr/local/mysql/include/mysql/mysql_version.h:18:1: warning: "MYSQL_UNIX_ADDR" redefined In file included from /data/development/src/php/TSRM/tsrm_config.h:1, from /data/development/src/php/TSRM/tsrm_config_common.h:13, from /data/development/src/php/TSRM/tsrm_virtual_cwd.h:26, from /data/development/src/php/main/php.h:409, from /data/development/src/php/ext/mysql/php_mysql.c:32: /data/development/src/php/include/../main/php_config.h:1903:1: warning: this is the location of the previous definition /bin/sh /data/development/src/php/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysqli/ -I/data/development/src/php/ext/mysqli/ -DPHP_ATOM_INC -I/data/development/src/php/include -I/data/development/src/php/main -I/data/development/src/php -I/usr/include/libxml2 -I/usr/kerberos/include -I/data/development/src/php/ext/date/lib -I/usr/include/freetype2 -I/usr/include/imap -I/data/development/src/php/ext/mbstring/oniguruma -I/data/development/src/php/ext/mbstring/libmbfl -I/data/development/src/php/ext/mbstring/libmbfl/mbfl -I/usr/local/mysql/include/mysql -I/usr/include/mysql -I/data/development/src/php/TSRM -I/data/development/src/php/Zend -I/usr/include -O3 -march=i686 -mcpu=i686 -mtune=i686 -mmmx -msse2 -fopenmp -mfpmath=sse,387 -pipe -ffast-math -prefer-non-pic -c /data/development/src/php/ext/mysqli/mysqli.c -o ext/mysqli/mysqli.lo In file included from /usr/local/mysql/include/mysql/mysql.h:66, from /data/development/src/php/ext/mysqli/php_mysqli.h:28, from /data/development/src/php/ext/mysqli/mysqli.c:31: /usr/local/mysql/include/mysql/mysql_version.h:18:1: warning: "MYSQL_UNIX_ADDR" redefined In file included from /data/development/src/php/TSRM/tsrm_config.h:1, from /data/development/src/php/TSRM/tsrm_config_common.h:13, from /data/development/src/php/TSRM/tsrm_virtual_cwd.h:26, from /data/development/src/php/main/php.h:409, from /data/development/src/php/ext/mysqli/mysqli.c:27: /data/development/src/php/include/../main/php_config.h:1903:1: warning: this is the location of the previous definition /bin/sh /data/development/src/php/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/mysqli/ -I/data/development/src/php/ext/mysqli/ -DPHP_ATOM_INC -I/data/development/src/php/include -I/data/development/src/php/main -I/data/development/src/php -I/usr/include/libxml2 -I/usr/kerberos/include -I/data/development/src/php/ext/date/lib -I/usr/include/freetype2 -I/usr/include/imap -I/data/development/src/php/ext/mbstring/oniguruma -I/data/development/src/php/ext/mbstring/libmbfl -I/data/development/src/php/ext/mbstring/libmbfl/mbfl -I/usr/local/mysql/include/mysql -I/usr/include/mysql -I/data/development/src/php/TSRM -I/data/development/src/php/Zend -I/usr/include -O3 -march=i686 -mcpu=i686 -mtune=i686 -mmmx -msse2 -fopenmp -mfpmath=sse,387 -pipe -ffast-math -prefer-non-pic -c /data/development/src/php/ext/mysqli/mysqli_api.c -o ext/mysqli/mysqli_api.lo In file included from /usr/local/mysql/include/mysql/mysql.h:66, from /data/development/src/php/ext/mysqli/php_mysqli.h:28, from /data/development/src/php/ext/mysqli/mysqli_api.c:30: /usr/local/mysql/include/mysql/mysql_version.h:18:1: warning: "MYSQL_UNIX_ADDR" redefined In file included from /data/development/src/php/TSRM/tsrm_config.h:1, from /data/development/src/php/TSRM/tsrm_config_common.h:13, from /data/development/src/php/TSRM/tsrm_virtual_cwd.h:26, from /data/development/src/php/main/php.h:409, from /data/development/src/php/ext/mysqli/mysqli_api.c:27: /data/development/src/php/include/../main/php_config.h:1903:1: warning: this is the location of the previous definition /data/development/src/php/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_stmt_bind_param': /data/development/src/php/ext/mysqli/mysqli_api.c:144: error: 'gptr' undeclared (first use in this function) /data/development/src/php/ext/mysqli/mysqli_api.c:144: error: (Each undeclared identifier is reported only once /data/development/src/php/ext/mysqli/mysqli_api.c:144: error: for each function it appears in.) /data/development/src/php/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_stmt_execute': /data/development/src/php/ext/mysqli/mysqli_api.c:603: error: 'gptr' undeclared (first use in this function) Reproduce code: --------------- Build Mysql 5.1.20 with --prefix=/usr/local/mysql Build PHP with --with-mysql=/usr/local/mysql Expected result: ---------------- A php-build with mysql 5.1 client-library Actual result: -------------- Compile fails -- Edit bug report at http://bugs.php.net/?id=42138&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42138&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42138&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42138&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42138&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42138&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42138&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42138&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42138&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42138&r=support Expected behavior: http://bugs.php.net/fix.php?id=42138&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42138&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42138&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42138&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42138&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42138&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42138&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42138&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42138&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42138&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42138&r=mysqlcfg