php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6654 gd.c ERROR
Submitted: 2000-09-10 21:06 UTC Modified: 2000-11-29 06:02 UTC
From: mj27921 at janus dot swipnet dot se Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.2 OS: Linux RedHat 6.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mj27921 at janus dot swipnet dot se
New email:
PHP Version: OS:

 

 [2000-09-10 21:06 UTC] mj27921 at janus dot swipnet dot se
Configuration script:
./configure --with-mysql --with-apxs --with-mcrypt --with-gd --with-jpeg-dir=/CFG/jpeg-6b --with-t1lib

That reports no problems when I run it... but when I try to use "make" it reports this :

/bin/sh /CFG/php-4.0.2/libtool --silent --mode=compile gcc  -I. -I/CFG/php-4.0.2/ext/gd -I/CFG/php-4.0.2 -I/CFG/php-4.0.2/main -I/usr/include/apache -I/CFG/php-4.0.2/Zend -I/CFG/php-4.0.2 -I/usr/local/include/freetype -I/usr/local/include -I/CFG/php-4.0.2/ext/mysql/libmysql -I/CFG/php-4.0.2/ext/xml/expat/xmltok -I/CFG/php-4.0.2/ext/xml/expat/xmlparse  -DEAPI=1 -DXML_BYTE_ORDER=12 -g -O2  -c gd.c
gd.c: In function `php_if_imagecreatefromgif':
gd.c:500: `gdImageCreateFromGif' undeclared (first use in this function)
gd.c:500: (Each undeclared identifier is reported only once
gd.c:500: for each function it appears in.)
gd.c: In function `php_if_imagegif':
gd.c:657: `gdImageGif' undeclared (first use in this function)
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/CFG/php-4.0.2/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/CFG/php-4.0.2/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/CFG/php-4.0.2/ext'
make: *** [all-recursive] Error 1


Then I tried to open the php-4.0.2/ext/gd/gd.c and there I user "//" infront of line 500 and 657...

And when I use "make" again it says this instead :
/bin/sh /CFG/php-4.0.2/libtool --silent --mode=link gcc  -I. -I/CFG/php-4.0.2/ -I/CFG/php-4.0.2 -I/CFG/php-4.0.2/main -I/usr/include/apache -I/CFG/php-4.0.2/Zend -I/CFG/php-4.0.2 -I/usr/local/include/freetype -I/usr/local/include -I/CFG/php-4.0.2/ext/mysql/libmysql -I/CFG/php-4.0.2/ext/xml/expat/xmltok -I/CFG/php-4.0.2/ext/xml/expat/xmlparse  -DEAPI=1 -DXML_BYTE_ORDER=12 -g -O2   -o libphp4.la -rpath /CFG/php-4.0.2/libs -avoid-version -L/CFG/jpeg-6b/lib -L/usr/local/lib  -R /CFG/jpeg-6b/lib -R /usr/local/lib stub.lo  Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la ext/db/libdb.la ext/gd/libgd.la ext/mcrypt/libmcrypt.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.la ext/xml/libxml.la  -lgdbm -lpam -ldl -lmcrypt -lltdl -lt1 -lttf -ljpeg -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv -L/CFG/jpeg-6b/lib -ljpeg
/usr/local/lib/libgd.a(gd.o): In function `gdImageColorResolve':
gd.o(.text+0x6a0): multiple definition of `gdImageColorResolve'
ext/gd/.libs/libgd.al(gd.lo):/CFG/php-4.0.2/ext/gd/gd.c:294: first defined here
/usr/bin/ld: Warning: size of symbol `gdImageColorResolve' changed from 251 to 226 in gd.o
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/CFG/php-4.0.2'
make: *** [all-recursive] Error 1

I hope you can explain to me what the problem is... ... ...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-06 08:40 UTC] sniper@php.net
You propably have old remains of GD-library somewhere in your system.

Please try this:

find / -name gd.h

Best way to get GD work is to delete every instance of gd.h and libgd.a 
from your system and then recompile and install it from scratch.
And the same for php 4 after that.

--Jani
 [2000-10-28 22:05 UTC] sniper@php.net
Is this still valid bug report? Do you still have problems
with GD extension??

--Jani
 [2000-11-29 06:02 UTC] stas@php.net
no feedback, old version -> closing
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 23:00:01 2026 UTC