#38452 [Ana->Bgs]: cvs build fails @ --enable-mbstring
| From: | hirokawa@php.net | Date: | Sun, 17 Sep 2006 07:28:03 +0000 |
| Subject: | #38452 [Ana->Bgs]: cvs build fails @ --enable-mbstring | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-102318@lists.php.net to get a copy of this message | ||
ID: 38452
Updated by: hirokawa@php.net
Reported By: openmacnews at gmail dot com
-Status: Analyzed
+Status: Bogus
Bug Type: Compile Failure
Operating System: OSX 10.4.7
PHP Version: 5CVS-2006-08-14 (CVS)
Assigned To: hirokawa
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
This problem is not PHP 5.x issue, but it is caused by
a bug of gcc 4.0.1 in Xcode.
The possible workarounds are,
1.try newer/better version of XCode.
2.use gcc-3.3 instead of gcc-4.0.1.
3.disable compile optimization switch (-O2)
4.rewrite
#undef HAVE_STDARG_PROTOTYPES
to
#define HAVE_STDARG_PROTOTYPES 1
in main/php_config.h after configure executed.
Previous Comments:
------------------------------------------------------------------------
[2006-09-16 11:56:37] hirokawa@php.net
It seems to be caused by bugs of gcc 4.0.1 of XCode 2.4
on Mac OSX PPC.
Can you try gcc-3.3 instead of gcc-4.0.1 ?
$ CC=/usr/bin/gcc-3.3
$ ./configure [options]
$ make
------------------------------------------------------------------------
[2006-09-14 22:54:00] hirokawa@php.net
Since PHP 5.2, newer version of oniguruma (multibyte regex library for
Ruby) is bundled.
This problem maybe caused by this change.
I ask for the original author of oniguruma about
this problem.
------------------------------------------------------------------------
[2006-09-06 20:13:02] ralph at cs dot cf dot ac dot uk
See Bug #34977.
------------------------------------------------------------------------
[2006-09-05 21:28:54] ralph at cs dot cf dot ac dot uk
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
------------------------------------------------------------------------
[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?
------------------------------------------------------------------------
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