PHP 4.0 Bug #6654: gd.c ERROR

From: Date: Mon, 11 Sep 2000 01:06:20 +0000
Subject: PHP 4.0 Bug #6654: gd.c ERROR
Groups: php.dev 
Request: Send a blank email to php-dev+get-32858@lists.php.net to get a copy of this message
From: mj27921@janus.swipnet.se Operating system: Linux RedHat 6.2 PHP version: 4.0.2 PHP Bug Type: Compile Failure Bug description: gd.c ERROR 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... ... ...

« previous php.dev (#32858) next »