#26677 [Com]: Errors when compiling with mbstring support

From: Date: Sat, 13 Mar 2004 20:48:26 +0000
Subject: #26677 [Com]: Errors when compiling with mbstring support
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56405@lists.php.net to get a copy of this message
ID: 26677 Comment by: behren at takenet dot de Reported By: behrens at takenet dot de Status: No Feedback Bug Type: mbstring related Operating System: IRIX64 PHP Version: 5CVS Assigned To: moriyoshi New Comment: Tested with a current php5-200403131830 cc-1028 cc: ERROR File = /mnt/MIPS/php5-200403131830/ext/mbstring/oniguruma/regparse.c, Line = 4513 The expression used must have a constant value. OnigCodePoint end_op[] = { (OnigCodePoint )MC_ESC, (OnigCodePoint )'E' }; ^ 1 error detected in the compilation of "/mnt/MIPS/php5-200403131830/ext/mbstring/oniguruma/regparse.c". Previous Comments: ------------------------------------------------------------------------ [2004-03-08 07:12:40] sniper@php.net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ [2004-02-28 15:55:35] moriyoshi@php.net Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2004-02-25 17:30:12] moriyoshi@php.net I'll report this problem to the author of the regex engine. Thanks. ------------------------------------------------------------------------ [2004-02-13 10:09:04] sniper@php.net Moriyoshi, maybe you could take a look? ------------------------------------------------------------------------ [2003-12-19 20:58:00] behrens at takenet dot de 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 this bug report at http://bugs.php.net/?id=26677&edit=1

« previous php.bugs (#56405) next »