#18249 [Fbk->Bgs]: make compile error on gd
| From: | sniper@php.net | Date: | Wed, 11 Sep 2002 16:34:18 +0000 |
| Subject: | #18249 [Fbk->Bgs]: make compile error on gd | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-19141@lists.php.net to get a copy of this message | ||
ID: 18249
Updated by: sniper@php.net
Reported By: cbair@dragonmagic.net
-Status: Feedback
+Status: Bogus
Bug Type: GD related
Operating System: Cobalt RaQ4 Linux (Custom RHL)
PHP Version: 4.1.2 & 4.2.1
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-07-10 21:32:50] sniper@php.net
This compiler error is caused by having mixed versions of
the gd header files (gd.h) and libgd.a (or libgd.so) in your
system. The easiest way to get it right is to first
1. remove ALL installed gd related files from your system.
(the header files and the libraries). And make sure you
really delete ALL of them, not only in /usr/local/gd
2. Compile libgd from fresh sources and install it.
3. Get fresh PHP 4 sources (do NOT use the ones you have used before)
and configure / compile it.
------------------------------------------------------------------------
[2002-07-10 11:43:23] cbair@dragonmagic.net
Error was repeated when a fresh install of PHP 4.2.1 was used, same
configure line.
------------------------------------------------------------------------
[2002-07-09 18:44:01] sniper@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
------------------------------------------------------------------------
[2002-07-09 12:43:07] cbair@dragonmagic.net
[Note: --with-gd added after successful compile with the same php
install;
gd 1.8.4 installed first to /usr, and after a bogus bug report was
established with same error, gd 1.8.4 was installed to /usr/local/gd;
error continues as same]
Configure with:
./configure --prefix=/usr --enable-dba=shared --enable-dbase
--with-mysql --with-pgsql --enable-exif --enable-gd-native-ttf
--with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr
--with-ttf=/usr --with-zlib --enable-magic-quotes --with-apxs
--with-gd=/usr/local/gd
And make has:
Making all in gd
make[2]: Entering directory `/home/installers/php-4.1.2/ext/gd'
make[3]: Entering directory `/home/installers/php-4.1.2/ext/gd'
/bin/sh /home/installers/php-4.1.2/libtool --silent --mode=compile gcc
-I. -I/home/installers/php-4.1.2/ext/gd
-I/home/installers/php-4.1.2/main -I/home/installers/php-4.1.2
-I/usr/include/apache -I/home/installers/php-4.1.2/Zend
-I/usr/include/freetype2/freetype -I/usr/local/gd/include
-I/home/installers/php-4.1.2/ext/mysql/libmysql
-I/home/installers/php-4.1.2/ext/xml/expat -DLINUX=22 -DMOD_SSL=208104
-DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL -DEAPI
-DBIG_SECURITY_HOLE -DCOBALT_RAQ_LED -I/home/installers/php-4.1.2/TSRM
-g -O2 -prefer-pic -c gd.c
gd.c: In function `zif_imagecreatefromstring':
gd.c:1061: `gdImageCreateFromGifCtx' undeclared (first use in this
function)
gd.c:1061: (Each undeclared identifier is reported only once
gd.c:1061: for each function it appears in.)
gd.c: In function `zif_imagecreatefromgif':
gd.c:1203: `gdImageCreateFromGif' undeclared (first use in this
function)
gd.c:1203: `gdImageCreateFromGifCtx' undeclared (first use in this
function)
gd.c: In function `zif_imagegif':
gd.c:1430: `gdImageGifCtx' undeclared (first use in this function)
gd.c: In function `_php_image_convert':
gd.c:3491: `gdImageCreateFromGif' used prior to declaration
gd.c:3491: warning: assignment makes pointer from integer without a
cast
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/home/installers/php-4.1.2/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/installers/php-4.1.2/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/installers/php-4.1.2/ext'
make: *** [all-recursive] Error 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18249&edit=1