1 (edited by mvug 2017-01-18 08:50:02)

Topic: [php 7.1.1] Unable to load dynamic library '/usr/lib64/php/modules/int

I updated today to php 7.1.1 and I get this error:

It seems to happen when using composer, or command line php..


PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/intl.so' - /usr/lib64/php/modules/intl.so: undefined symbol: __cxa_throw_bad_array_new_length in Unknown on line 0

php -v
PHP 7.1.1 (cli) (built: Jan 18 2017 08:16:38) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.1.1, Copyright (c) 1999-2017, by Zend Technologies
    with blackfire v1.14.2~linux-x64-non_zts71, https://blackfire.io, by Blackfireio Inc.

Re: [php 7.1.1] Unable to load dynamic library '/usr/lib64/php/modules/int

Distro, version, arch ?

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 26 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.9 x86_64 + EPEL + remi + remi-php70

3 (edited by mvug 2017-01-18 08:56:02)

Re: [php 7.1.1] Unable to load dynamic library '/usr/lib64/php/modules/int

centos 7 x86_64

Re: [php 7.1.1] Unable to load dynamic library '/usr/lib64/php/modules/int

Indeed, I can reproduce.... need to understand why...


P.S. 7.1.1 removed from EL-7 repo, working on it, seems a devtoolset-6 (gcc 6.2) issue, will try to rebuild using old gcc.

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 26 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.9 x86_64 + EPEL + remi + remi-php70

Re: [php 7.1.1] Unable to load dynamic library '/usr/lib64/php/modules/int

Remi wrote:

Indeed, I can reproduce.... need to understand why...


P.S. 7.1.1 removed from EL-7 repo, working on it, seems a devtoolset-6 (gcc 6.2) issue, will try to rebuild using old gcc.


cool thanks :-)

Re: [php 7.1.1] Unable to load dynamic library '/usr/lib64/php/modules/int

Fixed by https://github.com/remicollet/remirepo/ … 3d09b140aa

New build (7.1.1-2) just uploaded to the repository (test welcome to confirm everything is now ok)

So, seems really a gcc 6.2 issue, reported as https://bugzilla.redhat.com/1414348

If the bug is fixed upstream (Red Hat Developer Toolset), I will try for next RC to re-enable it, as it gives an interesting ~3% perf. gain.

BTW, big thanks for the quick report of this breakage, and sorry for the inconvenience.

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 26 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.9 x86_64 + EPEL + remi + remi-php70

Re: [php 7.1.1] Unable to load dynamic library '/usr/lib64/php/modules/int

After a few more work, and thanks to the help of gcc RH guy, we found this is not a dts/gcc issue, but rather a PHP bug.
https://bugs.php.net/73956

So, back using GCC 6.2: https://git.io/vMXRg

New build (7.1.1-3) are now available in the testing repository (remi-php71-test for base packages, remi-test for SCL)

If you can give them a try, feedback welcome.

I plan to push in stable for next version (7.1.2RC1 in 2 weeks, 7.1.2 next month).

Desktop: Fedora 25 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 26 x86_64 + remi (SCL only)
Hosting Server: CentOS 6.9 x86_64 + EPEL + remi + remi-php70