php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16937 PHP with GD 2.0.1 will not compile
Submitted: 2002-05-01 01:27 UTC Modified: 2002-05-07 02:34 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: mfurdyk at takingitglobal dot org Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.2.0 OS: Linux 2.4.9
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: mfurdyk at takingitglobal dot org
New email:
PHP Version: OS:

 

 [2002-05-01 01:27 UTC] mfurdyk at takingitglobal dot org
Trying to compile GD 2.0.1 into PHP 4.2.0, 4.1.2, or 4.0.6 produces this error:

4.2.0 ERROR:
gd.c: In function `zm_startup_gd':
gd.c:303: `gdArc' undeclared (first use in this function)
gd.c:303: (Each undeclared identifier is reported only once
gd.c:303: for each function it appears in.)
gd.c:304: `gdPie' undeclared (first use in this function)
gd.c:305: `gdChord' undeclared (first use in this function)
gd.c:306: `gdNoFill' undeclared (first use in this function)
gd.c:307: `gdEdged' undeclared (first use in this function)
gd.c: In function `zif_imagecreatetruecolor':
gd.c:588: warning: assignment makes pointer from integer without a cast
gd.c: In function `zif_imagecolorat':
gd.c:1626: structure has no member named `tpixels'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.2.0/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.2.0/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.2.0/ext'
make: *** [all-recursive] Error 1

4.0.6 ERROR:
gd.c: In function `php_minit_gd':
gd.c:296: `gdPie' undeclared (first use in this function)
gd.c:296: (Each undeclared identifier is reported only once
gd.c:296: for each function it appears in.)
gd.c:297: `gdChord' undeclared (first use in this function)
gd.c:298: `gdNoFill' undeclared (first use in this function)
gd.c:299: `gdEdged' undeclared (first use in this function)
gd.c: In function `php_if_imagecreatetruecolor':
gd.c:577: warning: assignment makes pointer from integer without a cast
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.0.6/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.0.6/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.0.6/ext'
make: *** [all-recursive] Error 1

I have completely wiped out the gd and php installs, and even went through tons of steps with some folks from #php. Other reports of this elsewhere on the web have gone unanswered.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-01 01:30 UTC] mfurdyk at takingitglobal dot org
PHP is what won't compile, not GD :)
 [2002-05-01 02:44 UTC] mfischer@php.net
Where is your gd.h located? Does it containe the following line

#define gdPie   gdArc

?
 [2002-05-01 09:27 UTC] mfurdyk at takingitglobal dot org
I'm pointing directly to the GD src directory, as mentioned here:

http://www.php.net/~rasmus/gd.html

gd.h is here:
/usr/local/src/gd-2.0.1/gd.h

And i'm pointing directly there (to gd-2.0.1 dir) when compiling.

Yes, it does have the line.
 [2002-05-01 11:12 UTC] mfischer@php.net
NOT the source directory, the BASE install directory.

E.g. your source is in

  /home/foo/src/gd-2.0.1/

and you install it into

  /usr/local/frob

then your have to use

  ./configure --with-gd=/usr/local/frob


 [2002-05-07 02:19 UTC] mfurdyk at takingitglobal dot org
I tried both. The source directory AFTER doing a make on libgd.a (as shown http://www.php.net/~rasmus/gd.html) and also after doing a full make.
 [2002-05-07 02:34 UTC] rasmus@php.net
You have a GD1 gd.h somewhere on your include path which is getting picked up.  Get rid of it and try a clean rebuild.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 14:01:36 2025 UTC