Skip to content

New test whether intl needs GCC 17 always wants GCC 17 #14190

Closed
@rainerjung

Description

@rainerjung

Description

PR #13422 introduced a new test, whether GCC 17 is needed depending on intl version. The test is wrong, it always checks for 17. So the build fails on older platforms like RHEL 7 due to older GCC. Build worked for 8.2.18, fails for 8.2.19.

In configure the line is:

if test "$PKG_CONFIG icu-uc --atleast-version=74"

which always results in taking the "then" branch. The simpler

if $PKG_CONFIG icu-uc --atleast-version=74

does the right thing in my test. Maybe switch

AS_IF([test "$PKG_CONFIG icu-uc --atleast-version=74"],[

to

AS_IF([$PKG_CONFIG icu-uc --atleast-version=74],[

in ext/intl/config.m4 (untested).

PHP Version

PHP 8.2.19

Operating System

RHEL 7 with custom ICU 66.1

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