PHP 4.0 Bug #3047: problems with gd-1.7 : bug + one_solution_that_works

From: Date: Sat, 25 Dec 1999 08:37:31 +0000
Subject: PHP 4.0 Bug #3047: problems with gd-1.7 : bug + one_solution_that_works
Groups: php.dev 
Request: Send a blank email to php-dev+get-14024@lists.php.net to get a copy of this message
From: ramki@netcom.com Operating system: Redhat linux 6.0 (kernel 2.2.5) PHP version: 4.0 Beta 3 PHP Bug Type: Compile Failure Bug description: problems with gd-1.7 : bug + one_solution_that_works 1. gd-1.7 has removed support for GIF due to the patent problems. This causes php 4.0b3 build to fail with "unresolved symbols" for *Gif functions. 2. This also affects the build for apache 1.3.9 because you now have to build php4 with png support. Solution for 1: I changed all "*Gif" functions to "*Png" in ext/gd/gd.c and ext/gd/gdtiff.c: perl -pi -e 's/Gif/Png/g' ext/gd/*.[ch] Also, gdImageColorResolve function is no longer required in ext/gd/*.c 2. I solved it by declaring "EXTRA_LIBS=-lpng" in the apache Configuration.tmpl file. Otherwise, apache doesn't build with modphp4 (error: lots of "undefined" functions png_* during compile)

« previous php.dev (#14024) next »