PHP 4.0 Bug #6654 Updated: gd.c ERROR
| From: | Bug Database | Date: | Fri, 06 Oct 2000 12:40:02 +0000 |
| Subject: | PHP 4.0 Bug #6654 Updated: gd.c ERROR | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34349@lists.php.net to get a copy of this message | ||
ID: 6654
Updated by: sniper
Reported By: mj27921@janus.swipnet.se
Status: Feedback
Bug Type: Compile Failure
Assigned To:
Comments:
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
Previous Comments:
---------------------------------------------------------------------------
[2000-09-10 21:06:20] mj27921@janus.swipnet.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... ... ...
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6654