Click to See Complete Forum and Search --> : [Resolved] Gdlib


lucasrd
06-14-2005, 04:54 PM
I'm trying to install GD Lib with PHP5

I have the following installed:
libpng
linjpeg
freetype2

Gdlib configures, makes, and installs fine...

PHP configures fine, but when I run make, I get the following:


/usr/bin/ld: Undefined symbols:
_gdImageAALine
_gdImageAntialias
_gdImageBrightness
_gdImageColor
_gdImageColorMatch
_gdImageContrast
_gdImageEdgeDetectQuick
_gdImageEllipse
_gdImageEmboss
_gdImageGaussianBlur
_gdImageGrayScale
_gdImageMeanRemoval
_gdImageNegate
_gdImageRotate
_gdImageSelectiveBlur
_gdImageSmooth
_gdImageXbmCtx



any ideas on why these would be undefined?

lucasrd
06-15-2005, 11:25 AM
I figured it out...

I had an older version of libpng on my server that wasn't compatible with the new gdlib functions. So I did the following inside the gdlib directory:


#./configure --prefix=/path/to/gdlibinstall --with-libpng=/path/to/libpng

#make clean

#make

#make install



that got the correct version compiled with gdlib, and the make of PHP went successfully.