php 4.2.2 and Gd2
| From: | Maxim Volkov | Date: | Mon, 29 Jul 2002 15:47:48 +0000 |
| Subject: | php 4.2.2 and Gd2 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-7935@lists.php.net to get a copy of this message | ||
Hello,
I am experiencing the same problem as Electroteque -- Can not install
php-4.2.2 with gd2 (and I have not installed gd-1.8 , this is a freshly
build Turbolinux box). After wrestling with gd's "make" (edit options in
Makefile) I managed to install it at once but was unable to build it into
PHP.
PHP configuration:
----------------------------------------------------
./configure
--with-apache=/usr/local/apache_1.3.26
--with-config-file-path=/usr/local/apache/conf
--with-mysql=/usr/local/mysql
--enable-track-vars
--enable-trans-sid
--enable-bcmath
--with-curl
--with-zlib-dir
--with-pdflib
--enable-static-pdflib
--with-jpeg-dir=/usr/local/jpeg-6b
--with-png-dir=/usr/local/libpng
--with-tiff-dir=/usr/local/tiff
--enable-gd-native-ttf
--enable-gd-imgstrttf
--with-gd=/usr/local/gd
--with-freetype-dir=/usr/local/include/freetype2
--------------------------------------------------
Configures fine without warnings.
The make's error:
-----------------------------------------------------------------------
/usr/local/lib/libgd.a(gd.o): In function `gdImageColorResolve':
gd.o(.text+0x688): multiple definition of `gdImageColorResolve'
ext/gd/gd.o:/usr/local/php/ext/gd/gd.c:425: first defined here
/usr/bin/ld: Warning: size of symbol `gdImageColorResolve' changed from 224
to 213 in gd.o
ext/gd/gd.o: In function `php_free_gd_image':
/usr/local/php/ext/gd/gd.c:288: undefined reference to `zif_imageellipse'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
--------------------------------------------------------------------------
Yesterday looked on and tried every possible suggestion found on the topic
on line (including http://www.php.net/~rasmus/gd.html) with no luck of
making PHP-4.2.2. collaborate with GD2
What should I do next? Really appreciate any help after weekend long
straggle.
Maxim Volkov