From: erki at aring dot ee
Operating system: Linux (Debian lenny/sid)
PHP version: 6CVS-2007-10-08 (snap)
PHP Bug Type: Compile Failure
Bug description: Constant "LIST" defined by mysqlclient and c-client
Description:
------------
There is a little hack in ext/mysqli/php_mysqli_structs.h:
/* A little hack to prevent build break, when mysql is used together with
* c-client, which also defines LIST.
*/
#ifdef LIST
#undef LIST
#endif
The same hack is also needed in ext/mysql/php_mysql.h, otherwise I get the
following error during compilation:
/bin/sh /usr/local/src/php/php6.0-200710081030/libtool --silent
--preserve-dup-deps --mode=compile
/usr/local/src/php/php6.0-200710081030/meta_ccld -Imain/
-I/usr/local/src/php/php6.0-200710081030/main/ -DPHP_ATOM_INC
-I/usr/local/src/php/php6.0-200710081030/include
-I/usr/local/src/php/php6.0-200710081030/main
-I/usr/local/src/php/php6.0-200710081030
-I/usr/local/src/php/php6.0-200710081030/ext/ereg/regex
-I/usr/include/libxml2 -I/usr/local/src/php/php6.0-200710081030/pcrelib
-I/usr/local/src/php/php6.0-200710081030/ext/date/lib
-I/usr/include/freetype2 -I/usr/include/c-client
-I/usr/local/src/php/php6.0-200710081030/ext/mbstring/libmbfl
-I/usr/local/src/php/php6.0-200710081030/ext/mbstring/libmbfl/mbfl
-I/usr/include/mysql -I/usr/include/tidy
-I/usr/local/src/php/php6.0-200710081030/TSRM
-I/usr/local/src/php/php6.0-200710081030/Zend -D_REENTRANT -DTHREAD=1
-I/usr/include -g -O2 -pthread -DZTS -c main/internal_functions.c -o
main/internal_functions.lo
In file included from /usr/include/mysql/mysql.h:72,
from
/usr/local/src/php/php6.0-200710081030/ext/mysql/php_mysql.h:52,
from main/internal_functions.c:56:
/usr/include/mysql/my_list.h:26: error: expected identifier or '(' before
numeric constant
/usr/include/mysql/my_list.h:30: error: expected identifier or '(' before
numeric constant
/usr/include/mysql/my_list.h:31: error: expected identifier or '(' before
numeric constant
/usr/include/mysql/my_list.h:32: error: expected identifier or '(' before
numeric constant
/usr/include/mysql/my_list.h:33: error: expected identifier or '(' before
numeric constant
/usr/include/mysql/my_list.h:34: error: expected declaration specifiers or
'...' before numeric constant
/usr/include/mysql/my_list.h:35: error: expected declaration specifiers or
'...' before numeric constant
/usr/include/mysql/my_list.h:36: error: expected declaration specifiers or
'...' before numeric constant
In file included from
/usr/local/src/php/php6.0-200710081030/ext/mysql/php_mysql.h:52,
from main/internal_functions.c:56:
/usr/include/mysql/mysql.h:295: error: expected specifier-qualifier-list
before numeric constant
/usr/include/mysql/mysql.h:684: error: expected specifier-qualifier-list
before numeric constant
make: *** [main/internal_functions.lo] Error 1
--
Edit bug report at http://bugs.php.net/?id=42890&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42890&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42890&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42890&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42890&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42890&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42890&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42890&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42890&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42890&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42890&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42890&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42890&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42890&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42890&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42890&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42890&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42890&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42890&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42890&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42890&r=mysqlcfg