ID: 38452 Comment by: ralph at cs dot cf dot ac dot uk Reported By: openmacnews at gmail dot com Status: Assigned Bug Type: Compile Failure Operating System: OSX 10.4.7 PHP Version: 5CVS-2006-08-14 (CVS) Assigned To: hirokawa New Comment:
This seems like a rerun of a bug I reported about a year ago, which has come back to rear its ugky head again.... In 5.2RC3, MacOS 10.4.7, Xcode 2.4, PPC Mac G4 I get: In file included from /usr/local/src/php-5.2.0RC3/ext/ mbstring/oniguruma/regerror.c:37: /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/varargs.h: 4:2: error: #error "GCC no longer implements <varargs.h>." /usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include/varargs.h: 5:2: error: #error "Revise your code to use <stdarg.h>." /usr/local/src/php-5.2.0RC3/ext/mbstring/oniguruma/ regerror.c: In function 'onig_error_code_to_str': /usr/local/src/php-5.2.0RC3/ext/mbstring/oniguruma/ regerror.c:196: error: parse error before 'va_dcl' /usr/local/src/php-5.2.0RC3/ext/mbstring/oniguruma/ regerror.c:214: error: parse error before 'OnigErrorInfo' /usr/local/src/php-5.2.0RC3/ext/mbstring/oniguruma/ regerror.c: In function 'onig_snprintf_with_pattern': /usr/local/src/php-5.2.0RC3/ext/mbstring/oniguruma/ regerror.c:271: error: parse error before 'va_dcl' make: *** [ext/mbstring/oniguruma/regerror.lo] Error 1 Previous Comments: ------------------------------------------------------------------------ [2006-09-02 19:54:52] seth at pricepages dot org I just got this error with the latest CVS of PHP 5.2.x. I'm running XCode 2.4. Is this going to be fixed soon? ------------------------------------------------------------------------ [2006-08-24 20:48:00] php-bug-38452 at ryandesign dot com I successfully compiled PHP 5.1.4 on Mac OS X 10.4.6 PPC G4 with a certain set of configure options on June 21, 2006, and today I wanted to upgrade to 5.1.5 but got the aforementioned error. Went back and tried to compile the exact same 5.1.4 that worked before, and got same error. So nothing changed in PHP code, but something that changed in the system. According to my installer receipts, since June 21, I have installed Mac OS X 10.4.7, QuickTime 7.1.2, iTunes 6.0.5, Security Update 2006-004 and Xcode 2.4. Interestingly before all this trouble I was able to install PHP 5.1.5 through MacPorts with no errors, and it also enables mbstring. I don't know why it works there and not when I compile manually (even using their exact same configure options). ------------------------------------------------------------------------ [2006-08-16 15:34:13] openmacnews at gmail dot com >I bet openmacnews upgraded XCode between Aug 4th and 14th... yup. > I have however discovered something else: it works fine on Intel OS X with XCode 2.4 (MacBook). I'm seeing this problem on a Dual G4, also with XCode 2.4. Looking more like a gcc PPC issue to me. hmm ... all my tests ARE on PPC -- no MacIntels. ------------------------------------------------------------------------ [2006-08-16 15:22:50] marcus at synchromedia dot co dot uk Well, given that I'm seeing this in 5.1.4, I doubt earlier versions of 5.2 will be any different, and I bet openmacnews upgraded XCode between Aug 4th and 14th... I have however discovered something else: it works fine on Intel OS X with XCode 2.4 (MacBook). I'm seeing this problem on a Dual G4, also with XCode 2.4. Looking more like a gcc PPC issue to me. ------------------------------------------------------------------------ [2006-08-16 14:25:00] [EMAIL PROTECTED] And if the old code doesn't work for you too, it's likely to be Xcode issue, not PHP. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/38452 -- Edit this bug report at http://bugs.php.net/?id=38452&edit=1