From owner-freebsd-ports Mon Oct 29 13:57:31 2001 Delivered-To: freebsd-ports@freebsd.org Received: from emmi.physik.TU-Berlin.DE (emmi.physik.TU-Berlin.DE [130.149.160.103]) by hub.freebsd.org (Postfix) with ESMTP id 3AA4237B403 for ; Mon, 29 Oct 2001 13:57:25 -0800 (PST) Received: (from ibex@localhost) by emmi.physik.TU-Berlin.DE (8.11.4/8.11.6) id f9TLvNU72322 for ports@FreeBSD.org; Mon, 29 Oct 2001 22:57:23 +0100 (CET) (envelope-from ibex) Date: Mon, 29 Oct 2001 22:57:23 +0100 From: Dirk Froemberg To: ports@FreeBSD.org Subject: Re: www/mod_php3 FreeBSD port fix for interop with gd Message-ID: <20011029225723.A71900@physik.TU-Berlin.DE> References: <20011027143234.A8761@straylight.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011027143234.A8761@straylight.oblivion.bg>; from roam@ringlet.net on Sat, Oct 27, 2001 at 02:32:34PM +0300 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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