php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3047 problems with gd-1.7 : bug + one_solution_that_works
Submitted: 1999-12-25 03:37 UTC Modified: 1999-12-25 08:39 UTC
From: ramki at netcom dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Beta 3 OS: Redhat linux 6.0 (kernel 2.2.5)
Private report: No CVE-ID: None
 [1999-12-25 03:37 UTC] ramki at netcom dot com
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)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-12-25 08:39 UTC] rasmus at cvs dot php dot net
This has already been taken care of in CVS
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 09:00:01 2026 UTC