Operating System: RedHat Linux 7.2
PHP Version:      4.2.3 , 4.3.2
GD [gif patched] : 2.0.12  path /usr/local/gd

GD install
./configure --prefix=/usr/local/gd
make install

it's install all good well
..............
checking for libpng-config... no
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_create_read_struct in -lpng... yes
checking for freetype-config... /usr/bin/freetype-config
checking for FT_Init_FreeType in -lfreetype... yes
checking freetype/freetype.h usability... yes
checking freetype/freetype.h presence... yes
checking for freetype/freetype.h... yes
checking whether it's freetype 2... yes
checking for jpeg_set_defaults in -ljpeg... yes
checking for XpmReadFileToXpmImage in -lXpm... no

** Configuration summary for gd 2.0.12:

   Support for PNG library:          yes
   Support for JPEG library:         yes
   Support for Freetype 2.x library: yes
   Support for Xpm library:          no

configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating config/gdlib-config
config.status: creating test/Makefile
config.status: creating config.h
config.status: executing depfiles commands
[EMAIL PROTECTED] gd]# make install
Making install in config
make[1]: Entering directory `/usr/local/gd/config'
make[2]: Entering directory `/usr/local/gd/config'
.......................
/usr/bin/install -c .libs/gdcmpgif /usr/local/gd/bin/gdcmpgif
  /bin/sh ./libtool --mode=install /usr/bin/install -c giftogd2
/usr/local/gd/bin/giftogd2
/usr/bin/install -c .libs/giftogd2 /usr/local/gd/bin/giftogd2
  /bin/sh ./libtool --mode=install /usr/bin/install -c pngtogd2
/usr/local/gd/bin/pngtogd2
/usr/bin/install -c .libs/pngtogd2 /usr/local/gd/bin/pngtogd2
  /bin/sh ./libtool --mode=install /usr/bin/install -c webpng
/usr/local/gd/bin/webpng
/usr/bin/install -c .libs/webpng /usr/local/gd/bin/webpng
/bin/sh ./config/mkinstalldirs /usr/local/gd/bin
 /usr/bin/install -c bdftogd /usr/local/gd/bin/bdftogd
/bin/sh ./config/mkinstalldirs /usr/local/gd/include
mkdir -p -- /usr/local/gd/include
 /usr/bin/install -c -m 644 gd.h /usr/local/gd/include/gd.h
 /usr/bin/install -c -m 644 gd_io.h /usr/local/gd/include/gd_io.h
 /usr/bin/install -c -m 644 gdcache.h /usr/local/gd/include/gdcache.h
 /usr/bin/install -c -m 644 gdfontg.h /usr/local/gd/include/gdfontg.h
 /usr/bin/install -c -m 644 gdfontl.h /usr/local/gd/include/gdfontl.h
 /usr/bin/install -c -m 644 gdfontmb.h /usr/local/gd/include/gdfontmb.h
 /usr/bin/install -c -m 644 gdfonts.h /usr/local/gd/include/gdfonts.h
 /usr/bin/install -c -m 644 gdfontt.h /usr/local/gd/include/gdfontt.h
make[2]: Leaving directory `/usr/local/gd'
make[1]: Leaving directory `/usr/local/gd'
[EMAIL PROTECTED] gd]#


PHP 4.2.3 install
./configure --with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local \
--enable-trans-sid \
--enable-track-vars \
--with-zlib-dir=/usr/lib \
--with-zlib \
--enable-ftp \
--enable-calendar \
--enable-exif \
--with-mcrypt \
--with-mysql \
--disable-debug \
--enable-inline-optimization \
--enable-mailparse \
--with-gd=/usr/local/gd \
--with-freetype-dir=/usr/include/freetype2 \
--enable-freetype-4bit-antialias-hack \
--with-ttf=/usr/include/freetype1 \
--with-imap \
--with-imap-ssl \
--with-kerberos \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-gif-dir=/usr/lib \
--enable-shmop \
--enable-sysvsem \
--enable-sysvshm

make
make install

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 `/tmp/php-4.2.3/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/php-4.2.3/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/php-4.2.3/ext'
make: *** [all-recursive] Error 1

I had the same with 2.0.12 and 4.2.3, 4.3.2 with five occurances of
'structure has no member in free':
In /path/to/src/ext/gd/gd_ctx.c and /path/to/src/ext/gd/gd.c I changed the
five occurences of 'ctx->free' to 'ctx->gd_free'.
After this the make intall wil work but apache didn't start at all

...
checking whether to enable FTP support... yes
checking for GD support... yes
checking whether to enable truetype string function in GD... no
checking for the location of libjpeg... yes
checking for jpeg_read_header in -ljpeg... (cached) yes
checking for the location of libpng... yes
checking for png_write_image in -lpng... (cached) yes
checking for the location of libXpm... no
If configure fails try --with-xpm-dir=<DIR>
checking for freetype(2)... yes
checking for FreeType 1.x support... yes
no - FreeType 2.x is to be used instead
checking for T1lib support... no
checking for gdImageString16 in -lgd... (cached) yes
checking for gdImagePaletteCopy in -lgd... (cached) yes
checking for gdImageCreateFromPng in -lgd... (cached) yes
checking for gdImageCreateFromGif in -lgd... (cached) yes
checking for gdImageGif in -lgd... (cached) yes
checking for gdImageWBMP in -lgd... (cached) yes
checking for gdImageCreateFromJpeg in -lgd... (cached) yes
checking for gdImageCreateFromXpm in -lgd... (cached) yes
checking for gdImageCreateFromGd2 in -lgd... (cached) yes
checking for gdImageCreateTrueColor in -lgd... (cached) yes
checking for gdImageSetTile in -lgd... (cached) yes
checking for gdImageSetBrush in -lgd... (cached) yes
checking for gdImageStringTTF in -lgd... (cached) yes
checking for gdImageStringFT in -lgd... (cached) yes
checking for gdImageStringFTEx in -lgd... (cached) yes <==
checking for gdImageColorClosestHWB in -lgd... (cached) yes
checking for gdImageColorResolve in -lgd... (cached) yes
checking for gdImageGifCtx in -lgd... (cached) yes
checking for GNU gettext support... no
checking for GNU MP support... no
checking for Hyperwave support... no
checking for ICAP support... no
checking for iconv support... no
checking for IMAP support... yes

and install works good^^

[EMAIL PROTECTED] libexec]# apachectl start
Syntax error on line 54 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server:
/usr/local/apache/libexec/libphp4.so: undefined symbol: gdImageStringFTEx
/sbin/apachectl start: httpd could not be started
[EMAIL PROTECTED] libexec]#

what's problem?? -_-;;



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

Reply via email to