Re: Error 1 on GD compile
| From: | Yasuo Ohgaki | Date: | Wed, 13 Feb 2002 10:51:30 +0000 |
| Subject: | Re: Error 1 on GD compile | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-6004@lists.php.net to get a copy of this message | ||
Scott Kemp wrote:
I get this error on make for php: Making all in gd make[2]: Entering directory `/opt/php-4.1.1/ext/gd' make[3]: Entering directory `/opt/php-4.1.1/ext/gd' /bin/sh /php/libtool --silent --mode=compile gcc -I. -I/php/ext/gd -I/php/main -I/php -I/opt/apache_1.3.12/include -I/php/Zend -I/usr/local/mysql-3.22.32-pc-linux-gnu-i686//include -I/php/ext/xml/expat -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I/php/TSRM -g -O2 -prefer-pic -c gd.c In file included from gd.c:37: php_gd.h:69: warning: static declaration for `gdImageColorResolve' follows non-static gd.c:92: conflicting types for `gdIOCtx' /usr/include/gd_io.h:18: previous declaration of `gdIOCtx' make[3]: *** [gd.lo] Error 1 make[3]: Leaving directory `/opt/php-4.1.1/ext/gd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/php-4.1.1/ext/gd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/php-4.1.1/ext' make: *** [all-recursive] Error 1 I have tried twiddling so many different options and I still get this error - I welcome your suggestions.It looks you have multiple gd installations. Get rid of all gd related files. header, shared/static lib. Look for all directory under your file system. Install a gd version you need again. Then it should compile. (If you know build system, you can do better, though) -- Yasuo Ohgaki