php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15009 Compile Error in file gd.c
Submitted: 2002-01-12 16:09 UTC Modified: 2002-04-12 20:04 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:0 (0.0%)
From: SchreiberX at Altmuehlnet dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.1.1 OS: Linux (Kernel 2.4.17)
Private report: No CVE-ID: None
 [2002-01-12 16:09 UTC] SchreiberX at Altmuehlnet dot de
If i compiled php with gd.
There was an error while compiling gd.c:

gd.c:92: conflicting types for `gdIOCtx'
/usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'

It works, if I've uncomment the line 92 in gd.c.

I compiled previously gd 1.8.4

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-28 15:04 UTC] brandon at branflakes dot net
This problem also occurs with GD 2.0.1, on earlier and later kernels (on separate machines), and on machines which are both fresh installs and which have had PHP (and older versions of gd) installed before.
 [2002-03-04 13:37 UTC] brandon at branflakes dot net
The same error also occurs with PHP versions dating as far back as 4.0.6 with distributions of both GD 1(.8.4) and 2(.0.1).
 [2002-03-04 13:42 UTC] rasmus@php.net
This is due to you having multiple versions of GD installed on your system.  PHP should probably do a better job of handling that, but if you only have one installed it works just fine.
 [2002-04-12 20:04 UTC] sniper@php.net
Unfortunately there really isn't much we can do about it.
Install the GD library & headers in some non-standard
place and use the --with-gd=/path/to/that/non-standard/place
should work fine.


 [2002-10-28 13:46 UTC] tyler at tylerhall dot net
I tried to put gd in a different directory,  I compiled it over at /usr/gd/ and the same error applies, and then I tried /etc/gd/ and same error.  

So, how do I go about finding the other versions of gd on the box?  Afaik, I have no other versions of gd (but I'm known to be wrong)  What files does it look for that I can just remove?

Will this be fixed in a feature version to not have this compiling error?

Tyler
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Aug 17 14:01:27 2024 UTC