Bug #76113 [NEW]: mbstring does not build with Oniguruma 6.8.1
From: chris at chrullrich dot net
Operating system:
PHP version: 5.6.34
Package: mbstring related
Bug Type: Bug
Bug description:mbstring does not build with Oniguruma 6.8.1
Description:
------------
Oniguruma 6.8.1 moved the implementation of the regex_t type out of its
public header.
ext/mbstring/php_mbregex.c:457:31: error: incomplete definition of type
'struct php_mb_re_pattern_buffer'
if (found == FAILURE || (*rc)->options != options || (*rc)->enc
!= enc || (*rc)->syntax != syntax) {
~~~~~^
/usr/local/include/oniguruma.h:673:8: note: forward declaration of
'struct php_mb_re_pattern_buffer'
struct re_pattern_buffer;
^
./php_onig_compat.h:4:37: note: expanded from macro 're_pattern_buffer'
#define re_pattern_buffer php_mb_re_pattern_buffer
^
ext/mbstring/php_mbregex.c:457:60: error: incomplete definition of type
'struct php_mb_re_pattern_buffer'
if (found == FAILURE || (*rc)->options != options || (*rc)->enc
!= enc || (*rc)->syntax != syntax) {
~~~~~^
/usr/local/include/oniguruma.h:673:8: note: forward declaration of
'struct php_mb_re_pattern_buffer'
struct re_pattern_buffer;
^
./php_onig_compat.h:4:37: note: expanded from macro 're_pattern_buffer'
#define re_pattern_buffer php_mb_re_pattern_buffer
^
ext/mbstring/php_mbregex.c:457:81: error: incomplete definition of type
'struct php_mb_re_pattern_buffer'
if (found == FAILURE || (*rc)->options != options || (*rc)->enc
!= enc || (*rc)->syntax != syntax) {
~~~~~^
/usr/local/include/oniguruma.h:673:8: note: forward declaration of
'struct php_mb_re_pattern_buffer'
struct re_pattern_buffer;
^
./php_onig_compat.h:4:37: note: expanded from macro 're_pattern_buffer'
#define re_pattern_buffer php_mb_re_pattern_buffer
^
3 errors generated.
*** [php_mbregex.lo] Error code 1
make[1]: stopped in ext/mbstring
1 error
The fix (see patch) is to use the appropriate API to access Oniguruma's
internals.
--
Edit bug report at https://bugs.php.net/bug.php?id=76113&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76113&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76113&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76113&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76113&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76113&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76113&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76113&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76113&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76113&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76113&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76113&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76113&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76113&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76113&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76113&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76113&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76113&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76113&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76113&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76113&r=mysqlcfg
Thread (5 messages)
- chris at chrullrich dot net