I believe I have seen every posting on this issue and no one has a reason for this problem yet. I believe this is the same problem as reported by Aliza
"/forum/read.php3?num=1&id=132870&thread=102714"
I am building on Linux Redhat 7.1
First I build GD with information about zlib/jpeg/png/freetype directories
thanks to some advise on another post, I tested the build
nm libgd.a | grep gdImageCreateFromJpeg
0000040c T gdImageCreateFromJpeg
00000438 T gdImageCreateFromJpegCtx
nm libgd.a | grep gdImageCreateFromPng
U gdImageCreateFromPngCtx
00000030 T gdImageCreateFromPngSource
000000cc T gdImageCreateFromPng
000000f8 T gdImageCreateFromPngCtx
OK - I think that GD is functioning with the above.
So now build php
./configure --with-mysql=/usr/local/mysql \
--with-pgsql=/usr/local/pgsql \
--with-apache=../apache_1.3.23 \
--with-pdflib=/usr/local/pdflib \
--with-zlib=/usr \
--with-gd=/usr \
--enable-gd-native-ttf \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-freetype-dir=/usr \
--with-ttf \
--with-xml \
--enable-ftp \
--with-openssl \
--with-pear
This is where I identify the problem
etc ....
checking whether to include GD support... yes
checking whether to enable truetype string function in gd... yes
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_info_init 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 whether to include include FreeType 1.x support... yes
no - FreeType 2.x is to be used instead
checking whether to include T1lib support... no
checking for gdImageString16 in -lgd... (cached) yes
checking for gdImagePaletteCopy in -lgd... (cached) yes
checking for gdImageCreateFromPng in -lgd... (cached) no
checking for gdImageCreateFromGif in -lgd... (cached) no
checking for gdImageGif in -lgd... (cached) no
checking for gdImageWBMP in -lgd... (cached) yes
checking for gdImageCreateFromJpeg in -lgd... (cached) no
checking for gdImageCreateFromXpm in -lgd... (cached) yes
checking for gdImageCreateFromGd2 in -lgd... (cached) yes
checking for gdImageCreateTrueColor in -lgd... (cached) no
so for those who have not skimmed over the above, you can see that while the headers were identified, the functions gdImageCreateFromJpeg and
gdImageCreateFromPng were not found in the gd library, even though they are there and were found manually previously.
Sorry so detailed, would love to hear from anyone who knows what is happenning here !