[php-src] Issue #14190: New test whether intl needs GCC 17 always wants GCC 17
| From: | rainerjung | Date: | Fri, 10 May 2024 08:07:17 +0000 |
| Subject: | [php-src] Issue #14190: New test whether intl needs GCC 17 always wants GCC 17 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246888@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/14190
Author: 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