Opened 16 months ago

Last modified 16 months ago

#66824 closed defect

php70-mbstring @7.0.33: error: incomplete definition of type 'struct php_mb_re_pattern_buffer' — at Version 1

Reported by: Lomantik Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: php

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I'm trying to install the port on my MacBook Air (M1) and getting the error. Here is the log from my terminal:

# sudo port install php70-mbstring     
--->  Computing dependencies for php70-mbstring
--->  Fetching archive for php70-mbstring
--->  Attempting to fetch php70-mbstring-7.0.33_0.darwin_22.arm64.tbz2 from https://fra.de.packages.macports.org/php70-mbstring
--->  Attempting to fetch php70-mbstring-7.0.33_0.darwin_22.arm64.tbz2 from https://packages.macports.org/php70-mbstring
--->  Attempting to fetch php70-mbstring-7.0.33_0.darwin_22.arm64.tbz2 from https://nue.de.packages.macports.org/php70-mbstring
--->  Building php70-mbstring
Error: Failed to build php70-mbstring: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php70-mbstring/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port php70-mbstring failed

I'm attaching the main.log file (compressed with gzip).

Change History (2)

Changed 16 months ago by Lomantik

Attachment: main.log.gz added

comment:1 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: set to ryandesign
Port: php added; php70-mbstring removed
Status: newassigned
Summary: php70-mbstring building errorphp70-mbstring @7.0.33: error: incomplete definition of type 'struct php_mb_re_pattern_buffer'

I'll have to investigate. The error in the log is:

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php70-mbstring/work/php-7.0.33/ext/mbstring/php_mbregex.c:455:15: error: incomplete definition of type 'struct php_mb_re_pattern_buffer'
        if (!rc || rc->options != options || rc->enc != enc || rc->syntax != syntax) {
                   ~~^
/opt/local/include/oniguruma.h:707: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
                                    ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php70-mbstring/work/php-7.0.33/ext/mbstring/php_mbregex.c:455:41: error: incomplete definition of type 'struct php_mb_re_pattern_buffer'
        if (!rc || rc->options != options || rc->enc != enc || rc->syntax != syntax) {
                                             ~~^
/opt/local/include/oniguruma.h:707: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
                                    ^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_php/php70-mbstring/work/php-7.0.33/ext/mbstring/php_mbregex.c:455:59: error: incomplete definition of type 'struct php_mb_re_pattern_buffer'
        if (!rc || rc->options != options || rc->enc != enc || rc->syntax != syntax) {
                                                               ~~^
/opt/local/include/oniguruma.h:707: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.
make: *** [php_mbregex.lo] Error 1
Note: See TracTickets for help on using tickets.