php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14528 Conflicting types for 'gdioctx'
Submitted: 2001-12-14 18:52 UTC Modified: 2002-03-01 16:16 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:2 (66.7%)
From: grichards at endertechnology dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.0.6 OS: Red Hat 7.2
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: grichards at endertechnology dot com
New email:
PHP Version: OS:

 

 [2001-12-14 18:52 UTC] grichards at endertechnology dot com
I'm getting the same bug a lot of other people have posted. I haven't seen a solution in all the reports that work. I've installed gd 2.0.1.

My configure:

./configure --with-apxs=/usr/local/apache/bin/apxs --with-openssl --enable-ftp --with-gd=shared,/usr -with-mysql=/usr --with-pdflib --with-jpeg-dir=/usr/local --with-tiff-dir=/usr/local

results of make:

gd.c:95: conflicting types for `gdIOCtx'
/usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
make[3]: *** [gd.slo] Error 1
make[3]: Leaving directory `/usr/src/php-4.0.6/ext/gd'

What does this mean? What can I do?

Gabe

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-14 19:20 UTC] rasmus@php.net
This is often due to the fact that you have multiple versions of the gd header files on your system.  Do a 'locate gd.h' and make sure you only have 1.  If you have more than 1, get rid of the old bogus ones.
 [2001-12-14 19:27 UTC] grichards at endertechnology dot com
Hi. Thanks for the reply!

There is only /usr/include/gd.h on my system:

[root@server1 php-4.0.6]# locate gd.h
/usr/include/gd.h
/usr/local/src/gd-2.0.1/gd.h
/usr/src/php-4.0.6/ext/gd/php_gd.h


Any other ideas?
 [2001-12-14 21:32 UTC] sniper@php.net
Update to PHP 4.1.0..this should be fixed in it. If not, please 
try the latest CVS snapshot: http://snaps.php.net/

(I'm pretty sure that this is fixed..just can't remember when :)

 [2002-01-05 16:51 UTC] lobbin@php.net
No feedback. Closing.
 [2002-01-06 19:23 UTC] grichards at endertechnology dot com
I just got around to upgrading to 4.1.0, no difference, still can't compile --with-gd


 [2002-03-01 15:10 UTC] chimera at openwarsim dot net
Gentlemen,

RedHat 7.2
PHP 4.1.2

gd.c:95: conflicting types for `gdIOCtx'
/usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
make[3]: *** [gd.slo] Error 1
make[3]: Leaving directory `/usr/src/php-4.0.6/ext/gd'


#locate gd.h
/usr/include/gd.h
/usr/local/src/php-4.1.2/ext/gd/php_gd.h


Error still exists in latest release.  Not fixed.  Please advise?
 [2002-03-01 16:16 UTC] rasmus@php.net
There is no bug here.  I already answered this.  You have multiple gd.h header files on your system and your --with-gd switch is wrong.  Have a look at http://www.php.net/~rasmus/gd.html
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 09:01:28 2025 UTC