ID:               27600
 Updated by:       [EMAIL PROTECTED]
 Reported By:      eero at jlug dot fi
-Status:           Bogus
+Status:           Open
 Bug Type:         Compile Failure
 Operating System: Debian / 2.4.18-1-686
 PHP Version:      4.3.4
 New Comment:

I can reproduce this.

The problem is in Zend/zend.h line 155



#if ZEND_GCC_VERSION >= 3000

# define ZEND_ATTRIBUTE_PTR_FORMAT(type, idx, first) __attribute__
((format(type, idx, first)))

#else

# define ZEND_ATTRIBUTE_PTR_FORMAT(type, idx, first)

#endif



the gcc 3.0.4 is above 3000, but does not support this kind of syntax,
changing the check somethig like > 3040, then everything should be
fine...

I hardcoded for a test to the #else case and compiling works now..

 




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

[2004-03-15 07:41:50] [EMAIL PROTECTED]

Please upgrade you compiler. This works fine with GCC 2.95.3,   

3.3.1 and 3.3.3 (the ones I have installed atm)







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

[2004-03-15 05:10:08] eero at jlug dot fi

Description:
------------
Compile fails on gcc 3.0.4

Reproduce code:
---------------
./configure

make

Expected result:
----------------
gcc  -Iext/ctype/ -I/root/src/php-4.3.4/ext/ctype/ -DPHP_ATOM_INC
-I/root/src/php-4.3.4/include -I/root/src/php-4.3.4/main
-I/root/src/php-4.3.4 -I/root/src/php-4.3.4/Zend
-I/root/src/php-4.3.4/ext/xml/expat  -I/root/src/php-4.3.4/TSRM  -g -O2
 -c /root/src/php-4.3.4/ext/ctype/ctype.c -o ext/ctype/ctype.o  && echo
> ext/ctype/ctype.lo

In file included from /root/src/php-4.3.4/main/php.h:34,

                 from /root/src/php-4.3.4/ext/ctype/ctype.c:23:

/root/src/php-4.3.4/Zend/zend.h:311: argument format specified for
non-function `error_function'

/root/src/php-4.3.4/Zend/zend.h:312: argument format specified for
non-function `printf_function'

/root/src/php-4.3.4/Zend/zend.h:444: argument format specified for
non-function `zend_printf'

/root/src/php-4.3.4/Zend/zend.h:451: argument format specified for
non-function `zend_error_cb'

make: *** [ext/ctype/ctype.lo] Error 1





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


-- 
Edit this bug report at http://bugs.php.net/?id=27600&edit=1

Reply via email to