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
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: misch at host dot sk
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Thu Dec 26 20:01:29 2024 UTC