php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6288 While trying to compile in GD, it blew up.
Submitted: 2000-08-22 03:30 UTC Modified: 2000-08-30 12:09 UTC
From: jmullan at doubt dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.1pl2 OS: linux mandrake
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: jmullan at doubt dot com
New email:
PHP Version: OS:

 

 [2000-08-22 03:30 UTC] jmullan at doubt dot com
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 */
}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-26 09:17 UTC] sniper@php.net
Which version of GD-lib do you have in your system?
And have you updated it recently? 

Please try the latest CVS or snapshot from http://snaps.php.net

--Jani
 [2000-08-30 11:51 UTC] jmullan at doubt dot com
much heading scratching later, I found that gd wasn't compiling shared libraries and wasn't putting them in the right place.  I found this out after tying to compile gd.pm - it has a patch for gd that I think enables shared libraries.

I guess this can be closed, but I'd to like to ask that compiling in gd would be a little bit better documented- and maybe have more complete information from the configure program - for instance, which library is it looking at...
 [2000-08-30 12:09 UTC] jmoore@php.net
Closed at user request
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 02:01:31 2024 UTC