ID:               50504
 Updated by:       [email protected]
 Reported By:      wangyu1314 at gmail dot com
-Status:           Feedback
+Status:           Closed
 Bug Type:         MySQLi related
 Operating System: rhel 5.4
 PHP Version:      5.2.12RC4
 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2009-12-17 09:16:51] [email protected]

Then how does it not have these constants defined? 
Check your system, really. You most likely have some old mysql
installed anyway. 

Try: 

# find / -name 'mysql.h'

------------------------------------------------------------------------

[2009-12-17 08:36:18] wangyu1314 at gmail dot com

no,i have one mysql version only.
it's mysql 5.5 m2.
i use mysql only with build myself.

------------------------------------------------------------------------

[2009-12-17 08:16:28] [email protected]

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..

------------------------------------------------------------------------

[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

Reply via email to