Topic: Unable to load dynamic library

Hi all,

I have created php54 rpms from the ius community spec and i tried to use the mysql module but it failed.

All is working : http + php-fpm

BUT since i tried to install the  php54 mysql module i have some errors when i try to restart the php-fpm and the pdo module is not loaded.

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo.so' - /usr/lib64/php/modules/pdo.so: undefined symbol: executor_globals_id in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysqlnd.so' - /usr/lib64/php/modules/pdo_mysqlnd.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_sqlite.so' - /usr/lib64/php/modules/pdo_sqlite.so: undefined symbol: core_globals_id in Unknown on line 0

I hope you will have an answer / the solution to my issue. smile Many thanks !

Here is the list of the rpms installed on my server (CENTOS 6)

[root@testrpm conf]# rpm -qa php54*
php54-cli-5.4.28-2.ius.CENTOS6.x86_64
php54-mysqlnd-5.4.28-2.ius.CENTOS6.x86_64
php54-pdo-5.4.28-2.ius.CENTOS6.x86_64
php54-common-5.4.28-2.ius.CENTOS6.x86_64
php54-fpm-5.4.28-2.ius.CENTOS6.x86_64

[root@testrpm conf]# rpm -qa htttpd  (i added a "t" to don't have the link restriction on punbb)
htttpd-2.4.7-1.x86_64


In addtion :
.so files are in the correct folder, .ini are in php.d and seems ok.
-----------------------------------
PHP 5.4.28 (cli) (built: May 13 2014 09:48:35)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
-----------------------------------
Server version: Apache/2.4.7 (Unix)
Server built:   Jan  7 2014 14:39:51
-----------------------------------

Re: Unable to load dynamic library

> I have created php54 rpms from the ius community spec and i tried to use the mysql module but it failed.
So ask IUS.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Unable to load dynamic library

Clear answer smile I will.

I was thinking that you were aware of similar issue.

Re: Unable to load dynamic library

This is not a issue, but a bad spec / build environment on which I don't know enough.

Tips: my spec file have a protection against this issue tongue (IUS one obviously have not)

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi