From:             gabrycucciolo84pv at fastwebnet dot it
Operating system: Centos 4.8
PHP version:      6SVN-2009-08-31 (snap)
PHP Bug Type:     Compile Failure
Bug description:  Make failure with MySQL 6 and PHP 6.0-dev

Description:
------------
Trying to compile and make snapshot php6.0-200908310030 with MySQL
6.0.11-alpha returns this chain of errors.

With 5.3.1-dev the compilation and make are succesful. The installed files
of MySQL 6.0.11-alpha have been reinstalled to ensure they were not
corrupted.

Compilation line:

./configure --with-openssl --enable-ctype --with-curl --enable-exif
--with-iconv --enable-json --enable-libxml --enable-mbstring --with-bz2
--enable-soap --enable-bcmath --enable-calendar --enable-ftp
--with-gd=/usr/local/bin/gdlib-config --with-mcrypt --with-mhash
--enable-zip --enable-xmlreader --enable-xmlwriter --with-mysql
--with-mysqli --with-apxs2=/usr/local/apache2/bin/apxs --with-pear
--with-zlib --enable-gd-native-ttf --with-pgsql=/usr/bin
--enable-maintainer-zts  --with-imap --with-kerberos --with-imap-ssl
--with-xsl --enable-zend-multibyte --enable-wddx --enable-shmop --with-ldap
--with-oci8=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server --with-db4

Reproduce code:
---------------
In file included from /usr/include/mysql/mysql.h:74,
                 from
/root/php6.0-200908310030/ext/mysql/php_mysql_structs.h:43,
                 from main/internal_functions.c:58:
/usr/include/mysql/my_list.h:26: error: syntax error before numeric
constant
/usr/include/mysql/my_list.h:30: error: syntax error before numeric
constant
/usr/include/mysql/my_list.h:34: error: syntax error before numeric
constant
/usr/include/mysql/my_list.h:35: error: syntax error before numeric
constant
/usr/include/mysql/my_list.h:36: error: syntax error before numeric
constant
In file included from
/root/php6.0-200908310030/ext/mysql/php_mysql_structs.h:43,
                 from main/internal_functions.c:58:
/usr/include/mysql/mysql.h:266: error: syntax error before numeric
constant
/usr/include/mysql/mysql.h:266: warning: no semicolon at end of struct or
union
/usr/include/mysql/mysql.h:277: error: syntax error before '}' token
/usr/include/mysql/mysql.h:277: warning: data definition has no type or
storage class
/usr/include/mysql/mysql.h:286: error: syntax error before "MYSQL"
/usr/include/mysql/mysql.h:286: warning: no semicolon at end of struct or
union
/usr/include/mysql/mysql.h:296: error: syntax error before '}' token
/usr/include/mysql/mysql.h:296: warning: data definition has no type or
storage class
/usr/include/mysql/mysql.h:352: error: syntax error before '*' token
/usr/include/mysql/mysql.h:353: error: syntax error before '*' token
/usr/include/mysql/mysql.h:354: error: syntax error before '*' token
/usr/include/mysql/mysql.h:355: error: syntax error before '*' token
/usr/include/mysql/mysql.h:357: error: syntax error before '*' token
/usr/include/mysql/mysql.h:358: error: syntax error before '*' token
/usr/include/mysql/mysql.h:359: error: syntax error before '*' token
/usr/include/mysql/mysql.h:361: error: syntax error before '*' token
/usr/include/mysql/mysql.h:362: error: syntax error before '*' token
/usr/include/mysql/mysql.h:363: error: syntax error before '*' token
/usr/include/mysql/mysql.h:364: error: syntax error before '*' token
/usr/include/mysql/mysql.h:365: error: syntax error before '*' token
/usr/include/mysql/mysql.h:366: error: syntax error before '*' token
/usr/include/mysql/mysql.h:367: error: syntax error before '*' token
/usr/include/mysql/mysql.h:368: error: syntax error before '*' token
/usr/include/mysql/mysql.h:369: error: syntax error before '*' token
/usr/include/mysql/mysql.h:370: error: syntax error before '*' token
/usr/include/mysql/mysql.h:371: error: syntax error before '*' token
/usr/include/mysql/mysql.h:373: error: syntax error before '*' token
/usr/include/mysql/mysql.h:373: error: syntax error before '*' token
/usr/include/mysql/mysql.h:373: warning: data definition has no type or
storage class
/usr/include/mysql/mysql.h:374: error: syntax error before '*' token
/usr/include/mysql/mysql.h:377: error: syntax error before '*' token
/usr/include/mysql/mysql.h:378: error: syntax error before '*' token
/usr/include/mysql/mysql.h:380: error: syntax error before '*' token
/usr/include/mysql/mysql.h:380: error: syntax error before '*' token
/usr/include/mysql/mysql.h:386: warning: data definition has no type or
storage class
/usr/include/mysql/mysql.h:387: error: syntax error before '*' token
/usr/include/mysql/mysql.h:388: error: syntax error before '*' token
/usr/include/mysql/mysql.h:389: error: syntax error before '*' token
/usr/include/mysql/mysql.h:391: error: syntax error before '*' token
/usr/include/mysql/mysql.h:393: error: syntax error before '*' token
/usr/include/mysql/mysql.h:393: error: syntax error before '*' token
/usr/include/mysql/mysql.h:393: warning: data definition has no type or
storage class
/usr/include/mysql/mysql.h:394: error: syntax error before '*' token
/usr/include/mysql/mysql.h:394: error: syntax error before '*' token
/usr/include/mysql/mysql.h:394: warning: data definition has no type or
storage class
/usr/include/mysql/mysql.h:396: error: syntax error before '*' token
/usr/include/mysql/mysql.h:404: error: syntax error before '*' token
/usr/include/mysql/mysql.h:406: error: `mysql_set_local_infile_handler'
declared as function returning a function
/usr/include/mysql/mysql.h:407: error: syntax error before "int"
/usr/include/mysql/mysql.h:415: error: syntax error before '*' token
/usr/include/mysql/mysql.h:417: error: syntax error before '*' token
/usr/include/mysql/mysql.h:420: error: syntax error before '*' token
/usr/include/mysql/mysql.h:421: error: syntax error before '*' token
/usr/include/mysql/mysql.h:423: error: syntax error before '*' token
/usr/include/mysql/mysql.h:424: error: syntax error before '*' token
/usr/include/mysql/mysql.h:427: error: syntax error before '*' token
/usr/include/mysql/mysql.h:428: error: syntax error before '*' token
/usr/include/mysql/mysql.h:429: error: syntax error before '*' token
/usr/include/mysql/mysql.h:432: error: syntax error before '*' token
/usr/include/mysql/mysql.h:433: error: syntax error before '*' token
/usr/include/mysql/mysql.h:434: error: syntax error before '*' token
/usr/include/mysql/mysql.h:435: error: syntax error before '*' token
/usr/include/mysql/mysql.h:435: error: syntax error before '*' token
/usr/include/mysql/mysql.h:435: warning: data definition has no type or
storage class
/usr/include/mysql/mysql.h:436: error: syntax error before '*' token
/usr/include/mysql/mysql.h:436: error: syntax error before '*' token
/usr/include/mysql/mysql.h:436: warning: data definition has no type or
storage class
/usr/include/mysql/mysql.h:437: error: syntax error before '*' token
/usr/include/mysql/mysql.h:437: error: syntax error before '*' token
/usr/include/mysql/mysql.h:437: warning: data definition has no type or
storage class
/usr/include/mysql/mysql.h:438: error: syntax error before '*' token
/usr/include/mysql/mysql.h:440: error: syntax error before '*' token
/usr/include/mysql/mysql.h:441: error: syntax error before '*' token
/usr/include/mysql/mysql.h:443: error: syntax error before '*' token
/usr/include/mysql/mysql.h:445: error: syntax error before '*' token
/usr/include/mysql/mysql.h:447: error: syntax error before '*' token
/usr/include/mysql/mysql.h:448: error: syntax error before '*' token
/usr/include/mysql/mysql.h:449: error: syntax error before '*' token
/usr/include/mysql/mysql.h:450: error: syntax error before '*' token
/usr/include/mysql/mysql.h:450: error: syntax error before '*' token
/usr/include/mysql/mysql.h:451: warning: data definition has no type or
storage class
/usr/include/mysql/mysql.h:456: error: syntax error before '*' token
/usr/include/mysql/mysql.h:460: error: syntax error before '*' token
/usr/include/mysql/mysql.h:463: error: syntax error before '*' token
/usr/include/mysql/mysql.h:574: error: syntax error before numeric
constant
/usr/include/mysql/mysql.h:574: warning: no semicolon at end of struct or
union
/usr/include/mysql/mysql.h:575: warning: data definition has no type or
storage class
/usr/include/mysql/mysql.h:577: error: 'bind' redeclared as different kind
of symbol
/usr/include/sys/socket.h:111: error: previous declaration of 'bind' was
here
/usr/include/mysql/mysql.h:577: error: 'bind' redeclared as different kind
of symbol
/usr/include/sys/socket.h:111: error: previous declaration of 'bind' was
here
/usr/include/mysql/mysql.h:616: error: syntax error before '}' token
/usr/include/mysql/mysql.h:616: warning: data definition has no type or
storage class
/usr/include/mysql/mysql.h:643: error: syntax error before '*' token
/usr/include/mysql/mysql.h:644: error: syntax error before '*' token
/usr/include/mysql/mysql.h:652: error: syntax error before '*' token
/usr/include/mysql/mysql.h:654: warning: no semicolon at end of struct or
union
/usr/include/mysql/mysql.h:657: error: syntax error before '*' token
/usr/include/mysql/mysql.h:659: error: syntax error before '*' token
/usr/include/mysql/mysql.h:660: error: syntax error before '*' token
/usr/include/mysql/mysql.h:661: error: syntax error before '*' token
/usr/include/mysql/mysql.h:662: error: syntax error before '*' token
/usr/include/mysql/mysql.h:663: error: syntax error before '*' token
/usr/include/mysql/mysql.h:664: error: syntax error before '*' token
/usr/include/mysql/mysql.h:665: error: syntax error before '*' token
/usr/include/mysql/mysql.h:666: error: syntax error before '*' token
/usr/include/mysql/mysql.h:667: error: syntax error before '*' token
/usr/include/mysql/mysql.h:668: error: syntax error before '*' token
/usr/include/mysql/mysql.h:670: warning: data definition has no type or
storage class
/usr/include/mysql/mysql.h:673: error: syntax error before '*' token
/usr/include/mysql/mysql.h:673: error: syntax error before '*' token
/usr/include/mysql/mysql.h:673: warning: data definition has no type or
storage class
/usr/include/mysql/mysql.h:674: error: syntax error before '*' token
/usr/include/mysql/mysql.h:676: error: syntax error before '*' token
/usr/include/mysql/mysql.h:677: error: syntax error before '*' token
/usr/include/mysql/mysql.h:678: error: syntax error before '*' token
/usr/include/mysql/mysql.h:681: error: syntax error before '*' token
/usr/include/mysql/mysql.h:682: error: syntax error before '*' token
/usr/include/mysql/mysql.h:683: error: syntax error before '*' token
/usr/include/mysql/mysql.h:686: error: syntax error before '*' token
/usr/include/mysql/mysql.h:689: error: syntax error before '*' token
/usr/include/mysql/mysql.h:690: error: syntax error before '*' token
/usr/include/mysql/mysql.h:691: error: syntax error before '*' token
/usr/include/mysql/mysql.h:692: error: syntax error before '*' token
/usr/include/mysql/mysql.h:693: error: syntax error before '*' token
/usr/include/mysql/mysql.h:694: error: syntax error before '*' token
/usr/include/mysql/mysql.h:698: error: syntax error before '*' token
/usr/include/mysql/mysql.h:698: error: syntax error before '*' token
/usr/include/mysql/mysql.h:698: warning: data definition has no type or
storage class
/usr/include/mysql/mysql.h:699: error: syntax error before '*' token
/usr/include/mysql/mysql.h:699: error: syntax error before '*' token
/usr/include/mysql/mysql.h:699: warning: data definition has no type or
storage class
/usr/include/mysql/mysql.h:700: error: syntax error before '*' token
/usr/include/mysql/mysql.h:701: error: syntax error before '*' token
/usr/include/mysql/mysql.h:702: error: syntax error before '*' token
/usr/include/mysql/mysql.h:703: error: syntax error before '*' token
/usr/include/mysql/mysql.h:705: error: syntax error before '*' token
/usr/include/mysql/mysql.h:706: error: syntax error before '*' token
/usr/include/mysql/mysql.h:707: error: syntax error before '*' token
/usr/include/mysql/mysql.h:708: error: syntax error before '*' token
/usr/include/mysql/mysql.h:709: error: syntax error before '*' token
/usr/include/mysql/mysql.h:710: error: syntax error before '*' token
/usr/include/mysql/mysql.h:712: error: syntax error before '*' token
/usr/include/mysql/mysql.h:713: error: syntax error before '*' token
/usr/include/mysql/mysql.h:714: error: syntax error before '*' token
/usr/include/mysql/mysql.h:715: error: syntax error before '*' token
/usr/include/mysql/mysql.h:716: error: syntax error before '*' token
/usr/include/mysql/mysql.h:717: error: syntax error before '*' token
/usr/include/mysql/mysql.h:718: error: syntax error before '*' token
make: *** [main/internal_functions.lo] Error 1


Expected result:
----------------
Make Succesful

Actual result:
--------------
Compilation Failed

-- 
Edit bug report at http://bugs.php.net/?id=49421&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=49421&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=49421&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=49421&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=49421&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=49421&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=49421&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=49421&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=49421&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=49421&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=49421&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=49421&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=49421&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=49421&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=49421&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=49421&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=49421&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=49421&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=49421&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=49421&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=49421&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=49421&r=mysqlcfg

Reply via email to