From: simon dot boulet at divahost dot net Operating system: Linux/gcc 3.0.4 PHP version: 4.3.4 PHP Bug Type: Compile Failure Bug description: argument format specified for non-function
Description: ------------ The new version on PHP fails to compile. I was previously using version 4.3.3 and it was compiling fine. Configure flags: --with-mysql --with-apxs --with-gd -with-zlib --with-jpeg-dir=/usr --with-apxs=/usr/local/apache/bin/apxs `make` fails straight at the beginning with: /bin/sh /root/php-4.3.4/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/zlib/ -I/root/php-4.3.4/ext/zlib/ -DPHP_ATOM_INC -I/root/php-4.3.4/include -I/root/php-4.3.4/main -I/root/php-4.3.4 -I/root/php-4.3.4/Zend -I/root/php-4.3.4/ext/xml/expat -I/root/php-4.3.4/TSRM -g -O2 -prefer-pic -c /root/php-4.3.4/ext/zlib/zlib.c -o ext/zlib/zlib.lo In file included from /root/php-4.3.4/main/php.h:34, from /root/php-4.3.4/ext/zlib/zlib.c:28: /root/php-4.3.4/Zend/zend.h:311: argument format specified for non-function `error_function' /root/php-4.3.4/Zend/zend.h:312: argument format specified for non-function `printf_function' /root/php-4.3.4/Zend/zend.h:444: argument format specified for non-function `zend_printf' /root/php-4.3.4/Zend/zend.h:451: argument format specified for non-function `zend_error_cb' make: *** [ext/zlib/zlib.lo] Error 1 I am far from being a C expert, but I think it as something to do with GCC version checking in Zend/zend.h near line 155. I was able to compile just fine with: #define ZEND_ATTRIBUTE_PTR_FORMAT(type, idx, first) instead of: # define ZEND_ATTRIBUTE_PTR_FORMAT(type, idx, first) __attribute__ ((format(type, idx, first))) that would be defined with ZEND_GCC_VERSION >= 3000. -- Edit bug report at http://bugs.php.net/?id=26105&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26105&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26105&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26105&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26105&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26105&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=26105&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26105&r=support Expected behavior: http://bugs.php.net/fix.php?id=26105&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26105&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26105&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26105&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26105&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26105&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26105&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26105&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26105&r=float