Hi,

> -----Original Message-----
> From: Bug Database [mailto:[EMAIL PROTECTED]]
> Sent: 24 August 2001 17:47
> To: [EMAIL PROTECTED]
> Subject: Bug #12948 Updated: Reference to gdImageGif causes 
> compile fail
> in gd.c
> 
> 
> ID: 12948
> 
> You have conflicting GD libraries/headers in your system.
> Or the GD library provided is buggy. Not a PHP problem.

Sorry, could you expand a little on that? Is it invalid
to have a GD library which has gdImageCreateFromGif but
not gdImageGif? As I understand it the patent on Gifs
only applies to creation, not reading.

Here's the relevant configuration output:

checking for gdImageString16 in -lgd... yes
checking for gdImagePaletteCopy in -lgd... yes
checking for gdImageCreateFromPng in -lgd... yes
checking for gdImageCreateFromGif in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageCreateFromJpeg in -lgd... yes
checking for gdImageCreateFromXpm in -lgd... yes
checking for gdImageCreateTrueColor in -lgd... no
checking for gdImageSetTile in -lgd... yes
checking for gdImageSetBrush in -lgd... yes
checking for gdImageStringFTEx in -lgd... no
checking for gdImageColorClosestHWB in -lgd... yes
checking for gdImageColorResolve in -lgd... yes
checking for gdImageGifCtx in -lgd... no

it checks for gdImageCreateFromGif, which is found,
and for gdImageGifCtx, which is not found but it
doesn't check for gdImageGif.

The relevant bit of ext/gd/config.m4 seems to be:

  AC_CHECK_LIB(gd, gdImageCreateFromGif,   [AC_DEFINE(HAVE_GD_GIF,  1, [
])])

and from ext/gd/gd.c seems to be:

#ifdef HAVE_GD_GIF
#ifdef HAVE_GD_GIF_CTX
        _php_image_output_ctx(INTERNAL_FUNCTION_PARAM_PASSTHRU,
PHP_GDIMG_TYPE_GIF
, "GIF", gdImageGifCtx);
#else
        _php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU,
PHP_GDIMG_TYPE_GIF, "G
IF", gdImageGif);
#endif
#else /* HAVE_GD_GIF */
        php_error(E_WARNING, "ImageGif: No GIF support in this PHP build");
        RETURN_FALSE;
#endif /* HAVE_GD_GIF */

..so you can see how I drew the inference I did.

Many thanks,

Jim Hatfield

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to