php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5533 GD Functions not recognized in Install
Submitted: 2000-07-12 14:10 UTC Modified: 2000-09-21 10:02 UTC
From: kevin at nsane dot net Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0.1pl2 OS: FreeBSD 3.4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kevin at nsane dot net
New email:
PHP Version: OS:

 

 [2000-07-12 14:10 UTC] kevin at nsane dot net
I compiled GD 1.8.3, JPEG 6B, libpng, freetype and zlib in the default locations yet PHP will not recognize the png or jpeg functions. No workaround yet. In the ./configure it searches and comes back with a "no". I am on FreeBSD 3.4 and have had GD 1.3 installed in the past. Is this a possible conflict?

`Kevin

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-12 15:26 UTC] kevin at nsane dot net
More Info:

[snip from configure]
checking whether to include GD support... yes (static)
checking for gdImageString16 in -lgd... yes
checking for compress in -lz... yes
checking for png_info_init in -lpng... no
checking for gdImageColorResolve in -lgd... yes
checking for gdImageCreateFromPng in -lgd... no
checking for gdImageCreateFromGif in -lgd... no
checking for gdImageCreateFromXbm in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for libjpeg (needed by gd-1.8+)... no
configure: warning: If configure fails try --with-jpeg-dir=<DIR>
checking for gdImageCreateFromJpeg in -lgd... no
checking for libXpm (needed by gd-1.8+)... no
configure: warning: If configure fails try --with-xpm-dir=<DIR>
checking for gdImageCreateFromXpm in -lgd... yes
[/snip]

and then a snip from phpinfo() after compile
[snip]
gd
GD Support enabled 
GD Version 1.6.2 or higher 
[/snip]

Seems like a pretty bad compile error.
 [2000-07-12 15:27 UTC] kevin at nsane dot net
Even more info...

I did not compile WBMP or XBM into GD. GD does work (when using ./gddemo etc). Perhaps this is a definitions error.

`Kevin
 [2000-08-17 05:59 UTC] sniper@php.net
Remove all of the old gd-library remains from your system and recompile php.
Reopen this report if problem persists.

--Jani
 [2000-08-31 22:21 UTC] kevin at nsane dot net
Even after changing PHP versions, deleting all traces of GD (headers and libs) and recompiling I get the exact same error. For some reason it detects WBMP and XBM but mysteriously leaves out PNG and JPEG.

`Kevin
 [2000-09-04 20:56 UTC] sniper@php.net
Please include your configure line for php4 here.

--Jani
 [2000-09-21 09:53 UTC] sniper@php.net
Remove every instance of gd.h from your system, 
recompile GD-library and install it. 

Then go to php4 directory, delete config.cache and php_config.h
and reconfigure / compile.

--Jani
 [2000-09-21 10:02 UTC] sniper@php.net
Almost forgot:

use --with-jpeg-dir

--Jani
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 10:01:33 2025 UTC