php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12843 Problem with compile
Submitted: 2001-08-19 11:29 UTC Modified: 2001-08-19 15:55 UTC
From: arnaud dot sandenon at wanadoo dot fr Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.0.6 OS: linux 2.2.15
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: arnaud dot sandenon at wanadoo dot fr
New email:
PHP Version: OS:

 

 [2001-08-19 11:29 UTC] arnaud dot sandenon at wanadoo dot fr
./configure --with-mysql --with-gd 
--with-apache=/usr/local/src/apache_1.3.20
--enable-track-vars

After configuring PHP and executing 'make' this message appears :

gd.c:95: conflicting types for `gdIOCtx'
gd_io.h:18: previous declaration of `gdIOCtx'
make[3]: *** [gd.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

gd.c contains : typedef FILE gdIOCtx;

gd_io.h contains : 
typedef struct gdIOCtx {
	int	(*getC)(struct gdIOCtx*);
	int	(*getBuf)(struct gdIOCtx*, void*, int);

        void     (*putC)(struct gdIOCtx*, int);
	int	(*putBuf)(struct gdIOCtx*, const void*, int);

	int	(*seek)(struct gdIOCtx*, const int);
	long	(*tell)(struct gdIOCtx*);

	void    (*free)(struct gdIOCtx*);

} gdIOCtx;

typedef struct gdIOCtx	*gdIOCtxPtr;

What's the problem ?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-19 15:54 UTC] sniper@php.net
Install the GD library you want to use someplace else
than /usr , e.g. into /opt/gd-x.x.x/ and use that path
for --with-gd:

--with-gd=/opt/gd-x.x.x/

Not a bug. Your system just has garbled GD libs.

--Jani


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 20:01:28 2024 UTC