Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 652352 - dev-lang/php with >=dev-libs/oniguruma-6.8: ext/mbstring/php_mbregex.c:452:15: error: dereferencing pointer to incomplete type 'php_mb_regex_t {aka struct php_mb_re_pattern_buffer}'
Summary: dev-lang/php with >=dev-libs/oniguruma-6.8: ext/mbstring/php_mbregex.c:452:15...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 652356 652404 652406 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-04-03 18:34 UTC by Helmut Jarausch
Modified: 2018-04-04 19:36 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log xz-compressed (php-7.2.4.build.xz,16.52 KB, application/x-xz)
2018-04-03 18:34 UTC, Helmut Jarausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2018-04-03 18:34:34 UTC
Created attachment 526484 [details]
build log  xz-compressed

/var/tmp/portage/dev-lang/php-7.2.4/work/sapis-build/cli/ext/mbstring/php_mbregex.c: In function 'php_mbregex_compile_pattern':
/var/tmp/portage/dev-lang/php-7.2.4/work/sapis-build/cli/ext/mbstring/php_mbregex.c:452:15: error: dereferencing pointer to incomplete type 'php_mb_regex_t {aka struct php_mb_re_pattern_buffer}'
  if (!rc || rc->options != options || rc->enc != enc || rc->syntax != syntax) {


I'm using gcc-7.3.0-r1
Comment 1 Brian Evans (RETIRED) gentoo-dev 2018-04-03 19:06:23 UTC
Please post your emerge --info
Comment 2 Craig Andrews gentoo-dev 2018-04-03 19:44:01 UTC
Seeing the same error.
Comment 3 rx80 2018-04-03 20:12:47 UTC
Builds fine with dev-libs/oniguruma-6.7.1

Breaks with dev-libs/oniguruma-6.8.1
Comment 4 Arfrever Frehtes Taifersar Arahesis 2018-04-04 03:58:56 UTC
https://bugs.php.net/bug.php?id=76113 contains upstream fix.
Comment 5 Arfrever Frehtes Taifersar Arahesis 2018-04-04 04:03:52 UTC
*** Bug 652356 has been marked as a duplicate of this bug. ***
Comment 6 email200202 2018-04-04 05:24:34 UTC
Same here.
Comment 7 Yuriy 2018-04-04 08:31:36 UTC
Same width php-5.6.35
Comment 8 Adrian Bassett 2018-04-04 10:10:57 UTC
(In reply to Yuriy from comment #7)
> Same width php-5.6.35

Also 7.1.16
Comment 9 Brian Evans (RETIRED) gentoo-dev 2018-04-04 12:57:25 UTC
*** Bug 652406 has been marked as a duplicate of this bug. ***
Comment 10 Brian Evans (RETIRED) gentoo-dev 2018-04-04 12:58:08 UTC
*** Bug 652404 has been marked as a duplicate of this bug. ***
Comment 11 Larry the Git Cow gentoo-dev 2018-04-04 13:21:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8187eb32d10a53a0c837eadb02625329310b3582

commit 8187eb32d10a53a0c837eadb02625329310b3582
Author:     Brian Evans <grknight@gentoo.org>
AuthorDate: 2018-04-04 13:20:44 +0000
Commit:     Brian Evans <grknight@gentoo.org>
CommitDate: 2018-04-04 13:21:39 +0000

    dev-lang/php: Fix compilation with dev-libs/oniguruma-6.8.1
    
    Include upstream patch for all 7.0 versions
    Limit version in 5.6.35-r1 as the patch is not the same there
    
    Closes: https://bugs.gentoo.org/652352
    Package-Manager: Portage-2.3.28, Repoman-2.3.9

 dev-lang/php/files/mbstring-oniguruma-6.8.patch    | 30 ++++++++++++++++++++++
 .../{php-5.6.35.ebuild => php-5.6.35-r1.ebuild}    |  2 +-
 dev-lang/php/php-7.0.27.ebuild                     |  2 ++
 dev-lang/php/php-7.0.28.ebuild                     |  2 ++
 dev-lang/php/php-7.0.29.ebuild                     |  2 ++
 dev-lang/php/php-7.1.13.ebuild                     |  2 ++
 dev-lang/php/php-7.1.14.ebuild                     |  2 ++
 dev-lang/php/php-7.1.15.ebuild                     |  2 ++
 dev-lang/php/php-7.1.16.ebuild                     |  2 ++
 dev-lang/php/php-7.2.4.ebuild                      |  2 ++
 10 files changed, 47 insertions(+), 1 deletion(-)