php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11096 compile error when compiling --with-gd option
Submitted: 2001-05-24 15:02 UTC Modified: 2001-06-04 18:55 UTC
From: misch at host dot sk Assigned:
Status: Closed Package: GD related
PHP Version: 4.0.5 OS: Linux (but same for other)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
7 + 50 = ?
Subscribe to this entry?

 
 [2001-05-24 15:02 UTC] misch at host dot sk
Compiling php with gd got this error: 

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





in php-src-dir/ext/gd/gd.c on line 91 is:

typedef FILE gdIOCtx;

but this variable is allready defined in GD file gd_io.h as struct.

Just comment this line in gd.c:

//typedef FILE gdIOCtx;

and everything works fine

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-24 22:19 UTC] sniper@php.net
What is the version GD library you are trying to configure 
with? And are you sure there aren't any remains of any
older libgd versions in your system?

--Jani

 [2001-06-03 23:52 UTC] sniper@php.net
This should be fixed in PHP 4.0.6R. Please try the 
latest release candidate from:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

 [2001-06-04 18:55 UTC] misch at host dot sk
Yes with 4.0.6RC2 is everything o.k.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 20:01:29 2024 UTC