Skip to content

SLES15 compile error with mbstring oniguruma #20491

@VARGA-Peter

Description

@VARGA-Peter

Description

Compiling 8.4.14 fails with gcc 15.2.0
gcc-14 compiles 8.4.14, but has a warning.

/builds/php-8.4.14/ext/mbstring/php_mbregex.c: In function ‘php_mbregex_compile_pattern’:
/builds/php-8.4.14/ext/mbstring/php_mbregex.c:472:25: error: too many arguments to function ‘onig_error_code_to_str’; expected 0, have 3
  472 |                         onig_error_code_to_str(err_str, err_code, &err_info);
      |                         ^~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~
In file included from /builds/php-8.4.14/ext/mbstring/php_mbregex.c:31:
/usr/include/oniguruma.h:751:5: note: declared here
  751 | int onig_error_code_to_str PV_((OnigUChar* s, int err_code, ...));
      |     ^~~~~~~~~~~~~~~~~~~~~~
/builds/php-8.4.14/ext/mbstring/php_mbregex.c: In function ‘_php_mb_regex_ereg_replace_exec’:
/builds/php-8.4.14/ext/mbstring/php_mbregex.c:1070:25: error: too many arguments to function ‘onig_error_code_to_str’; expected 0, have 2
 1070 |                         onig_error_code_to_str(err_str, err);
      |                         ^~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~
/usr/include/oniguruma.h:751:5: note: declared here
  751 | int onig_error_code_to_str PV_((OnigUChar* s, int err_code, ...));
      |     ^~~~~~~~~~~~~~~~~~~~~~
/builds/php-8.4.14/ext/mbstring/php_mbregex.c: In function ‘zif_mb_split’:
/builds/php-8.4.14/ext/mbstring/php_mbregex.c:1242:17: error: too many arguments to function ‘onig_error_code_to_str’; expected 0, have 2
 1242 |                 onig_error_code_to_str(err_str, err);
      |                 ^~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~
/usr/include/oniguruma.h:751:5: note: declared here
  751 | int onig_error_code_to_str PV_((OnigUChar* s, int err_code, ...));
      |     ^~~~~~~~~~~~~~~~~~~~~~
/builds/php-8.4.14/ext/mbstring/php_mbregex.c: In function ‘_php_mb_regex_ereg_search_exec’:
/builds/php-8.4.14/ext/mbstring/php_mbregex.c:1383:17: error: too many arguments to function ‘onig_error_code_to_str’; expected 0, have 2
 1383 |                 onig_error_code_to_str(err_str, err);
      |                 ^~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~
/usr/include/oniguruma.h:751:5: note: declared here
  751 | int onig_error_code_to_str PV_((OnigUChar* s, int err_code, ...)); 

PHP Version

PHP 8.4.14

Operating System

SLES 15 SP7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions