OK, I guess I have to answer my self. :-)
After my colleage sugested me to do "make distclean" (not "make clean") to
get reed of the files left after previous "make" attempts on both
directories : php and gd2 everything worked as a sharm!

Breefly I go over install in my case. Assuming that the rest of the packages
are installed: zlib, libpng,  jpeg-6b,  freetype2.

GD2
----------------------------------------------------------------------------
--------------------
1. Make sure your Makefile in gd2 directory is edited and has the following:

    LIBS=-lgd -lpng -lz -ljpeg -lfreetype -lm (left intact the original
gd-2.0.1 distribution)
NOTE: "LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm" as suggested Rasmus did
not worked for me.

Next to do, execute command:  "freetype-config --cflags" and place result
into INCLUDEDIRS:
Original from the gd-2.0.1 distribution




INCLUDEDIRS=-I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/inc
lude/X11 -I/usr/local/include

Edited:


INCLUDEDIRS=-I. -I/usr/local/include -I/usr/local/include/freetype2  -I/usr/
X11R6/include/X11 -I/usr/local/include

Save changes.

make

PHP
----------------------------------------------------------------------------
-----------------------
./configure
make
make install


"Maxim Volkov" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>
>
>
>



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to