#41699 [NEW]: Compile failure with gcc 4.1.2 and varargs.h

From: Date: Fri, 15 Jun 2007 09:40:19 +0000
Subject: #41699 [NEW]: Compile failure with gcc 4.1.2 and varargs.h
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113823@lists.php.net to get a copy of this message
From: webtech at get-telecom dot fr Operating system: Solaris 10 (AMD64) PHP version: 5.2.3 PHP Bug Type: Compile Failure Bug description: Compile failure with gcc 4.1.2 and varargs.h Description: ------------ I've tried to compile PHP 5.2.3 on Solaris 10 (AMD64) with gcc 4.1.2. Everything's OK when compiling with gcc 3.4.1 but with gcc 4.1.2, I've this following error : /opt/gcc412/lib/../lib/gcc/i386-pc-solaris2.10/4.1.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>." /opt/gcc412/lib/../lib/gcc/i386-pc-solaris2.10/4.1.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>." I've seen the bug #34977 but it seems to be fixed in PHP 5.2.3. Expected result: ---------------- Compile OK. Actual result: -------------- /bin/sh /www/src/php-5.2.3/libtool --silent --preserve-dup-deps --mode=compile gcc -DNOT_RUBY -DHAVE_CONFIG_H -Iext/mbstring/ -I/www/src/php-5.2.3/ext/mbstring/ -DPHP_ATOM_INC -I/www/src/php-5.2.3/include -I/www/src/php-5.2.3/main -I/www/src/php-5.2.3 -I/usr/pkg/include/libxml2 -I/usr/pkg//include -I/www/src/php-5.2.3/ext/date/lib -I/www/src/php-5.2.3/ext/mbstring/oniguruma -I/www/src/php-5.2.3/ext/mbstring/libmbfl -I/www/src/php-5.2.3/ext/mbstring/libmbfl/mbfl -I/db/mysql/include -I/www/src/php-5.2.3/TSRM -I/www/src/php-5.2.3/Zend -D_POSIX_PTHREAD_SEMANTICS -I/usr/pkg/include -I/usr/include -g -O2 -c /www/src/php-5.2.3/ext/mbstring/oniguruma/regerror.c -o ext/mbstring/oniguruma/regerror.lo In file included from /www/src/php-5.2.3/ext/mbstring/oniguruma/regerror.c:37: /opt/gcc412/lib/../lib/gcc/i386-pc-solaris2.10/4.1.2/include/varargs.h:4:2: error: #error "GCC no longer implements <varargs.h>." /opt/gcc412/lib/../lib/gcc/i386-pc-solaris2.10/4.1.2/include/varargs.h:5:2: error: #error "Revise your code to use <stdarg.h>." /www/src/php-5.2.3/ext/mbstring/oniguruma/regerror.c: In function 'onig_error_code_to_str': /www/src/php-5.2.3/ext/mbstring/oniguruma/regerror.c:196: error: expected declaration specifiers before 'va_dcl' /www/src/php-5.2.3/ext/mbstring/oniguruma/regerror.c:265: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OnigUChar' /www/src/php-5.2.3/ext/mbstring/oniguruma/regerror.c:271: error: expected declaration specifiers before 'va_dcl' /www/src/php-5.2.3/ext/mbstring/oniguruma/regerror.c:270: error: declaration for parameter 'fmt' but no such parameter /www/src/php-5.2.3/ext/mbstring/oniguruma/regerror.c:269: error: declaration for parameter 'pat_end' but no such parameter /www/src/php-5.2.3/ext/mbstring/oniguruma/regerror.c:268: error: declaration for parameter 'pat' but no such parameter /www/src/php-5.2.3/ext/mbstring/oniguruma/regerror.c:267: error: declaration for parameter 'enc' but no such parameter /www/src/php-5.2.3/ext/mbstring/oniguruma/regerror.c:266: error: declaration for parameter 'bufsize' but no such parameter /www/src/php-5.2.3/ext/mbstring/oniguruma/regerror.c:334: error: expected '{' at end of input gmake: *** [ext/mbstring/oniguruma/regerror.lo] Error 1 -- Edit bug report at http://bugs.php.net/?id=41699&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41699&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41699&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41699&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41699&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41699&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41699&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41699&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41699&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41699&r=support Expected behavior: http://bugs.php.net/fix.php?id=41699&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41699&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41699&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41699&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41699&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41699&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41699&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41699&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41699&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41699&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41699&r=mysqlcfg

« previous php.bugs (#113823) next »