LINUX.ORG.RU

GD + PHP проблемы

 , , libgd,


0

1

Ситуация следующая.

Установлен из исходников PHP 5.4.8. В нём включена была поддержка GD (--with-gd). Но, как оказалось, во встроенной GD не работали функции JPEG.

http://www.php.net/manual/en/image.requirements.php меня отправили на сайт Independent JPEG Group: http://www.ijg.org/

Скачал с него src, скомпилил, сделал пакет, установил, всё ок. Пересобрал РНР так:

./configure --with-bz2 --enable-exif --with-openssl --with-gd --with-jpeg-dir=/usr/local --with-freetype-dir=/usr/local/include/freetype2/freetype --with-zlib --enable-zip --with-mysqli --with-pgsql --with-config-file-path=/etc/php --enable-mbstring --enable-libxml --with-xsl

Перепроверил, что префиксы к JPEG правильные. Перезапустил сервер, JPG всё равно не определяется в GD (смотрел через php_info).

Решил скачать GD последней версии. Не тут-то было. Официальный сайт ушёл в даун, прилось качать с какой-то «затычки», в которой даже слово mercurial с ошибками написали в описании установки. Ну да ладно.

Собрал тот GD с https://bitbucket.org/pierrejoye/gd-libgd/wiki/libgd_installation.

Пересобираю PHP под новый GD.

./configure --with-bz2 --enable-exif --with-openssl --with-gd=/usr/local --with-jpeg-dir=/usr/local --with-freetype-dir=/usr/local/include/freetype2/freetype --with-zlib --enable-zip --with-mysqli --with-pgsql --with-config-file-path=/etc/php --enable-mbstring --enable-libxml --with-xsl
Конфигурация проходит нормально.

Самое интеесное, что появилось много новых строк типа «checking for gd*» по сравнению с предыдущими попытками собрать! Значит он точно ищет JPEG! И судя по «yes», он их находит! «Ура» - подумал я, но писец подкрался незаметно...

...
checking for GD support... yes
checking for the location of libvpx... no
checking for the location of libjpeg... /usr/local
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 2... /usr/local/include/freetype2/freetype
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
If configure fails try --with-vpx-dir=<DIR>
checking for jpeg_read_header in -ljpeg... yes
If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>
If configure fails try --with-xpm-dir=<DIR>
checking for FT_New_Face in -lfreetype... yes
checking for gdImageString16 in -lgd... yes
checking for gdImagePaletteCopy in -lgd... yes
checking for gdImageCreateFromPng in -lgd... yes
checking for gdImageCreateFromGif in -lgd... yes
checking for gdImageGif in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageCreateFromJpeg in -lgd... yes
checking for gdImageCreateFromXpm in -lgd... yes
checking for gdImageCreateFromGd2 in -lgd... yes
checking for gdImageCreateTrueColor in -lgd... yes
checking for gdImageSetTile in -lgd... yes
checking for gdImageEllipse in -lgd... yes
checking for gdImageSetBrush in -lgd... yes
checking for gdImageStringTTF in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageStringFTEx in -lgd... yes
checking for gdImageColorClosestHWB in -lgd... yes
checking for gdImageColorResolve in -lgd... yes
checking for gdImageGifCtx in -lgd... yes
checking for gdCacheCreate in -lgd... yes
checking for gdFontCacheShutdown in -lgd... yes
checking for gdFreeFontCache in -lgd... yes
checking for gdFontCacheMutexSetup in -lgd... no
checking for gdNewDynamicCtxEx in -lgd... yes
checking for gdImageCreate in -lgd... yes
...

Но при компиляции затык:

ext/gd/gd.o: In function `zif_imageantialias':
/home/***/temp/php-5.4.8/ext/gd/gd.c:5072: undefined reference to `php_gd_gdImageAntialias'
ext/gd/gd.o: In function `zif_imagecopyresized':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3842: undefined reference to `php_gd_gdImageCopyResized'
ext/gd/gd.o: In function `zif_imagecolorallocate':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2934: undefined reference to `php_gd_gdImageColorAllocate'
ext/gd/gd.o: In function `zif_imagesetpixel':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3215: undefined reference to `php_gd_gdImageSetPixel'
ext/gd/gd.o: In function `_php_image_bw_convert':
/home/***/temp/php-5.4.8/ext/gd/gd.c:4529: undefined reference to `php_gd_gdImageCreate'
/home/***/temp/php-5.4.8/ext/gd/gd.c:4535: undefined reference to `php_gd_gdImageColorAllocate'
/home/***/temp/php-5.4.8/ext/gd/gd.c:4541: undefined reference to `php_gd_gdImageColorAllocate'
/home/***/temp/php-5.4.8/ext/gd/gd.c:4553: undefined reference to `php_gd_gdImageGetPixel'
/home/***/temp/php-5.4.8/ext/gd/gd.c:4560: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/gd.c:4548: undefined reference to `php_gd_gdImageTrueColorToPalette'
ext/gd/gd.o: In function `zif_imagecopymergegray':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3806: undefined reference to `php_gd_gdImageCopyMergeGray'
ext/gd/gd.o: In function `zif_imagecopymerge':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3777: undefined reference to `php_gd_gdImageCopyMerge'
ext/gd/gd.o: In function `zif_imagecopy':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3747: undefined reference to `php_gd_gdImageCopy'
ext/gd/gd.o: In function `zif_imageinterlace':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3441: undefined reference to `php_gd_gdImageInterlace'
ext/gd/gd.o: In function `zif_imagecolortransparent':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3418: undefined reference to `php_gd_gdImageColorTransparent'
ext/gd/gd.o: In function `zif_imagefill':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3380: undefined reference to `php_gd_gdImageFill'
ext/gd/gd.o: In function `zif_imagefilltoborder':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3362: undefined reference to `php_gd_gdImageFillToBorder'
ext/gd/gd.o: In function `zif_imagearc':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3325: undefined reference to `php_gd_gdImageArc'
ext/gd/gd.o: In function `zif_imagefilledrectangle':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3295: undefined reference to `php_gd_gdImageFilledRectangle'
ext/gd/gd.o: In function `zif_imagerectangle':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3277: undefined reference to `php_gd_gdImageRectangle'
ext/gd/gd.o: In function `zif_imagedashedline':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3259: undefined reference to `php_gd_gdImageDashedLine'
ext/gd/gd.o: In function `zif_imageline':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3240: undefined reference to `php_gd_gdImageLine'
/home/***/temp/php-5.4.8/ext/gd/gd.c:3236: undefined reference to `php_gd_gdImageAALine'
ext/gd/gd.o: In function `zif_imagegammacorrect':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3179: undefined reference to `php_gd_gdImageGetPixel'
/home/***/temp/php-5.4.8/ext/gd/gd.c:3180: undefined reference to `php_gd_gdImageSetPixel'
ext/gd/gd.o: In function `zif_imagecolorexact':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3096: undefined reference to `php_gd_gdImageColorExact'
ext/gd/gd.o: In function `zif_imagecolorresolve':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3078: undefined reference to `php_gd_gdImageColorResolve'
ext/gd/gd.o: In function `zif_imagecolordeallocate':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3055: undefined reference to `php_gd_gdImageColorDeallocate'
ext/gd/gd.o: In function `zif_imagecolorclosesthwb':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3027: undefined reference to `php_gd_gdImageColorClosestHWB'
ext/gd/gd.o: In function `zif_imagecolorclosest':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3008: undefined reference to `php_gd_gdImageColorClosest'
ext/gd/gd.o: In function `zif_imagepalettecopy':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2957: undefined reference to `php_gd_gdImagePaletteCopy'
ext/gd/gd.o: In function `zif_imagecreate':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2209: undefined reference to `php_gd_gdImageCreate'
ext/gd/gd.o: In function `zif_imagesetbrush':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2186: undefined reference to `php_gd_gdImageSetBrush'
ext/gd/gd.o: In function `zif_imagesettile':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2164: undefined reference to `php_gd_gdImageSetTile'
ext/gd/gd.o: In function `zif_imagecopyresampled':
/home/***/temp/php-5.4.8/ext/gd/gd.c:1967: undefined reference to `php_gd_gdImageCopyResampled'
ext/gd/gd.o: In function `zif_imagecolorexactalpha':
/home/***/temp/php-5.4.8/ext/gd/gd.c:1938: undefined reference to `php_gd_gdImageColorExactAlpha'
ext/gd/gd.o: In function `zif_imagecolorclosestalpha':
/home/***/temp/php-5.4.8/ext/gd/gd.c:1920: undefined reference to `php_gd_gdImageColorClosestAlpha'
ext/gd/gd.o: In function `zif_imagecolorresolvealpha':
/home/***/temp/php-5.4.8/ext/gd/gd.c:1902: undefined reference to `php_gd_gdImageColorResolveAlpha'
ext/gd/gd.o: In function `zif_imagecolorallocatealpha':
/home/***/temp/php-5.4.8/ext/gd/gd.c:1880: undefined reference to `php_gd_gdImageColorAllocateAlpha'
ext/gd/gd.o: In function `zif_imagelayereffect':
/home/***/temp/php-5.4.8/ext/gd/gd.c:1859: undefined reference to `php_gd_gdImageAlphaBlending'
ext/gd/gd.o: In function `zif_imagealphablending':
/home/***/temp/php-5.4.8/ext/gd/gd.c:1820: undefined reference to `php_gd_gdImageAlphaBlending'
ext/gd/gd.o: In function `zif_imagesavealpha':
/home/***/temp/php-5.4.8/ext/gd/gd.c:1839: undefined reference to `php_gd_gdImageSaveAlpha'
ext/gd/gd.o: In function `zif_imagefilledarc':
/home/***/temp/php-5.4.8/ext/gd/gd.c:1801: undefined reference to `php_gd_gdImageFilledArc'
ext/gd/gd.o: In function `zif_imagesetthickness':
/home/***/temp/php-5.4.8/ext/gd/gd.c:1750: undefined reference to `php_gd_gdImageSetThickness'
ext/gd/gd.o: In function `zif_imagecreatetruecolor':
/home/***/temp/php-5.4.8/ext/gd/gd.c:1645: undefined reference to `php_gd_gdImageCreateTrueColor'
ext/gd/gd.o: In function `zif_imagesetstyle':
/home/***/temp/php-5.4.8/ext/gd/gd.c:1621: undefined reference to `php_gd_gdImageSetStyle'
ext/gd/gd.o: In function `zif_imagetruecolortopalette':
/home/***/temp/php-5.4.8/ext/gd/gd.c:1691: undefined reference to `php_gd_gdImageTrueColorToPalette'
ext/gd/gd.o: In function `_php_image_output':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2782: undefined reference to `php_gd_gdImageTrueColorToPalette'
/home/***/temp/php-5.4.8/ext/gd/gd.c:2766: undefined reference to `php_gd_gdImageWBMP'
/home/***/temp/php-5.4.8/ext/gd/gd.c:2710: undefined reference to `php_gd_gdImageWBMP'
/home/***/temp/php-5.4.8/ext/gd/gd.c:2724: undefined reference to `php_gd_gdImageTrueColorToPalette'
ext/gd/gd.o: In function `zif_imagegd2':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2894: undefined reference to `php_gd_gdImageGd2'
ext/gd/gd.o: In function `zif_imagegd':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2885: undefined reference to `php_gd_gdImageGd'
ext/gd/gd.o: In function `php_find_gd_font':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3553: undefined reference to `php_gd_gdFontTiny'
/home/***/temp/php-5.4.8/ext/gd/gd.c:3553: undefined reference to `php_gd_gdFontGiant'
/home/***/temp/php-5.4.8/ext/gd/gd.c:3535: undefined reference to `php_gd_gdFontTiny'
/home/***/temp/php-5.4.8/ext/gd/gd.c:3538: undefined reference to `php_gd_gdFontSmall'
/home/***/temp/php-5.4.8/ext/gd/gd.c:3541: undefined reference to `php_gd_gdFontMediumBold'
/home/***/temp/php-5.4.8/ext/gd/gd.c:3544: undefined reference to `php_gd_gdFontLarge'
/home/***/temp/php-5.4.8/ext/gd/gd.c:3547: undefined reference to `php_gd_gdFontGiant'
ext/gd/gd.o: In function `php_imagechar':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3679: undefined reference to `php_gd_gdImageCharUp'
/home/***/temp/php-5.4.8/ext/gd/gd.c:3672: undefined reference to `php_gd_gdImageChar'
ext/gd/gd.o: In function `php_gdimagecharup':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3615: undefined reference to `php_gd_gdImageSetPixel'
ext/gd/gd.o: In function `php_imagechar':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3665: undefined reference to `php_gd_gdImageChar'
ext/gd/gd.o: In function `php_imagepolygon':
/home/***/temp/php-5.4.8/ext/gd/gd.c:3502: undefined reference to `php_gd_gdImagePolygon'
/home/***/temp/php-5.4.8/ext/gd/gd.c:3500: undefined reference to `php_gd_gdImageFilledPolygon'
ext/gd/gd.o: In function `_php_image_create_from_string':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2307: undefined reference to `php_gd_gdNewDynamicCtxEx'
ext/gd/gd.o: In function `_php_image_create_from':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2491: undefined reference to `php_gd_gdNewDynamicCtxEx'
ext/gd/gd.o: In function `zif_imagecreatefromgd2part':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2654: undefined reference to `php_gd_gdImageCreateFromGd2PartCtx'
/home/***/temp/php-5.4.8/ext/gd/gd.c:2654: undefined reference to `php_gd_gdImageCreateFromGd2Part'
ext/gd/gd.o: In function `zif_imagecreatefromgd2':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2646: undefined reference to `php_gd_gdImageCreateFromGd2Ctx'
/home/***/temp/php-5.4.8/ext/gd/gd.c:2646: undefined reference to `php_gd_gdImageCreateFromGd2'
ext/gd/gd.o: In function `zif_imagecreatefromgd':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2637: undefined reference to `php_gd_gdImageCreateFromGdCtx'
/home/***/temp/php-5.4.8/ext/gd/gd.c:2637: undefined reference to `php_gd_gdImageCreateFromGd'
ext/gd/gd.o: In function `zif_imagecreatefromwbmp':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2628: undefined reference to `php_gd_gdImageCreateFromWBMPCtx'
/home/***/temp/php-5.4.8/ext/gd/gd.c:2628: undefined reference to `php_gd_gdImageCreateFromWBMP'
ext/gd/gd.o: In function `zif_imagecreatefromxbm':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2608: undefined reference to `php_gd_gdImageCreateFromXbm'
ext/gd/gd.o: In function `zif_imagecreatefrompng':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2588: undefined reference to `php_gd_gdImageCreateFromPngCtx'
/home/***/temp/php-5.4.8/ext/gd/gd.c:2588: undefined reference to `php_gd_gdImageCreateFromPng'
ext/gd/gd.o: In function `zif_imagecreatefromgif':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2568: undefined reference to `php_gd_gdImageCreateFromGifCtx'
/home/***/temp/php-5.4.8/ext/gd/gd.c:2568: undefined reference to `php_gd_gdImageCreateFromGif'
ext/gd/gd.o: In function `zif_imagecreatefromstring':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2396: undefined reference to `php_gd_gdImageCreateFromGd2Ctx'
/home/***/temp/php-5.4.8/ext/gd/gd.c:2369: undefined reference to `php_gd_gdImageCreateFromPngCtx'
/home/***/temp/php-5.4.8/ext/gd/gd.c:2378: undefined reference to `php_gd_gdImageCreateFromGifCtx'
ext/gd/gd.o: In function `_php_image_type':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2275: undefined reference to `php_gd_gdNewDynamicCtxEx'
/home/***/temp/php-5.4.8/ext/gd/gd.c:2277: undefined reference to `php_gd_gdGetC'
/home/***/temp/php-5.4.8/ext/gd/gd.c:2277: undefined reference to `php_gd_getmbi'
/home/***/temp/php-5.4.8/ext/gd/gd.c:2277: undefined reference to `php_gd_gdGetC'
/home/***/temp/php-5.4.8/ext/gd/gd.c:2277: undefined reference to `php_gd_skipheader'
ext/gd/gd.o: In function `zif_imagecreatefromstring':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2387: undefined reference to `php_gd_gdImageCreateFromWBMPCtx'
ext/gd/gd.o: In function `zif_imagewbmp':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2876: undefined reference to `php_gd_gdImageWBMPCtx'
ext/gd/gd.o: In function `zif_imagepng':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2844: undefined reference to `php_gd_gdImagePngCtxEx'
ext/gd/gd.o: In function `zif_imagegif':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2834: undefined reference to `php_gd_gdImageGifCtx'
ext/gd/gd.o: In function `zif_imagexbm':
/home/***/temp/php-5.4.8/ext/gd/gd.c:2824: undefined reference to `php_gd_gdImageXbmCtx'
ext/gd/gd.o: In function `_php_image_convert':
/home/***/temp/php-5.4.8/ext/gd/gd.c:4660: undefined reference to `php_gd_gdImageCreateFromPng'
/home/***/temp/php-5.4.8/ext/gd/gd.c:4701: undefined reference to `php_gd_gdImageCreate'
/home/***/temp/php-5.4.8/ext/gd/gd.c:4707: undefined reference to `php_gd_gdImageCopyResized'
/home/***/temp/php-5.4.8/ext/gd/gd.c:4709: undefined reference to `php_gd_gdImageDestroy'
/home/***/temp/php-5.4.8/ext/gd/gd.c:4713: undefined reference to `php_gd_gdImageCreate'
/home/***/temp/php-5.4.8/ext/gd/gd.c:4719: undefined reference to `php_gd_gdImageColorAllocate'
/home/***/temp/php-5.4.8/ext/gd/gd.c:4725: undefined reference to `php_gd_gdImageColorAllocate'
/home/***/temp/php-5.4.8/ext/gd/gd.c:4735: undefined reference to `php_gd_gdImageGetPixel'
/home/***/temp/php-5.4.8/ext/gd/gd.c:4742: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/gd.c:4746: undefined reference to `php_gd_gdImageDestroy'
/home/***/temp/php-5.4.8/ext/gd/gd.c:4748: undefined reference to `php_gd_gdImageWBMP'
/home/***/temp/php-5.4.8/ext/gd/gd.c:4753: undefined reference to `php_gd_gdImageDestroy'
ext/gd/gd.o: In function `php_free_gd_image':
/home/***/temp/php-5.4.8/ext/gd/gd.c:1107: undefined reference to `php_gd_gdImageDestroy'
ext/gd/gd.o: In function `_php_image_bw_convert':
/home/***/temp/php-5.4.8/ext/gd/gd.c:4564: undefined reference to `php_gd_gdImageWBMPCtx'
ext/gd/libgd/gd_filter.o: In function `php_gd_gdImageNegate':
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:28: undefined reference to `php_gd_gdImageGetTrueColorPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:28: undefined reference to `php_gd_gdImageGetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:38: undefined reference to `php_gd_gdImageColorAllocateAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:42: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:40: undefined reference to `php_gd_gdImageColorClosestAlpha'
ext/gd/libgd/gd_filter.o: In function `php_gd_gdImageGrayScale':
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:56: undefined reference to `php_gd_gdImageGetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:56: undefined reference to `php_gd_gdImageGetTrueColorPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:71: undefined reference to `php_gd_gdImageColorAllocateAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:75: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:73: undefined reference to `php_gd_gdImageColorClosestAlpha'
ext/gd/libgd/gd_filter.o: In function `php_gd_gdImageBrightness':
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:89: undefined reference to `php_gd_gdImageGetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:89: undefined reference to `php_gd_gdImageGetTrueColorPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:116: undefined reference to `php_gd_gdImageColorAllocateAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:120: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:118: undefined reference to `php_gd_gdImageColorClosestAlpha'
ext/gd/libgd/gd_filter.o: In function `php_gd_gdImageContrast':
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:136: undefined reference to `php_gd_gdImageGetTrueColorPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:136: undefined reference to `php_gd_gdImageGetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:176: undefined reference to `php_gd_gdImageColorAllocateAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:180: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:178: undefined reference to `php_gd_gdImageColorClosestAlpha'
ext/gd/libgd/gd_filter.o: In function `php_gd_gdImageColor':
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:198: undefined reference to `php_gd_gdImageGetTrueColorPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:198: undefined reference to `php_gd_gdImageGetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:220: undefined reference to `php_gd_gdImageColorAllocateAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:224: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:222: undefined reference to `php_gd_gdImageColorClosestAlpha'
ext/gd/libgd/gd_filter.o: In function `php_gd_gdImageConvolution':
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:244: undefined reference to `php_gd_gdImageCreateTrueColor'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:249: undefined reference to `php_gd_gdImageSaveAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:250: undefined reference to `php_gd_gdImageColorAllocateAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:251: undefined reference to `php_gd_gdImageFill'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:253: undefined reference to `php_gd_gdImageCopy'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:255: undefined reference to `php_gd_gdImageGetTrueColorPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:255: undefined reference to `php_gd_gdImageGetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:280: undefined reference to `php_gd_gdImageColorAllocateAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:284: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:287: undefined reference to `php_gd_gdImageDestroy'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:282: undefined reference to `php_gd_gdImageColorClosestAlpha'
ext/gd/libgd/gd_filter.o: In function `php_gd_gdImageSelectiveBlur':
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:310: undefined reference to `php_gd_gdImageCreateTrueColor'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:314: undefined reference to `php_gd_gdImageCopy'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:316: undefined reference to `php_gd_gdImageGetTrueColorPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:316: undefined reference to `php_gd_gdImageGetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:399: undefined reference to `php_gd_gdImageColorAllocateAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:403: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:406: undefined reference to `php_gd_gdImageDestroy'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_filter.c:401: undefined reference to `php_gd_gdImageColorClosestAlpha'
ext/gd/libgd/gd_pixelate.o: In function `gdImagePixelate':
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_pixelate.c:47: undefined reference to `php_gd_gdImageColorResolveAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_pixelate.c:48: undefined reference to `php_gd_gdImageFilledRectangle'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_pixelate.c:37: undefined reference to `php_gd_gdImageGetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_pixelate.c:17: undefined reference to `php_gd_gdImageGetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_pixelate.c:18: undefined reference to `php_gd_gdImageFilledRectangle'
ext/gd/libgd/gd_arc.o: In function `php_gd_gdImageEllipse':
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_arc.c:24: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_arc.c:25: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_arc.c:49: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_arc.c:50: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_arc.c:51: undefined reference to `php_gd_gdImageSetPixel'
ext/gd/libgd/gd_arc.o:/home/***/temp/php-5.4.8/ext/gd/libgd/gd_arc.c:52: more undefined references to `php_gd_gdImageSetPixel' follow
ext/gd/libgd/gd_rotate.o: In function `php_gd_gdImageSkewX':
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:31: undefined reference to `php_gd_gdImageGetTrueColorPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:39: undefined reference to `php_gd_gdImageGetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:43: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:58: undefined reference to `php_gd_gdImageColorAllocateAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:88: undefined reference to `php_gd_gdImageColorAllocateAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:96: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:61: undefined reference to `php_gd_gdImageColorClosestAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:91: undefined reference to `php_gd_gdImageColorClosestAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:108: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:113: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:47: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:105: undefined reference to `php_gd_gdImageSetPixel'
ext/gd/libgd/gd_rotate.o: In function `php_gd_gdImageSkewY':
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:127: undefined reference to `php_gd_gdImageGetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:127: undefined reference to `php_gd_gdImageGetTrueColorPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:131: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:138: undefined reference to `php_gd_gdImageColorAllocateAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:149: undefined reference to `php_gd_gdImageColorAllocateAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:179: undefined reference to `php_gd_gdImageColorAllocateAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:187: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:152: undefined reference to `php_gd_gdImageColorClosestAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:182: undefined reference to `php_gd_gdImageColorClosestAlpha'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:195: undefined reference to `php_gd_gdImageSetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:200: undefined reference to `php_gd_gdImageSetPixel'
ext/gd/libgd/gd_rotate.o: In function `php_gd_gdImageRotate90':
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:214: undefined reference to `php_gd_gdImageGetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:214: undefined reference to `php_gd_gdImageGetTrueColorPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:218: undefined reference to `php_gd_gdImageCreateTrueColor'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:225: undefined reference to `php_gd_gdImagePaletteCopy'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:240: undefined reference to `php_gd_gdImageSetPixel'
ext/gd/libgd/gd_rotate.o: In function `php_gd_gdImageRotate180':
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:260: undefined reference to `php_gd_gdImageGetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:260: undefined reference to `php_gd_gdImageGetTrueColorPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:264: undefined reference to `php_gd_gdImageCreateTrueColor'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:271: undefined reference to `php_gd_gdImagePaletteCopy'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:287: undefined reference to `php_gd_gdImageSetPixel'
ext/gd/libgd/gd_rotate.o: In function `php_gd_gdImageRotate270':
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:307: undefined reference to `php_gd_gdImageGetPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:307: undefined reference to `php_gd_gdImageGetTrueColorPixel'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:311: undefined reference to `php_gd_gdImageCreateTrueColor'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:318: undefined reference to `php_gd_gdImagePaletteCopy'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:334: undefined reference to `php_gd_gdImageSetPixel'
ext/gd/libgd/gd_rotate.o: In function `php_gd_gdImageRotate45':
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:369: undefined reference to `php_gd_gdImageCreateTrueColor'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:385: undefined reference to `php_gd_gdImagePaletteCopy'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:438: undefined reference to `php_gd_gdImageCreateTrueColor'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:460: undefined reference to `php_gd_gdImageDestroy'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:470: undefined reference to `php_gd_gdImageCreateTrueColor'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:497: undefined reference to `php_gd_gdImageDestroy'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:381: undefined reference to `php_gd_gdImageCopy'
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:440: undefined reference to `php_gd_gdImageDestroy'
ext/gd/libgd/gd_rotate.o: In function `php_gd_gdImageRotate':
/home/***/temp/php-5.4.8/ext/gd/libgd/gd_rotate.c:551: undefined reference to `php_gd_gdImageDestroy'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Помогите! :)

В PHP есть GD и GD2. Если имеешь в виду первое, то оно устарело совсем. GD2 - просто устарело, вместо него надо использовать imagick.
Если надо просто заставить ПО работать - попробуй собрать PHP 5.2, более вероятно, что взлетит.

UFO-man
()

А gd для jpg какие либы использует? Сталкивался с подобными проблемами на gentoo с ImageMagick, помогала пересборка системы с флагами jpage, jpage2k или как то так.

TDrive ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.