One more time gd with php
| From: | Blacky-php | Date: | Mon, 28 Oct 2002 21:13:46 +0000 |
| Subject: | One more time gd with php | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-8943@lists.php.net to get a copy of this message | ||
I've tried to install php with gd.
Gd instalation directory is /usr/local
Also png, tiff, jpeg and zlib libraries are instaled.
Configuration of php_4.23 looks ok. All of path are known.
But compilation of php goes wrong with something like this:
make[3]: Leaving directory `/usr/local/src/php-4.2.3/ext/ftp'
make[2]: Leaving directory `/usr/local/src/php-4.2.3/ext/ftp'
Making all in gd
make[2]: Entering directory `/usr/local/src/php-4.2.3/ext/gd'
make[3]: Entering directory `/usr/local/src/php-4.2.3/ext/gd'
gcc -I. -I/usr/local/src/php/ext/gd -I/usr/local/src/php/main -I/usr/local/src/php -I/usr/local/src/apache/src/include -I/usr/local/src/apache/src/os/unix -I/usr/local/src/php/Zend -I/usr/local/include -I/usr/local/include/freetype2/freetype -I/usr/local/mysql/include/mysql -I/usr/local/include -I/usr/local/src/php/ext/xml/expat -I/usr/local/src/php/TSRM -g -O2 -c gd.c && touch gd.lo
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning: as it has already been specified as a non-system directory
In file included from gd.c:83:
gd_ctx.c: In function `_php_image_output_ctx':
gd_ctx.c:70: structure has no member named `free'
gd_ctx.c:98: structure has no member named `free'
gd.c: In function `_php_image_type':
gd.c:1014: structure has no member named `free'
gd.c:1017: structure has no member named `free'
gd.c: In function `_php_image_create_from':
gd.c:1209: structure has no member named `free'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.2.3/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.2.3/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.2.3/ext'
make: *** [all-recursive] Error 1
All is installed on Linux generated by me from source (www.linuxfromscratch.org). The GCC is 3.2.
When I leave option --with-gd compilation does fine.
Could enybody hel me. I've no idea what can be wrong.
Rafal Back