[MacPorts] #66824: php70-mbstring @7.0.33: error: incomplete definition of type 'struct php_mb_re_pattern_buffer' (was: php70-mbstring building error)
MacPorts
noreply at macports.org
Sat Feb 4 02:46:12 UTC 2023
#66824: php70-mbstring @7.0.33: error: incomplete definition of type 'struct
php_mb_re_pattern_buffer'
-----------------------+------------------------
Reporter: Lomantik | Owner: ryandesign
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords:
Port: php |
-----------------------+------------------------
Changes (by ryandesign):
* status: new => assigned
* owner: (none) => ryandesign
* port: php70-mbstring => php
Old description:
> 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).
New description:
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).
--
Comment:
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
}}}
--
Ticket URL: <https://trac.macports.org/ticket/66824#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list