1 (edited by iansltx 2015-01-27 05:38:33)

Topic: [Solved] 5.6.5 gd fails; undefined symbol: gdVersionString

Attempted to upgrade to 5.6.5-1 earlier today on CentOS 6 and gd wouldn't work...

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

Downgrading to 5.6.4-2 resolves the issue. One tier of our app servers consistently exhibit this issue, though another box I tried it on had no problem with the install/upgrade.

Here's what's on deck when I yum upgrade php/*:

php                                     x86_64                             5.6.5-1.el6.remi                               remi-php56                             2.6 M
php-cli                                 x86_64                             5.6.5-1.el6.remi                               remi-php56                             3.7 M
php-common                              x86_64                             5.6.5-1.el6.remi                               remi-php56                             1.0 M
php-devel                               x86_64                             5.6.5-1.el6.remi                               remi-php56                             1.2 M
php-fpm                                 x86_64                             5.6.5-1.el6.remi                               remi-php56                             1.3 M
php-gd                                  x86_64                             5.6.5-1.el6.remi                               remi-php56                              73 k
php-mcrypt                              x86_64                             5.6.5-1.el6.remi                               remi-php56                              45 k
php-mysqlnd                             x86_64                             5.6.5-1.el6.remi                               remi-php56                             3.7 M
php-opcache                             x86_64                             5.6.5-1.el6.remi                               remi-php56                             119 k
php-pdo                                 x86_64                             5.6.5-1.el6.remi                               remi-php56                             114 k
php-process                             x86_64                             5.6.5-1.el6.remi                               remi-php56                              58 k
php-xml                                 x86_64                             5.6.5-1.el6.remi                               remi-php56                             211 k

Phalcon 1.3.4 (from source) is installed on both systems, but it's also installed on the system that doesn't have any issues with including gd.

Any way to fix this? Any more info that would be helpful in finding out what's wrong? I can compile gd if I have to but I'd rather not (and I'd rather not stay at 5.6.4).

Re: [Solved] 5.6.5 gd fails; undefined symbol: gdVersionString

You have to update gd-last to 2.1.1.

yum --enablerepo=remi update gd-last

Notice php-phalcon is also available as RPM in the repo.

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: [Solved] 5.6.5 gd fails; undefined symbol: gdVersionString

Thanks; updating gd-last resolved the issue!

Re: Phalcon being available in RPM form, thanks for the heads-up. Will switch to that the next time I'd otherwise need to recompile.

Re: [Solved] 5.6.5 gd fails; undefined symbol: gdVersionString

smile

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