From: wangyu1314 at gmail dot com Operating system: rhel 5.4 PHP version: 5.2.12RC4 PHP Bug Type: MySQLi related Bug description: build mysqli wrong
Description: ------------ i biuld myself the mysql 5.5 version and it's successed. and when i build the php 5.2.12RC4,but happened something wrong. t/mysqli/mysqli.c -o ext/mysqli/mysqli.lo /usr/local/src/php-5.2.12RC4/ext/mysqli/mysqli.c: In function ¡®zm_startup_mysqli¡¯: /usr/local/src/php-5.2.12RC4/ext/mysqli/mysqli.c:637: error: ¡®MYSQL_RPL_MASTER¡¯ undeclared (first use in this function) /usr/local/src/php-5.2.12RC4/ext/mysqli/mysqli.c:637: error: (Each undeclared identifier is reported only once /usr/local/src/php-5.2.12RC4/ext/mysqli/mysqli.c:637: error: for each function it appears in.) /usr/local/src/php-5.2.12RC4/ext/mysqli/mysqli.c:638: error: ¡®MYSQL_RPL_SLAVE¡¯ undeclared (first use in this function) /usr/local/src/php-5.2.12RC4/ext/mysqli/mysqli.c:639: error: ¡®MYSQL_RPL_ADMIN¡¯ undeclared (first use in this function) make: *** [ext/mysqli/mysqli.lo] Error 1 Reproduce code: --------------- build with blow: CHOST="i686-pc-linux-gnu" CFLAGS="-O2 -msse -msse2 -msse3 -mmmx -mfpmath=sse -march=pentium4 -pipe -fomit-frame-pointer" CXXFLAGS="-O2 -msse -msse2 -msse3 -mmmx -mfpmath=sse -funroll-loops -march=pentium4 -pipe -felide-constructors -fno-exceptions -fno-rtti -fomit-frame-pointer" './configure' '--prefix=/usr/local/webserver/php' '--with-pear=/usr/share/php' '--with-zlib-dir' '--with-bz2' '--with-libxml-dir=/usr' '--with-gd=/usr/local/webserver/gd2' '--enable-gd-native-ttf' '--enable-gd-jis-conv' '--with-freetype-dir' '--with-jpeg-dir' '--with-png-dir' '--with-ttf=shared,/usr' '--enable-mbstring' '--with-mysql=/usr/local/webserver/mysql' '--with-mysqli=/usr/local/webserver/mysql/bin/mysql_config' '--with-config-file-path=/etc' '--with-iconv' '--disable-ipv6' '--enable-static' '--enable-inline-optimization' '--enable-zend-multibyte' '--enable-sockets' '--with-gettext' '--enable-sysvsem' '--enable-mbregex' '--enable-fastcgi' '--enable-force-cgi-redirect' '--without-sqlite' '--disable-pdo' '--disable-reflection' -- Edit bug report at http://bugs.php.net/?id=50504&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50504&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50504&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50504&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50504&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50504&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50504&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50504&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50504&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50504&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50504&r=support Expected behavior: http://bugs.php.net/fix.php?id=50504&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50504&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50504&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50504&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50504&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50504&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50504&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50504&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50504&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50504&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50504&r=mysqlcfg