ID: 50504 Updated by: j...@php.net Reported By: wangyu1314 at gmail dot com -Status: Open +Status: Feedback Bug Type: MySQLi related Operating System: rhel 5.4 PHP Version: 5.2.12RC4 New Comment:
Let me guess: You have 2 different mysql versions installed now? One in /usr and one in /usr/local.. ? Try remove the other one and rebuild PHP.. Previous Comments: ------------------------------------------------------------------------ [2009-12-17 06:47:30] wangyu1314 at gmail dot com 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 this bug report at http://bugs.php.net/?id=50504&edit=1