From owner-freebsd-ports Sat Oct 27 4:41:33 2001 Delivered-To: freebsd-ports@freebsd.org Received: from straylight.ringlet.net (discworld.nanolink.com [217.75.135.248]) by hub.freebsd.org (Postfix) with SMTP id 6DF0F37B407 for ; Sat, 27 Oct 2001 04:41:26 -0700 (PDT) Received: (qmail 13653 invoked by uid 1000); 27 Oct 2001 11:32:34 -0000 Date: Sat, 27 Oct 2001 14:32:34 +0300 From: Peter Pentchev To: Dirk Froemberg Cc: ports@FreeBSD.org Subject: www/mod_php3 FreeBSD port fix for interop with gd Message-ID: <20011027143234.A8761@straylight.oblivion.bg> Mail-Followup-To: Dirk Froemberg , ports@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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, 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