Date: Mon, 29 Oct 2001 22:57:23 +0100 From: Dirk Froemberg <dirk@FreeBSD.org> To: ports@FreeBSD.org Subject: Re: www/mod_php3 FreeBSD port fix for interop with gd Message-ID: <20011029225723.A71900@physik.TU-Berlin.DE> In-Reply-To: <20011027143234.A8761@straylight.oblivion.bg>; from roam@ringlet.net on Sat, Oct 27, 2001 at 02:32:34PM %2B0300 References: <20011027143234.A8761@straylight.oblivion.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Peter! Thanks for your work! I'd prefer php-nogif.patch. But if you think php-gdinout.patch is the better way of dealing with this problem I wouldn't object to it. 8-) But we shouldn't spend too much time for mod_php3. I was thinking of removing it, anyway. There are very few script that really need mod_php3 (apart from the .php3 ending which can be configured for mod_php4, too). Regards Dirk On Sat, Oct 27, 2001 at 02:32:34PM +0300, Peter Pentchev wrote: > 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. -- Dirk Froemberg FreeBSD: The Power to Serve! http://www.FreeBSD.org/ 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?20011029225723.A71900>