GD Library

Matthew Seaman m.seaman at infracaninophile.co.uk
Tue May 6 13:52:59 BST 2003


--xQmOcGOVkeO43v2v
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, May 06, 2003 at 12:43:24PM +0100, Abdul Salam wrote:

> Thanks once again. ldd command was new to me and it is a really useful
> one. But, I still couldn't solve the issue. Here is the output of my ldd
> command
>=20
> ./libphp4.so:
> 	libmysqlclient.so.10 =3D>
> /usr/local/lib/mysql/libmysqlclient.so.10 (0x28259000)
> 	libgd.so.4 =3D> /usr/local/lib/libgd.so.4 (0x28277000)
> 	libcrypt.so.2 =3D> /usr/lib/libcrypt.so.2 (0x282c4000)
> 	libm.so.2 =3D> /usr/lib/libm.so.2 (0x282dd000)
> 	libc.so.5 =3D> /usr/lib/libc.so.5 (0x2806c000)
> 	libz.so.2 =3D> /usr/lib/libz.so.2 (0x282fa000)
> 	libpng.so.5 =3D> /usr/local/lib/libpng.so.5 (0x28308000)
> 	libjpeg.so.9 =3D> /usr/local/lib/libjpeg.so.9 (0x2832d000)
> 	libfreetype.so.9 =3D> /usr/local/lib/libfreetype.so.9 (0x2834a000)
> 	libXpm.so.4 =3D> /usr/X11R6/lib/libXpm.so.4 (0x28399000)
> 	libX11.so.6 =3D> /usr/X11R6/lib/libX11.so.6 (0x283a7000)
>=20

Good --- you've definitely got PHP linked against GD2.
=20
> which clearly says gd is linked to libgd.so.4 (viz. GD2.x). But,
> phpinfo() and gd_info() commands of php shows the installed version is
> 1.6.2. Here is my gd_info() output=20
>=20
> array(9) {=20
> ["GD Version"]=3D> string(15) "1.6.2 or higher"=20
> ["FreeType Support"]=3D> bool(false)=20
> ["T1Lib Support"]=3D> bool(false)=20
> ["GIF Read Support"]=3D> bool(true)=20
> ["GIF Create Support"]=3D> bool(false)=20
> ["JPG Support"]=3D> bool(true)=20
> ["PNG Support"]=3D> bool(true)=20
> ["WBMP Support"]=3D> bool(true)=20
> ["XBM Support"]=3D> bool(false)=20
> }
>=20
> Which says the installed version is 1.6.2. I have installed GD from
> ports collection and php manually (To get the latest version 4.3.1). I
> don't know whether this makes any difference. Now, I have re-linked my
> libgd.so to libgd.so.4. Still the issue remains same.

Hmmm... I definitely get "2.0 or higher" with PHP 4.3.1 and GD2.
Unless your browser is somehow caching the output of a previous run of
gd_info() or you've somehow updated one PHP/apache installation and
then managed to run gd_info() against a different one.  Stranger
things have happened.  If it isn't that, then I guess the difference
must be to do with the PHP version.

By the way, you should update your ports tree: PHP 4.3.1 (as the
www/mod_php4 port) has been in ports for 2 months now.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--xQmOcGOVkeO43v2v
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+t7ArdtESqEQa7a0RAs3mAJ9ORNtqtAPCq6WV2WvKI1wJrjOONwCfQK8V
9K8pnK2xnpLUM1+iIgmYEhE=
=zvqS
-----END PGP SIGNATURE-----

--xQmOcGOVkeO43v2v--




More information about the Ukfreebsd mailing list