Debian Bug report logs -
#470483
php5-gd: gd not working, undefined symbol: gdImageCreateFromJpeg in Unknown on line 0
Reported by: smalla <smalla@smalla.hu>
Date: Tue, 11 Mar 2008 13:48:01 UTC
Severity: important
Tags: moreinfo, unreproducible
Found in version php5/5.2.5-3
Done: Ondřej Surý <ondrej@sury.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#470483; Package php5-gd.
(full text, mbox, link).
Acknowledgement sent to smalla <smalla@smalla.hu>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: php5-gd
Version: 5.2.5-3
Severity: important
gd not starting/working, produces this error message: 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
I've tried to rebuild complete php5 from debian source, but the problem persists.
gd source from php.net loads (listed in phpinfo) but not working.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.20.6 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages php5-gd depends on:
ii libapache2-mod-php5 [p 5.2.5-3 server-side, HTML-embedded scripti
ii libc6 2.7-6 GNU C Library: Shared libraries
ii libfreetype6 2.3.5-1+b1 FreeType 2 font engine, shared lib
ii libgd2-xpm 2.0.36~rc1~dfsg-1 GD Graphics Library version 2
ii libjpeg62 6b-14 The Independent JPEG Group's JPEG
ii libpng12-0 1.2.15~beta5-3 PNG library - runtime
ii libt1-5 5.1.1-5 Type 1 font rasterizer library - r
ii libx11-6 2:1.0.3-7 X11 client-side library
ii libxpm4 1:3.5.7-1 X11 pixmap library
ii php5-cli [phpapi-20060 5.2.5-3 command-line interpreter for the p
ii php5-common 5.2.5-3 Common files for packages built fr
ii zlib1g 1:1.2.3.3.dfsg-11 compression library - runtime
php5-gd recommends no packages.
-- debconf information:
php5/extension_gd_apache2: true
php5/extension_gd_cli: true
php5/remove_extension: true
php5/add_extension: true
Tags added: moreinfo, unreproducible
Request was from Raphael Geissert <atomo64@gmail.com>
to control@bugs.debian.org.
(Thu, 01 May 2008 18:33:05 GMT) (full text, mbox, link).
Message #10 received at 470483-submitter@bugs.debian.org (full text, mbox, reply):
# Automatically generated email from bts, devscripts version 2.9.6
tags 470483 moreinfo unreproducible
thanks
I'm unable to reproduce the problem.
Could you please post the output of:
$ nm -D /usr/lib/php5/20060613+lfs/gd.so | grep gdImageCreateFromJpeg
$ nm -D /usr/lib/libgd.so | grep gdImageCreateFromJpeg
e.g.
$ nm -D /usr/lib/php5/20060613+lfs/gd.so | grep gdImageCreateFromJpeg
U gdImageCreateFromJpeg
U gdImageCreateFromJpegCtx
$ nm -D /usr/lib/libgd.so | grep gdImageCreateFromJpeg
00013880 T gdImageCreateFromJpeg
00013080 T gdImageCreateFromJpegCtx
00013820 T gdImageCreateFromJpegPtr
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#470483; Package php5-gd.
(full text, mbox, link).
Acknowledgement sent to Lutz <lutz@willerding.net>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #15 received at 470483@bugs.debian.org (full text, mbox, reply):
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
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#470483; Package php5-gd.
(full text, mbox, link).
Acknowledgement sent to civid <divic@beotel.rs>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #20 received at 470483@bugs.debian.org (full text, mbox, reply):
Here is the solution:
http://scarybear.net/?article=1203569493
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#470483; Package php5-gd.
(Tue, 13 Jan 2009 21:00:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Ben Corne <bcorne@infogroep.be>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Tue, 13 Jan 2009 21:00:04 GMT) (full text, mbox, link).
Message #25 received at 470483@bugs.debian.org (full text, mbox, reply):
the solution link has slightly changed:
http://scarybear.net/journal/articles/view/155/
Anyways (to be sure it doesn't change again), the solution is the folowing:
Problem:
Executing `php` prints the folowing error:|
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
more specifically when processing a php page it displays the folowing:
|*Fatal error*: Call to undefined function imageCreate()
in */home/irc/website/makeworldmap.php* on line *13*
|
Answer:
There's something wrong with gd itself,|
|/usr/lib/php5/20060613+lfs/gd.so is different from one of a clean install
It actually loads the wrong libgd, which can be found by typing `locate libgd`
We find other versions of libgd in /usr/local/lib/:
libgd.so, libgd.so.2, libgd.so.2.0.0
do the folowing things:
sudo mkdir libgd.backup
sudo mv libgd.so* libgd.backup
restart apache: sudo /etc/init.d/apache2 restart|
|
Test:
make a small file: test.php and run it
<? print_r(gd_info()); ?>
this should output information about your gd installation.
Greets, Ben
|
Reply sent
to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility.
(Fri, 08 Jan 2010 15:33:13 GMT) (full text, mbox, link).
Notification sent
to smalla <smalla@smalla.hu>:
Bug acknowledged by developer.
(Fri, 08 Jan 2010 15:33:13 GMT) (full text, mbox, link).
Message #30 received at 470483-done@bugs.debian.org (full text, mbox, reply):
Local copy of libgd in /usr/local/lib/
Closing as invalid.
Ondrej
--
Ondřej Surý <ondrej@sury.org>
http://blog.rfc1925.org/
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sat, 06 Feb 2010 07:35:28 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 03:06:31 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.