Date: Sat, 27 Oct 2001 14:32:34 +0300 From: Peter Pentchev <roam@ringlet.net> To: Dirk Froemberg <dirk@FreeBSD.org> Cc: ports@FreeBSD.org Subject: www/mod_php3 FreeBSD port fix for interop with gd Message-ID: <20011027143234.A8761@straylight.oblivion.bg>
next in thread | raw e-mail | index | archive | help
Hi, The PHP3 port makes some assumptions about the GD library, which are not quite correct in recent versions of GD. Namely, the PHP3 configure script checks for the existence of the gdImageCreateFromGif() function and if that is present, assumes that GD was compiled with full GIF image support. However, recent versions of GD allow you to read GIF images, but not write them; thus, PHP fails at runtime, because the linker reports an unresolved external symbol as PHP refers to the nonexistent gdImageGif() function. There are several ways to work around this problem: 1. Fully disable GIF support in PHP by overriding whatever the configure script detected - see the attached php-nogif.patch 2. Separate the checks for gdImageCreateFromGif() and gdImageGif() - see the attached php-gdinout.patch. This is only a workaround though; for completeness, this should be done for all image formats. Also, the patch-aw to the configure.in file, which I bundled into the php-gdinout.patch, is not strictly necessary for FreeBSD - its effects are already present in the patch-au to the configure script. However, I still included the configure.in patch, so it could be submitted to the PHP developers. 3. Completely rip out the php3_imagegif() function which references gdImageGif() - but this seems just a bit drastic to me :) I have been running with the php-gdinout.patch for some time, and mod_php3 seems to work with PNG images just fine, and read GIF images quite well. G'luck, Peter -- What would this sentence be like if pi were 3? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011027143234.A8761>