gd.h in the GD library (v 1.8.4) distribution (www.boutell.com/gd) declares
...
typedef struct gdIOCtx { ..blah blah... } gdIOCtx;
Then ext/gd/gd.c also goes ahead and declares ...
#ifdef USE_GD_IOCTX
..
..
typedef struct gdIOCtx;
..
..
#endif
Perhaps the guard USE_GD_IOCTX should have been taking effect ...but it
isnt.
So the PHP declaration is clearly conflicting.
Multiple versions of gd.h do not exist on my machine. I reconfirmed it by
searching in all the -I directories passed to gcc during make (i.e while
building ext/gd.c) I also did an exhaustive search on the machine !! There
is only one gd.h.
--Roshan
> -----Original Message-----
> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 04, 2002 2:09 PM
> To: NAIK,ROSHAN (HP-Cupertino,ex1)
> Cc: '[EMAIL PROTECTED]'
> Subject: RE: [PHP-DEV] GD broken ? compiler errors !
>
>
> Your problem is that you have multiple versions of gd on your
> system. PHP
> is picking up a gd.h somewhere on the standard include path and then
> trying to build against a different version. Clean up your
> system and it
> should work just fine.
>
> -Rasmus
>
> On Wed, 4 Sep 2002, NAIK,ROSHAN (HP-Cupertino,ex1) wrote:
>
> >
> > No doubt.. but then the stuff on the distribution didnt
> work in the first
> > place. Thats why i hoped the cvs had a fix for those erros.
> I have had prior
> > experinces wherein a few files in the distribtion sources
> wouldnt compile
> > and I had to refresh them from the CVS.
> >
> > These were the errors in the original gd sources that were
> part of the 4.2.2
> > distribtion...
> >
> > php_gd.h:69: warning: static declaration for
> `gdImageColorResolve' follows
> > non-static
> > gd.c:92: conflicting types for `gdIOCtx'
> > /somepath/gd-1.8.4/gd_io.h:18: previous declaration of `gdIOCtx'
> > gd.c: In function `php_imagettftext_common':
> > gd.c:2800: warning: passing arg 2 of `virtual_filepath'
> from incompatible
> > pointer type
> >
> >
> > Has anybody got GD working in 4.2.2 ?
> >
> > --Roshan
> >
> >
> > > -----Original Message-----
> > > From: Markus Fischer [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, September 03, 2002 10:48 PM
> > > To: NAIK,ROSHAN (HP-Cupertino,ex1)
> > > Cc: '[EMAIL PROTECTED]'
> > > Subject: Re: [PHP-DEV] GD broken ? compiler errors !
> > >
> > >
> > > You just can't mix current CVS c sources witth current stable
> > > release. It would be like gambling. The GD module has new
> > > enhancements in it which aren't available in 4.2.2 so that
> > > won't work.
> > >
> > > Please first test with
> > > http://www.php.net/~zeev/php-4.2.3RC2.tar.gz
> > > or even better http://snaps.php.net/php4-latest.tar.bz2 and
> > > see if this isse has been fixed already.
> > >
> > > Any remaining errors should be reported via bugs.php.net
> > > (preferable against php4-latest).
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php