RE: [PHP] Unable to configure php 4.3.1 with GD support on Solaris 9

From: Date: Mon, 26 May 2003 01:52:17 +0000
Subject: RE: [PHP] Unable to configure php 4.3.1 with GD support on Solaris 9
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148945@lists.php.net to get a copy of this message
Thanks! After removing the =/usr/local from the --with-gd option, the configure and makes worked. Now, the gd is working as I had hoped! Thanks again! eric > sorry i cant help much as i've never done it on linux , but i do know that > the gd library is buggered to compile in 4.3 u have to use the internal > one , of course the jpeg libraries are ok to link to externally so maybe > --with-gd might help ?? > > > I am using Solaris 9 (sparc) trying to compile php 4.3.1 with gd > > support. (I can compile and use php *without* gd support, but alas, > > since many scripts will require gd support, I'd like to compile it in.) > > > > While running the configure, I get errors that do not appear until: .... > > checking for gdImageGifCtx in -lgd... no > > checking for gdImageCreate in -lgd... no > > configure: error: GD build test failed. Please check the config.log for > > details. > > Then I look in the config.log: > > guy ~/builds/php-4.3.1 214 $less config.log > > <skip to first mention of a gd problem>... > > configure:30184: checking for gdImageString16 in -lgd > > configure:30203: gcc -o > > conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=290 -DUSE_EXPAT > > -L/u sr/local/lib -R/usr/ucblib -L > > /usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2.3 > > -L/usr/local /lib/gcc-lib/sparc-sun-solaris2.9/3.2.3 -R/usr/local/lib > > -L/usr/local/lib > > conftest.c -lgd -lgd -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lz > > -lcrypt -l resolv -lm -ldl -lnsl -lsocket -lgcc > > -lcrypt 1>&5 > > Undefined first referenced > > symbol in file > > libiconv /usr/local/lib/libgd.so > > libiconv_open /usr/local/lib/libgd.so > > libiconv_close /usr/local/lib/libgd.so > > ld: fatal: Symbol referencing errors. No output written to conftest > > collect2: ld returned 1 exit status > > configure: failed program was: > > #line 30192 "configure" > > #include "confdefs.h" > > ... > > > >>From here, the log will show problems of the "Undefined Symbol" for > >>quite a > > few lines (repeats similair to above.) > > > > I am using Sun freeware gd 2.0.12 and Sun freeware xpm. > > > > Here is my configure line: > > ./configure --with-apxs=/usr/local/apache/bin/apxs > > --with-zlib=/usr/local -- with-gd=/usr/local > > --with-mysql=/usr/local/mysql --enable-ftp --with-jpeg-di r=/usr/local > > --with-png-dir=/usr/local --with-freetype-dir=/usr/local --with > > -freetype-dir=/usr/local --with-xpm-dir=/usr/local/lib

« previous php.general (#148945) next »