Bug #17690 Updated: GD & ICONV configuration error
| From: | kv_m at rambler dot ru | Date: | Thu, 13 Jun 2002 04:38:34 +0000 |
| Subject: | Bug #17690 Updated: GD & ICONV configuration error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10303@lists.php.net to get a copy of this message | ||
ID: 17690
Updated by: kv_m@rambler.ru
Reported By: kv_m@rambler.ru
-Status: Feedback
+Status: Open
Bug Type: GD related
Operating System: FreeBSD 4.5
PHP Version: 4.0CVS-2002-06-11
New Comment:
config.log before change
configure:24844: checking for GD support
configure:24884: checking for the location of libjpeg
configure:24924: checking for the location of libpng
configure:24964: checking for the location of libXpm
configure:25004: checking for FreeType 1.x support
configure:25044: checking for freetype(2)
configure:25084: checking for T1lib support
configure:25124: checking whether to enable truetype string function in
GD
configure:27068: checking for jpeg_read_header in -ljpeg
configure:27087: gcc -o conftest -g -O2 -DUSE_EXPAT
-L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -ljpeg -lexslt
-lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz -lcrypt -lm
-lcrypt 1>&5
/usr/local/lib/libxml2.so: undefined reference to `libiconv_open'
/usr/local/lib/libxml2.so: undefined reference to `libiconv_close'
/usr/local/lib/libxml2.so: undefined reference to `libiconv'
configure: failed program was:
#line 27076 "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 jpeg_read_header();
int main() {
jpeg_read_header()
; return 0; }
config.log after change
configure:24844: checking for GD support
configure:24884: checking for the location of libjpeg
configure:24924: checking for the location of libpng
configure:24964: checking for the location of libXpm
configure:25004: checking for FreeType 1.x support
configure:25044: checking for freetype(2)
configure:25084: checking for T1lib support
configure:25124: checking whether to enable truetype string function in
GD
configure:27068: checking for jpeg_read_header in -ljpeg -liconv
configure:27087: gcc -o conftest -g -O2 -DUSE_EXPAT
-L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -ljpeg -liconv
-lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2 -lz
-lcrypt -lm -lcrypt 1>&5
configure:27269: checking for png_write_image in -lpng
configure:27288: gcc -o conftest -g -O2 -DUSE_EXPAT
-L/usr/local/lib -lz -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lpng -ljpeg
-liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm -lz -lxml2 -lbz2
-lz -lcrypt -lm -lcrypt 1>&5
configure:28470: checking for gdImageString16 in -lgd
configure:28489: gcc -o conftest -g -O2 -DUSE_EXPAT -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lfreetype
-lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm
-lz -lxml2 -lbz2 -lz -lcrypt -lm -lcrypt 1>&5
configure:28523: checking for gdImagePaletteCopy in -lgd
configure:28542: gcc -o conftest -g -O2 -DUSE_EXPAT -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lfreetype
-lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm
-lz -lxml2 -lbz2 -lz -lcrypt -lm -lcrypt 1>&5
configure:28576: checking for gdImageCreateFromPng in -lgd
configure:28595: gcc -o conftest -g -O2 -DUSE_EXPAT -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lfreetype
-lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm
-lz -lxml2 -lbz2 -lz -lcrypt -lm -lcrypt 1>&5
configure:28629: checking for gdImageCreateFromGif in -lgd
configure:28648: gcc -o conftest -g -O2 -DUSE_EXPAT -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lfreetype
-lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm
-lz -lxml2 -lbz2 -lz -lcrypt -lm -lcrypt 1>&5
/tmp/ccchbViA.o: In function `main':
/usr/dist/compile/php/php4/configure(.text+0x7): undefined reference to
`gdImageCreateFromGif'
configure: failed program was:
#line 28637 "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 gdImageCreateFromGif();
int main() {
gdImageCreateFromGif()
; return 0; }
configure:28682: checking for gdImageGif in -lgd
configure:28701: gcc -o conftest -g -O2 -DUSE_EXPAT -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lfreetype
-lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm
-lz -lxml2 -lbz2 -lz -lcrypt -lm -lcrypt 1>&5
/tmp/cchLPD44.o: In function `main':
/usr/dist/compile/php/php4/configure(.text+0x7): undefined reference to
`gdImageGif'
configure: failed program was:
#line 28690 "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 gdImageGif();
int main() {
gdImageGif()
; return 0; }
configure:28735: checking for gdImageWBMP in -lgd
configure:28754: gcc -o conftest -g -O2 -DUSE_EXPAT -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lfreetype
-lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm
-lz -lxml2 -lbz2 -lz -lcrypt -lm -lcrypt 1>&5
configure:28788: checking for gdImageCreateFromJpeg in -lgd
configure:28807: gcc -o conftest -g -O2 -DUSE_EXPAT -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lfreetype
-lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm
-lz -lxml2 -lbz2 -lz -lcrypt -lm -lcrypt 1>&5
configure:28841: checking for gdImageCreateFromXpm in -lgd
configure:28860: gcc -o conftest -g -O2 -DUSE_EXPAT -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lfreetype
-lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm
-lz -lxml2 -lbz2 -lz -lcrypt -lm -lcrypt 1>&5
configure:28894: checking for gdImageCreateFromGd2 in -lgd
configure:28913: gcc -o conftest -g -O2 -DUSE_EXPAT -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lfreetype
-lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm
-lz -lxml2 -lbz2 -lz -lcrypt -lm -lcrypt 1>&5
configure:28947: checking for gdImageCreateTrueColor in -lgd
configure:28966: gcc -o conftest -g -O2 -DUSE_EXPAT -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lfreetype
-lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm
-lz -lxml2 -lbz2 -lz -lcrypt -lm -lcrypt 1>&5
configure:29000: checking for gdImageSetTile in -lgd
configure:29019: gcc -o conftest -g -O2 -DUSE_EXPAT -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lfreetype
-lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm
-lz -lxml2 -lbz2 -lz -lcrypt -lm -lcrypt 1>&5
configure:29053: checking for gdImageSetBrush in -lgd
configure:29072: gcc -o conftest -g -O2 -DUSE_EXPAT -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lfreetype
-lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm
-lz -lxml2 -lbz2 -lz -lcrypt -lm -lcrypt 1>&5
configure:29106: checking for gdImageStringTTF in -lgd
configure:29125: gcc -o conftest -g -O2 -DUSE_EXPAT -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lfreetype
-lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm
-lz -lxml2 -lbz2 -lz -lcrypt -lm -lcrypt 1>&5
configure:29159: checking for gdImageStringFT in -lgd
configure:29178: gcc -o conftest -g -O2 -DUSE_EXPAT -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lfreetype
-lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm
-lz -lxml2 -lbz2 -lz -lcrypt -lm -lcrypt 1>&5
configure:29212: checking for gdImageStringFTEx in -lgd
configure:29231: gcc -o conftest -g -O2 -DUSE_EXPAT -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lfreetype
-lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm
-lz -lxml2 -lbz2 -lz -lcrypt -lm -lcrypt 1>&5
/tmp/cc9X5yAD.o: In function `main':
/usr/dist/compile/php/php4/configure(.text+0x7): undefined reference to
`gdImageStringFTEx'
configure: failed program was:
#line 29220 "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 gdImageStringFTEx();
int main() {
gdImageStringFTEx()
; return 0; }
configure:29265: checking for gdImageColorClosestHWB in -lgd
configure:29284: gcc -o conftest -g -O2 -DUSE_EXPAT -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lfreetype
-lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm
-lz -lxml2 -lbz2 -lz -lcrypt -lm -lcrypt 1>&5
configure:29318: checking for gdImageColorResolve in -lgd
configure:29337: gcc -o conftest -g -O2 -DUSE_EXPAT -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lfreetype
-lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm
-lz -lxml2 -lbz2 -lz -lcrypt -lm -lcrypt 1>&5
configure:29371: checking for gdImageGifCtx in -lgd
configure:29390: gcc -o conftest -g -O2 -DUSE_EXPAT -L/usr/local/lib
-R/usr/local/lib -L/usr/local/lib conftest.c -lgd -lgd -lfreetype
-lpng -lz -ljpeg -liconv -lexslt -lxsltbreakpoint -lxml2 -lxslt -lz -lm
-lz -lxml2 -lbz2 -lz -lcrypt -lm -lcrypt 1>&5
/tmp/ccZbvl7K.o: In function `main':
/usr/dist/compile/php/php4/configure(.text+0x7): undefined reference to
`gdImageGifCtx'
configure: failed program was:
#line 29379 "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 gdImageGifCtx();
int main() {
gdImageGifCtx()
; return 0; }
Previous Comments:
------------------------------------------------------------------------
[2002-06-11 06:45:24] sniper@php.net
What WAS in config.log that made you make that change?!
------------------------------------------------------------------------
[2002-06-11 01:06:11] kv_m@rambler.ru
./buildconf
./configure --disable-cli --with-tsrm-pth --with-dom=/usr/local
--with-dom-xslt=/usr/local --with-dom-exslt=/usr/local
--with-exec-dir=/usr/local/php/bin --with-mnogosearch=/usr/local/mnsh
--enable-dbg=shared --with-dbg-profiler --enable-inline-optimization
--with-freetype-dir=/usr/local --enable-trans-sid --enable-versioning
--enable-ftp --with-xml --with-magic-quotes --enable-track-vars
--enable-gd-native-ttf --with-png-dir=/usr/local
--with-apxs=/usr/local/apache/bin/apxs --with-gd=/usr/local
--with-jpeg-dir=/usr/local --with-gettext=/usr/local
--with-bz2=/usr/local --with-zlib=/usr/local
--with-mysql=/usr/local/mysql --enable-calendar --enable-safe-mode
--enable-sysvsem --enable-sysvshm
--with-config-file-path=/usr/local/php/
--with-exec-dir=/usr/local/php/bin --with-mod_charset --enable-bcmath
--with-iconv=/usr/local
checking for GD support... yes
checking for the location of libjpeg... yes
checking for the location of libpng... yes
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for freetype(2)... yes
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes
checking for jpeg_read_header in -ljpeg... no
configure: error: Problem with libjpeg.(a|so). Please check config.log
for more
information.
I do replace in configure (all -ljpeg on -ljpeg -liconv)
checking for GD support... yes
checking for the location of libjpeg... yes
checking for the location of libpng... yes
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for freetype(2)... yes
checking for T1lib support... no
checking whether to enable truetype string function in GD... yes
checking for jpeg_read_header in -ljpeg -liconv... yes
checking for png_write_image in -lpng... yes
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17690&edit=1