From:             supportnew at byethost dot com
Operating system: debian linux 4
PHP version:      5.2.4
PHP Bug Type:     *Compile Issues
Bug description:  GCC no longer implements <varargs.h>

Description:
------------
When compiling the stable 5.2.4 branch of php the compile process dies at
the same point.


I have tried this on 3 seperate servers (using the different versions of
GCC )

Reproduce code:
---------------
download stable, configure with

./configure  --prefix=/usr/phpapache2
--with-apxs2=/usr/local/apache2/bin/apxs --disable-cgi
--with-config-file-path=/etc/php4/apache --enable-inline-optimization
--enable-memory-limit --disable-debug --disable-rpath --disable-static
--with-layout=GNU --with-pear=/usr/share/php --enable-calendar
--enable-track-vars --enable-trans-sid --enable-bcmath --without-bz2
--disable-ctype --with-iconv --enable-exif --disable-ftp --with-gettext
--enable-mbstring --disable-sockets --disable-wddx --with-xsl
--with-expat-dir=/usr --disable-yp --with-zlib --without-pgsql
--without-openssl --with-zip=/usr --disable-dbx
--with-exec-dir=/usr/lib/php4/libexec --with-mcrypt --without-sybase-ct
--with-mysql=/usr --with-zlib-dir=/usr --with-gd=/usr/local/gd
--with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr
--with-ttf=shared,/usr --with-t1lib --with-freetype-dir=/usr
--enable-gd-native-ttf --with-sqlite --with-mysqli --with-xsl
--enable-ctype --with-pdo-mysql --without-pdo-sqlite --with-pspell

using 

gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --with-tune=i686
--enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)


config.log can be found here

http://byet.org/config.log

Expected result:
----------------
no errors.

Actual result:
--------------
In file included from
/root/php-5.2.4/ext/mbstring/oniguruma/regerror.c:37:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/varargs.h:4:2: error: #error
"GCC no longer implements <varargs.h>."
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/varargs.h:5:2: error: #error
"Revise your code to use <stdarg.h>."
/root/php-5.2.4/ext/mbstring/oniguruma/regerror.c: In function
'onig_error_code_to_str':
/root/php-5.2.4/ext/mbstring/oniguruma/regerror.c:196: error: expected
declaration specifiers before 'va_dcl'
/root/php-5.2.4/ext/mbstring/oniguruma/regerror.c:265: error: expected
'=', ',', ';', 'asm' or '__attribute__' before 'OnigUChar'
/root/php-5.2.4/ext/mbstring/oniguruma/regerror.c:271: error: expected
declaration specifiers before 'va_dcl'
/root/php-5.2.4/ext/mbstring/oniguruma/regerror.c:270: error: declaration
for parameter 'fmt' but no such parameter
/root/php-5.2.4/ext/mbstring/oniguruma/regerror.c:269: error: declaration
for parameter 'pat_end' but no such parameter
/root/php-5.2.4/ext/mbstring/oniguruma/regerror.c:268: error: declaration
for parameter 'pat' but no such parameter
/root/php-5.2.4/ext/mbstring/oniguruma/regerror.c:267: error: declaration
for parameter 'enc' but no such parameter
/root/php-5.2.4/ext/mbstring/oniguruma/regerror.c:266: error: declaration
for parameter 'bufsize' but no such parameter
/root/php-5.2.4/ext/mbstring/oniguruma/regerror.c:334: error: expected '{'
at end of input
make: *** [ext/mbstring/oniguruma/regerror.lo] Error 1


-- 
Edit bug report at http://bugs.php.net/?id=42502&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42502&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42502&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42502&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42502&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42502&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42502&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42502&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42502&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42502&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42502&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42502&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42502&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42502&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42502&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42502&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42502&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42502&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42502&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42502&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42502&r=mysqlcfg

Reply via email to