Re: Can't get GD 1.8 to install right with PHP 4.0.3pl1

From: Date: Mon, 06 Nov 2000 07:18:20 +0000
Subject: Re: Can't get GD 1.8 to install right with PHP 4.0.3pl1
Groups: php.install 
Request: Send a blank email to php-install+get-629@lists.php.net to get a copy of this message
> Do not add FreeType support to GD. Rebuild your GD library without > Freetype support. PHP has its own code for combining Freetype and GD. > Your GD makefile should have these lines: > > CFLAGS=-O2 -DHAVE_JPEG > LIBS=-lm -lgd -ljpeg -lpng -lz > > Then use these flags for PHP: > > --with-gd=/some/path/gd-1.8.3 --with-jpeg-dir=/usr/local Thanks for the response. That made my output from config more sensible. One thing I'm still puzzled by in my configure output: checking for libjpeg (needed by gd-1.8+)... yes checking for jpeg_read_header in -ljpeg... yes checking for gdImageCreateFromJpeg in -lgd... no checking for libXpm (needed by gd-1.8+)... no checking for gdImageCreateFromXpm in -lgd... yes checking whether to include ttf support... yes It seems odd that it can't find gdImageCreateFromJpeg. Anyway, I ran configure, with better results, but make still fails, as follows (meant to include this in my original post): Making all in . make[1]: Entering directory `/usr/local/src/php-4.0.3pl1' /bin/sh /usr/local/src/php-4.0.3pl1/libtool --silent --mode=link gcc -I. -I/usr /local/src/php-4.0.3pl1/ -I/usr/local/src/php-4.0.3pl1 -I/usr/local/src/php-4.0. 3pl1/main -I/home/slane/apache_tomcat/include -I/usr/local/src/php-4.0.3pl1/Zend -I/usr/local/src/php-4.0.3pl1 -I/usr/local/include/freetype -I/usr/local/src/gd -1.8.3 -I/usr/local/src/php-4.0.3pl1/ext/mysql/libmysql -I/usr/local/src/php-4.0 .3pl1/ext/xml/expat/xmltok -I/usr/local/src/php-4.0.3pl1/ext/xml/expat/xmlparse -I/usr/local/src/php-4.0.3pl1/TSRM -DXML_BYTE_ORDER=21 -g -O2 -o libphp4.la - rpath /usr/local/src/php-4.0.3pl1/libs -avoid-version -L/usr/local/src/gd-1.8.3 -L/usr/local/lib -R /usr/local/src/gd-1.8.3 -R /usr/local/lib stub.lo Zend/lib Zend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la ext/gd/libgd.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la ext/session/lib session.la ext/standard/libstandard.la ext/xml/libxml.la TSRM/libtsrm.la -lpam -ldl -lttf -ljpeg -lpng -lz -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv -L/usr/local/lib -ljpeg /usr/local/src/gd-1.8.3/libgd.a(gd.o): In function `gdImageColorResolve': gd.o(.text+0x954): multiple definition of `gdImageColorResolve' ext/gd/.libs/libgd.al(gd.lo):/usr/local/src/php-4.0.3pl1/ext/gd/gd.c:308: first defined here /usr/bin/ld: Warning: size of symbol `gdImageColorResolve' changed from 256 to 300 in gd.o collect2: ld returned 1 exit status make[1]: *** [libphp4.la] Error 1 make[1]: Leaving directory `/usr/local/src/php-4.0.3pl1' make: *** [all-recursive] Error 1 It looks as though the linker is confused -- it seems to be looking at both /usr/local/src/gd-1.8.3/libgd.a (which is where I pointed it in configure) and at /usr/local/src/php-4.0.3pl1/ext/gd/.libs/libgd.alc. Is all the stuff in ext/gd left over from one of my earlier failed build attempts? In general, I'm not clear what the ext tree is for, or how to interact with it in adding extensions to PHP. I looked for some documentation, but probably didn't look in the right place. Thanks for the help so far. -- sgl ---------- Steve Lane Senior Project Manager Chris Moyer Consulting Inc., Chicago 833 W. Chicago Ave. Suite 203 Chicago, IL 60622 312 433-2421 (V) slane@fmpro.com 312 850-3930 (F) http://www.fmpro.com *** Beginner to Advanced FileMaker & Lasso training. For class and registration information, please visit http://www.fmpro.com/cmc_classes/, email training@fmpro.com, or call Josie Graham at 403-467-9301. ***

« previous php.install (#629) next »