php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18249 make compile error on gd
Submitted: 2002-07-09 12:43 UTC Modified: 2002-09-11 11:34 UTC
From: cbair at dragonmagic dot net Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.1.2 & 4.2.1 OS: Cobalt RaQ4 Linux (Custom RHL)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cbair at dragonmagic dot net
New email:
PHP Version: OS:

 

 [2002-07-09 12:43 UTC] cbair at dragonmagic dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-09 18:44 UTC] 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-10 11:43 UTC] cbair at dragonmagic dot net
Error was repeated when a fresh install of PHP 4.2.1 was used, same configure line.
 [2002-07-10 21:32 UTC] 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-09-11 11:34 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 16:01:29 2024 UTC