Problems getting GD 2.0.17+ to work with PHP 4.3.5-RC1

From: Date: Tue, 13 Jan 2004 16:06:53 +0000
Subject: Problems getting GD 2.0.17+ to work with PHP 4.3.5-RC1
Groups: php.install 
Request: Send a blank email to php-install+get-12490@lists.php.net to get a copy of this message
We're trying to get GD 2.0.17 (and/or the latest, 2.0.20) to work with PHP 4.3.5 (I don't think previous has the new GD hooks) to use some of the new functions, on FreeBSD 4.9. GD seems to compile fine, though I had to disable freetype or it gave me pthread errors. This is the configure line we're using for PHP and output relating to GD. As you can see at the bottom, it doesn't find any functions within the GD library, which is installed in /usr/local/* and compiled just fine (--without-freetype, and no Xpm). grub# ./configure --with-apxs2=/usr/local/sbin/apxs --with-pgsql=/usr/local/pgsql --with-zlib-dir=/usr/local/lib --with-iconv=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-gd=/usr/local checking for GD support... yes checking for the location of libjpeg... /usr/local checking for the location of libpng... /usr/local checking for the location of libXpm... no checking for FreeType 1.x support... no checking for FreeType 2... no checking for T1lib support... no checking whether to enable truetype string function in GD... no checking whether to enable JIS-mapped Japanese font support in GD... no checking for jpeg_read_header in -ljpeg... (cached) yes checking for png_write_image in -lpng... (cached) yes If configure fails try --with-xpm-dir=<DIR> If configure fails try --with-freetype-dir=<DIR> checking for gdImageString16 in -lgd... no checking for gdImagePaletteCopy in -lgd... no checking for gdImageCreateFromPng in -lgd... no checking for gdImageCreateFromGif in -lgd... no checking for gdImageGif in -lgd... no checking for gdImageWBMP in -lgd... no checking for gdImageCreateFromJpeg in -lgd... no checking for gdImageCreateFromXpm in -lgd... no checking for gdImageCreateFromGd2 in -lgd... no checking for gdImageCreateTrueColor in -lgd... no checking for gdImageSetTile in -lgd... no checking for gdImageEllipse in -lgd... no checking for gdImageSetBrush in -lgd... no checking for gdImageStringTTF in -lgd... no checking for gdImageStringFT in -lgd... no checking for gdImageStringFTEx in -lgd... no checking for gdImageColorClosestHWB in -lgd... no checking for gdImageColorResolve in -lgd... no checking for gdImageGifCtx in -lgd... no checking for gdCacheCreate in -lgd... no checking for gdFontCacheShutdown in -lgd... no checking for gdImageCreate in -lgd... no configure: error: GD build test failed. Please check the config.log for details. Here is the config.log. It says something about iconv, which is probably the problem, but I really dunno where the problem exists: GD, PHP, libiconv. To me it looks like there is a problem with GD's usage of iconv. I installed the iconv port just fine. grub# cat config.log int main() { gdFontCacheShutdown() ; return 0; } configure:36222: gcc -c -g -O2 -I/usr/local/include conftest.c 1>&5 configure: In function `main': configure:36217: warning: assignment makes pointer from integer without a cast configure:36569: checking for gdImageCreate in -lgd configure:36588: gcc -o conftest -g -O2 -R/usr/local/lib -L/usr/local/lib -R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lpng -lz -ljpeg -lz -lm 1>&5 /usr/local/lib/libgd.so: undefined reference to `iconv_open' /usr/local/lib/libgd.so: undefined reference to `iconv_close' /usr/local/lib/libgd.so: undefined reference to `iconv' configure: failed program was: #line 36577 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gdImageCreate(); Any ideas? Has anyone gotten the new GD functions (sharpen, negate, etc.) to work on FreeBSD? Thankya, Josh

« previous php.install (#12490) next »