Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 7207  / 2 Years ago, sat, december 11, 2021, 2:53:08

I installed PHP5.4 from PPA ppa:ondrej/php5-oldstable in my Ubuntu 12.04.2.



Then all of my image processing scripts got broken. Turns out the php5-gd library isn't loaded.



$ php -a
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/gd.so' - /usr/lib/php5/20100525/gd.so: undefined symbol: gdGetC in Unknown on line 0
Interactive mode enabled


Here's some package installed in my machine related to GD (hope might help, let me know if you need to know details of other packages):



ii  libgd2-xpm                                    2.0.36~rc1~dfsg-6ubuntu2                GD Graphics Library version 2
ii libgd2-xpm:i386 2.0.36~rc1~dfsg-6ubuntu2 GD Graphics Library version 2
ii libgd3 2.1.0-2~precise+1 GD Graphics Library
ii php5-gd 5.4.17-4+debphp.org~precise+1 GD module for php5


Is there any way to fix this?


More From » 12.04

 Answers
7

The real culprit is the fact that PHP 5.4 GD extension is not compatible with libgd (>= 2.1.0). Since the gd.so is an dynamic extension it's not possible to detect the missing symbols at compile time.



Anyway the php5-oldstable has been updated:




  • libgd 2.1.x has been removed

  • new php5 has been updated with forced dependency on libgd 2.0.x



E.g. this bug has been fixed in php5 5.4.17-5+debphp.org~+1 (some dists are still building at the time of writing this answer).


[#30064] Monday, December 13, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tonhorn

Total Points: 196
Total Questions: 118
Total Answers: 95

Location: Vanuatu
Member since Fri, May 13, 2022
2 Years ago
tonhorn questions
Tue, May 10, 22, 12:01, 2 Years ago
Sat, Dec 18, 21, 06:23, 2 Years ago
Thu, Jun 16, 22, 04:03, 2 Years ago
Fri, Apr 1, 22, 05:23, 2 Years ago
;