CpanelInc / ea-php74

7 stars 0 forks source link

libicu version mismatch in intl module #4

Open infomaniac50 opened 3 years ago

infomaniac50 commented 3 years ago

I'm getting a version mismatch between ea-libicu and ea-php74-php-intl. The intl module wants ICU 68 but ea-libicu provides ICU 69. ea-php80 has the same problem. It's not causing crashes or anything but it does spam the logs.

gitcory commented 3 years ago

It appears our latest builds were linked against ICU 69, can you give me some version numbers of the ea-php74/80 packages you are seeing this with? thanks!

infomaniac50 commented 3 years ago

Yum package manager info for php74 intl module

yum info ea-php74-php-intl
Loaded plugins: fastestmirror, langpacks, rhnplugin, universal-hooks
This system is receiving updates from CLN.
Loading mirror speeds from cached hostfile
 * EA4: 208.100.0.204
 * cpanel-addons-production-feed: 208.100.0.204
 * cpanel-plugins: 208.100.0.204
 * cloudlinux-x86_64-server-7: xmlrpc.cln.cloudlinux.com
Installed Packages
Name        : ea-php74-php-intl
Arch        : x86_64
Epoch       : 1
Version     : 7.4.19
Release     : 1.el7.cloudlinux
Size        : 477 k
Repo        : installed
From repo   : cl-ea4
Summary     : Internationalization extension for PHP applications
URL         : http://www.php.net/
License     : PHP
Description : The ea-php74-php-intl package contains a dynamic shared object
            : that will add support for using the ICU library to PHP.

Linux Loader output for php74 intl module.

ldd /opt/cpanel/ea-php74/root/usr/lib64/php/modules/intl.so
        linux-vdso.so.1 =>  (0x00007ffeb938a000)
        libicuio.so.68 => not found
        libicui18n.so.68 => not found
        libicuuc.so.68 => not found
        libicudata.so.68 => not found
        libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f4091d69000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f4091a67000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f4091851000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f4091483000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f40922e7000)

PHP Error Log

[03-Jun-2021 20:05:02 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'intl.so' (tried: /opt/cpanel/ea-php74/root/usr/lib64/php/modules/intl.so (libicuio.so.68: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php74/root/usr/lib64/php/modules/intl.so.so (/opt/cpanel/ea-php74/root/usr/lib64/php/modules/intl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Yum package manager info for php80 intl module.

yum info ea-php80-php-intl
Loaded plugins: fastestmirror, langpacks, rhnplugin, universal-hooks
This system is receiving updates from CLN.
Loading mirror speeds from cached hostfile
 * EA4: 208.100.0.204
 * cpanel-addons-production-feed: 208.100.0.204
 * cpanel-plugins: 208.100.0.204
 * cloudlinux-x86_64-server-7: xmlrpc.cln.cloudlinux.com
Installed Packages
Name        : ea-php80-php-intl
Arch        : x86_64
Epoch       : 1
Version     : 8.0.6
Release     : 1.el7.cloudlinux
Size        : 449 k
Repo        : installed
From repo   : cl-ea4
Summary     : Internationalization extension for PHP applications
URL         : http://www.php.net/
License     : PHP
Description : The ea-php80-php-intl package contains a dynamic shared object
            : that will add support for using the ICU library to PHP.
gitcory commented 3 years ago

These are CloudLInux packages that we do not maintain, they pull from our sources here and re-roll as they see fit. I have reached out to them and pointed them at this issue.

infomaniac50 commented 3 years ago

It looks like the the issues with php74 have been solved. php80 still has problems but seeing how we don't use it on anything yet I consider this solved. I remember something about PHP 8 and intl needing very recent versions of ICU or something. So they might still be working on that.

For reference, who did you contact at CloudLinux regarding this issue?