我的环境是centos 5
当我在做php5.2.4的make 时,出现如下错误信息:
/bin/sh /home/soft/php-5.2.4/libtool --silent --preserve-dup-deps --mode=compile
gcc -DNOT_RUBY -DHAVE_CONFIG_H -Iext/mbstring/ -I/home/soft/php-5.2.4/ext/mbst
ring/ -DPHP_ATOM_INC -I/home/soft/php-5.2.4/include -I/home/soft/php-5.2.4/main
-I/home/soft/php-5.2.4 -I/usr/local/include/libxml2 -I/usr/kerberos/include -I/u
sr/local/curl/include -I/home/soft/php-5.2.4/ext/date/lib -I/usr/local/include -
I/usr/local/include/freetype2 -I/usr/local/gd/include -I/home/soft/php-5.2.4/ext
/mbstring/oniguruma -I/home/soft/php-5.2.4/ext/mbstring/libmbfl -I/home/soft/php
-5.2.4/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/home/soft/php-5.2.4/TSR
M -I/home/soft/php-5.2.4/Zend -I/usr/include -g -O2 -prefer-pic -c /home/sof
t/php-5.2.4/ext/mbstring/oniguruma/regerror.c -o ext/mbstring/oniguruma/regerror
.lo
In file included from /home/soft/php-5.2.4/ext/mbstring/oniguruma/regerror.c:37:
/usr/lib/gcc/i386-redhat-linux/4.1.1/include/varargs.h:4:2: error: #error "GCC n
o longer implements <varargs.h>."
/usr/lib/gcc/i386-redhat-linux/4.1.1/include/varargs.h:5:2: error: #error "Revis
e your code to use <stdarg.h>."
/home/soft/php-5.2.4/ext/mbstring/oniguruma/regerror.c: In function 'onig_error_
code_to_str':
/home/soft/php-5.2.4/ext/mbstring/oniguruma/regerror.c:196: error: expected decl
aration specifiers before 'va_dcl'
/home/soft/php-5.2.4/ext/mbstring/oniguruma/regerror.c:265: error: expected '=',
',', ';', 'asm' or '__attribute__' before 'OnigUChar'
/home/soft/php-5.2.4/ext/mbstring/oniguruma/regerror.c:271: error: expected decl
aration specifiers before 'va_dcl'
/home/soft/php-5.2.4/ext/mbstring/oniguruma/regerror.c:270: error: declaration f
or parameter 'fmt' but no such parameter
/home/soft/php-5.2.4/ext/mbstring/oniguruma/regerror.c:269: error: declaration f
or parameter 'pat_end' but no such parameter
/home/soft/php-5.2.4/ext/mbstring/oniguruma/regerror.c:268: error: declaration f
or parameter 'pat' but no such parameter
/home/soft/php-5.2.4/ext/mbstring/oniguruma/regerror.c:267: error: declaration f
or parameter 'enc' but no such parameter
/home/soft/php-5.2.4/ext/mbstring/oniguruma/regerror.c:266: error: declaration f
or parameter 'bufsize' but no such parameter
/home/soft/php-5.2.4/ext/mbstring/oniguruma/regerror.c:334: error: expected '{'
at end of input
make: *** [ext/mbstring/oniguruma/regerror.lo] Error 1
我在网上查了一下,但不知道是gcc的错误,还是mbstring的错误!请高人给与帮助!! |