PHP 4.0 Bug #6288: While trying to compile in GD, it blew up.

From: Date: Tue, 22 Aug 2000 07:30:46 +0000
Subject: PHP 4.0 Bug #6288: While trying to compile in GD, it blew up.
Groups: php.dev 
Request: Send a blank email to php-dev+get-30167@lists.php.net to get a copy of this message
From: jmullan@doubt.com Operating system: System: Linux AdvancedExtranet.NetRevolution.com 2.2.13-pre4_2mdk #1 Sun Sep 5 10:11:35 EDT 1999 i686 unknown PHP version: 4.0.1pl2 PHP Bug Type: Compile Failure Bug description: While trying to compile in GD, it blew up. I'm new to this, so maybe I've been doing something wrong. It seems to be compiling okay now (see the end of this text) gd.c: In function `php_if_imagecreatefromgif': gd.c:472: `gdImageCreateFromGif' undeclared (first use in this function) gd.c:472: (Each undeclared identifier is reported only once gd.c:472: for each function it appears in.) gd.c: In function `php_if_imagegif': gd.c:629: `gdImageGif' undeclared (first use in this function) make[3]: *** [gd.lo] Error 1 commenting out the #ifdef like this seemed to help: PHP_FUNCTION(imagecreatefromgif) { //#ifdef HAVE_GD_GIF // _php_image_create_from(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GIF, "GIF", gdImageCreateFromGif); //#else /* HAVE_GD_GIF */ php_error(E_WARNING, "ImageCreateFromGif: No GIF support in this PHP build"); RETURN_FALSE; //#endif /* HAVE_GD_GIF */ } PHP_FUNCTION(imagegif) { //#ifdef HAVE_GD_GIF // _php_image_output(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_GDIMG_TYPE_GIF, "GIF", gdImageGif); //#else /* HAVE_GD_GIF */ php_error(E_WARNING, "ImageGif: No GIF support in this PHP build"); RETURN_FALSE; //#endif /* HAVE_GD_GIF */ }

« previous php.dev (#30167) next »