[php-maint] Bug#470483: More info...

Lutz lutz at willerding.net
Fri Jun 13 07:21:56 UTC 2008


I just stumbled over this bug yesterday, using
PHP Version 5.2.4-2ubuntu5.1 on kubuntu 8.04 with apache2, php5-gd 
installed, trying to get typo3 to convince to use the gd-lib functions.

In a call to phpinfo there is no gd section.

calling 'php -m' on the commandline gives:

$ php -m
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib/php5/20060613+lfs/gd.so' - /usr/lib/php5/20060613+lfs/gd.so: 
undefined symbol: gdImageCreateFromJpeg in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib/php5/20060613+lfs/imagick.so' - libWand.so.9: cannot open 
shared object file: No such file or directory in Unknown on line 0
[PHP Modules]


concerning the questions you asked I found:
-----------------------------------
$ nm -D /usr/lib/php5/20060613+lfs/gd.so | grep gdImageCreateFromJpeg
         U gdImageCreateFromJpeg
         U gdImageCreateFromJpegCtx
$ nm -D /usr/lib/libgd.so | grep gdImageCreateFromJpeg
nm: '/usr/lib/libgd.so': No such file
-------------------------------------------------
so I did a:
apt-get install libgd2-xpm-dev
which took me to:
------------------------
$ nm -D /usr/lib/libgd.so | grep gdImageCreateFromJpeg
00013230 T gdImageCreateFromJpeg
000129c0 T gdImageCreateFromJpegCtx
000131d0 T gdImageCreateFromJpegPtr

but still a 'php -m' gives me these 2 errors:
------------------------------
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib/php5/20060613+lfs/gd.so' - /usr/lib/php5/20060613+lfs/gd.so: 
undefined symbol: gdImageCreateFromJpeg in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib/php5/20060613+lfs/imagick.so' - libWand.so.9: cannot open 
shared object file: No such file or directory in Unknown on line 0
----------------------------------------------
$ uname -a
Linux majestix 2.6.24-18-generic #1 SMP Wed May 28 20:27:26 UTC 2008 
i686 GNU/Linux
--------------------

this is my first post to this list - so if I missed something please let 
me know

lutz







More information about the pkg-php-maint mailing list