ID: 39210 Updated by: [EMAIL PROTECTED] Reported By: tiosancho at hotmail dot com -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: Mac OS 10.4.8 PowerPC PHP Version: 5.1.6 New Comment:
Duplicate of bug #38452. Previous Comments: ------------------------------------------------------------------------ [2006-10-20 12:52:17] tiosancho at hotmail dot com Description: ------------ Compiling fails under Mac OS 10.4.8 with current development tools installed. The failure message is ""GCC no longer implements <varargs.h>"". It's used in regerror.c. The code does contain a preprocessor directive that attempts to switch between varargs.h and stdargs.h, but the necessary value isn't defined and therefore the older syntax is used. This bug is the same as 34977, which was closed. I manually deleted the offending code, but that caused a slew of errors like /Users/gavin/Desktop/PHP/php-5.1.6/ext/mbstring/oniguruma/regerror.c:186: error: conflicting types for 'onig_error_code_to_str' /Users/gavin/Desktop/PHP/php-5.1.6/ext/mbstring/oniguruma/regerror.c:186: note: a parameter list with an ellipsis can't match an empty parameter name list declaration Reproduce code: --------------- Here were the config options I used: ./configure --prefix=/Library/PHP5 --mandir=/usr/share/man --infodir=/usr/share/info --sysconfdir=/etc --with-zlib --with-xml --with-zlib-dir=/usr --with-openssl --enable-exif --enable-ftp --enable-mbstring --enable-mbregex --enable-sockets --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-apxs=/usr/sbin/apxs I tried defining the macro to trigger the use of stdarg.h, which is HAVE_STDARG_PROTOTYPES. This caused the same result as mentioned above: error: conflicting types for 'onig_error_code_to_str' /Users/gavin/Desktop/PHP/php-5.1.6/ext/mbstring/oniguruma/regerror.c:186: note: a parameter list with an ellipsis can't match an empty parameter name list declaration Expected result: ---------------- Successful compilation. Actual result: -------------- Broken project. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39210&edit=1