#26677 [NEW]: Errors when compiling with mbstring support php5b3

From: Date: Sat, 20 Dec 2003 01:58:00 +0000
Subject: #26677 [NEW]: Errors when compiling with mbstring support php5b3
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-52331@lists.php.net to get a copy of this message
From: behrens at takenet dot de Operating system: IRIX64 PHP version: 5.0.0b2 (beta2) PHP Bug Type: Compile Failure Bug description: Errors when compiling with mbstring support php5b3 Description: ------------ When compiling the php5b3 with mbstring support on a recent IRIX version with latest mips cc 7.4.1 spells out some errors. cc-1020 cc: ERROR File = /usr2/MIPS/php-5.0.0b3RC2/ext/mbstring/oniguruma/regerror.c, Line = 149 The identifier "code" is undefined. regex_error_code_to_str(UChar* s, code, va_alist) ^ cc-1020 cc: ERROR File = /usr2/MIPS/php-5.0.0b3RC2/ext/mbstring/oniguruma/regerror.c, Line = 149 The identifier "va_alist" is undefined. regex_error_code_to_str(UChar* s, code, va_alist) ^ cc-1137 cc: ERROR File = /usr2/MIPS/php-5.0.0b3RC2/ext/mbstring/oniguruma/regerror.c, Line = 149 Unnamed prototyped parameters not allowed when body is present. regex_error_code_to_str(UChar* s, code, va_alist) ^ cc-1129 cc: ERROR File = /usr2/MIPS/php-5.0.0b3RC2/ext/mbstring/oniguruma/regerror.c, Line = 150 A left brace ("{") is expected at this point. int code; ^ cc-1012 cc: WARNING File = /usr2/MIPS/php-5.0.0b3RC2/ext/mbstring/oniguruma/regerror.c, Line = 153 Parsing restarts here after previous syntax error. { ^ cc-1020 cc: ERROR File = /usr2/MIPS/php-5.0.0b3RC2/ext/mbstring/oniguruma/regerror.c, Line = 159 The identifier "va_alist" is undefined. va_init_list(vargs, code); ^ cc-1020 cc: ERROR File = /usr2/MIPS/php-5.0.0b3RC2/ext/mbstring/oniguruma/regerror.c, Line = 161 The identifier "code" is undefined. switch (code) { ^ cc-1515 cc: WARNING File = /usr2/MIPS/php-5.0.0b3RC2/ext/mbstring/oniguruma/regerror.c, Line = 166 A value of type "char *" cannot be assigned to an entity of type "UChar *". q = regex_error_code_to_format(code); ^ cc-1515 cc: WARNING File = /usr2/MIPS/php-5.0.0b3RC2/ext/mbstring/oniguruma/regerror.c, Line = 197 A value of type "char *" cannot be assigned to an entity of type "UChar *". q = regex_error_code_to_format(code); ^ cc-1164 cc: WARNING File = /usr2/MIPS/php-5.0.0b3RC2/ext/mbstring/oniguruma/regerror.c, Line = 198 Argument of type "UChar *" is incompatible with parameter of type "const char *". len = strlen(q); ^ unable to proceed because of earlier errors 6 errors detected in the compilation of "/usr2/MIPS/php-5.0.0b3RC2/ext/mbstring/oniguruma/regerror.c". [octane]:/usr2/MIPS/php-5.0.0b3RC2 $ cat config.nice.cli #! /bin/sh # # Created by configure rm config.cache gmake distclean CFLAGS='-O3 -apo -mp -mips4 -OPT:Olimit=0 -TARG:platform=IP30 -Xcpluscomm -I/usr/local/include -I/usr/freeware/include -I/usr/include' \ CXXFLAGS='-O3 -mips4' \ LDFLAGS='-mp -W,rpath=/usr/freeware/lib32 -W,rpath=/usr/lib32 ' \ CC='cc' \ CXX='CC' \ './configure' \ '--enable-wddx' \ '--enable-sysvmsg' \ '--enable-sysvsem' \ '--enable-sysvshm' \ '--enable-tokenizer' \ '--enable-mbstring' \ '--enable-mbregex' \ '--enable-dbase' \ '--with-sqlite ' \ '--enable-sockets' \ "$@" I hope someone can take a look on it -- Edit bug report at http://bugs.php.net/?id=26677&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26677&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26677&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26677&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26677&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26677&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26677&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26677&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26677&r=support Expected behavior: http://bugs.php.net/fix.php?id=26677&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26677&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26677&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26677&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26677&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26677&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26677&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26677&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26677&r=float

« previous php.bugs (#52331) next »