GD Compiles, but PHP doesn't
| From: | Peter Janett | Date: | Wed, 07 Aug 2002 09:33:47 +0000 |
| Subject: | GD Compiles, but PHP doesn't | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-8035@lists.php.net to get a copy of this message | ||
I am trying to update GD, on Solaris 2.6 with PHP 4.1.2.
I installed GD 1.8.4, and it compiled with no errors. (Compiled with jpeg,
PNG, TTF 1.3)
Next I compile PHP 4.1.2 with this configure (which returns no errors):
./configure --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql --wi
th-apxs=/usr/local/apache2/bin/apxs --with-imap --with-xml --with-curl --ena
ble-ftp -with-ttf=/usr/local/progs/freetype-1.3.1 --with-zlib-dir=/usr/local
/lib/ --with-jpeg-dir=/usr/local/progs/jpeg-6b --with-png-dir=/usr/local/pro
gs/libpng-1.2.4 --with-gd=/usr/local/progs/gd-1.8.4 --with-imagick --with-pe
ar --enable-bcmath --with-mcrypt --enable-sockets --enable-xslt --with-xslt-
sablot
Then I run Make, and get this:
Making all in Zend
Making all in main
Making all in ext
Making all in zlib
Making all in bcmath
Making all in libbcmath
Making all in src
Making all in curl
Making all in ftp
Making all in gd
/bin/sh /usr/local/progs/php-4.1.2/libtool --silent --mode=compile
gcc -I. -I/u
sr/local/progs/php-4.1.2/ext/gd -I/usr/local/progs/php-4.1.2/main -I/usr/loc
al/p
rogs/php-4.1.2 -I/usr/local/apache2//src/.include-apxs -I/usr/local/progs/ph
p-4.
1.2/Zend -I/usr/local/include -I/usr/local/include/freetype -I/usr/local/pro
gs/g
d-1.8.4/ -I/usr/local/mysql/include/mysql -I/usr/local/progs/php-4.1.2/ext/x
ml/e
xpat -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=260 -DMOD_SSL=208107 -DUSE_HSREG
EX -
DEAPI -DEAPI_MM -DUSE_EXPAT -I/usr/local/progs/php-4.1.2/TSRM -g -O2 -prefer
-pic
-c gd.c
gd.c:92: conflicting types for `gdIOCtx'
/usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
gd.c: In function `zif_imagecreatefromgif':
gd.c:1203: `gdImageCreateFromGif' undeclared (first use in this function)
gd.c:1203: (Each undeclared identifier is reported only once
gd.c:1203: for each function it appears in.)
gd.c: In function `zif_imagegif':
gd.c:1432: `gdImageGif' undeclared (first use in this function)
*** Error code 1
make: Fatal error: Command failed for target `gd.lo'
Current working directory /usr/local/progs/php-4.1.2/ext/gd
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/progs/php-4.1.2/ext/gd
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/progs/php-4.1.2/ext
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
I've looked at gd.c, as well as some of the files it includes, but that's
really above my skills. My only theory is that some old files are left over
from the previous install of GD 1.3.
Any help most appreciated.
Thanks,
Peter Janett
New Media One Web Services
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
New Upgrades Are Now Live!!!
Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1
Sun Solaris (UNIX) accounts - PHP 4.1.2, mod_perl/1.25,
Stronghold/3.0 (Apache/1.3.22), MySQL 3.23.43
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PostgreSQL coming soon!
http://www.newmediaone.net
webmaster@newmediaone.net
(303)828-9882