|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2003-12-19 20:58 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 04:00:01 2025 UTC | 
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".