php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26677 Errors when compiling with mbstring support
Submitted: 2003-12-19 20:58 UTC Modified: 2004-07-08 01:00 UTC
Votes:4
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: behrens at takenet dot de Assigned: moriyoshi (profile)
Status: No Feedback Package: mbstring related
PHP Version: 5CVS-2004-03-13 OS: IRIX64
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: behrens at takenet dot de
New email:
PHP Version: OS:

 

 [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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-13 10:09 UTC] sniper@php.net
Moriyoshi, maybe you could take a look?

 [2004-02-25 17:30 UTC] moriyoshi@php.net
I'll report this problem to the author of the regex 
engine.

Thanks.


 [2004-02-28 15:55 UTC] 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-03-13 15:48 UTC] behren at takenet dot de
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".
 [2004-06-30 03:28 UTC] 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-07-08 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 13:01:29 2024 UTC