From: jari at personal dot fi Operating system: Fedora Core 5 PHP version: 5.1.6 PHP Bug Type: mbstring related Bug description: Mbstring compile error
Description: ------------ Hi to everyone, I have annoying error when compiling PHP (Fedora 5 [i386]). I try compile with this: ./configure --with-zlib-dir=/usr/local/ --enable-shared --enable-static --enable-memory-limit --enable-magic-quotes --disable-short-tags --with-apxs2=/usr/local/apache2/bin/apxs --with-bz2 --without-sqlite --with-mysql=/usr/local/mysql --enable-exif --with-mm --enable-calendar --with-gd=/usr/local/ --with-freetype-dir=/usr/local/include/freetype2/ --with-png-dir=/usr/local/include/ --with-jpeg --enable-gd-native-ttf --enable-mbstring ...and got result like this: In file included from /usr/src/php-5.1.6/ext/mbstring/oniguruma/regerror.c:37: /usr/lib/gcc/i386-redhat-linux/4.0.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>." /usr/lib/gcc/i386-redhat-linux/4.0.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>." /usr/src/php-5.1.6/ext/mbstring/oniguruma/regerror.c: In function 'onig_error_code_to_str': /usr/src/php-5.1.6/ext/mbstring/oniguruma/regerror.c:194: error: syntax error before 'va_dcl' /usr/src/php-5.1.6/ext/mbstring/oniguruma/regerror.c:200: error: syntax error before 'va_list' /usr/src/php-5.1.6/ext/mbstring/oniguruma/regerror.c:269: error: syntax error before 'va_dcl' /usr/src/php-5.1.6/ext/mbstring/oniguruma/regerror.c:273: error: redefinition of parameter 's' /usr/src/php-5.1.6/ext/mbstring/oniguruma/regerror.c:192: error: previous definition of 's' was here /usr/src/php-5.1.6/ext/mbstring/oniguruma/regerror.c:275: error: syntax error before 'va_list' make: *** [ext/mbstring/oniguruma/regerror.lo] Error 1 I have compiled PHP with result ok WITHOUT --enable-calendar option previously. I have installed only Zend Optimizer 3.0.1 afted PHP and next when I try to recompile with calendar, it fails... Seems that other fellows have this kind of problems too so what's wrong? --WIZ-- Reproduce code: --------------- See previous Expected result: ---------------- Compile OK Actual result: -------------- Make failure... -- Edit bug report at http://bugs.php.net/?id=38778&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38778&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38778&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38778&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38778&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38778&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38778&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38778&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38778&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38778&r=support Expected behavior: http://bugs.php.net/fix.php?id=38778&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38778&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38778&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38778&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38778&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38778&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38778&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38778&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38778&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38778&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38778&r=mysqlcfg