Configure errors with PHP 5.2.5 (Solaris)

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

   Getting configure errors trying to build PHP 5.2.5 under Solaris 9.
The configure command I use is this:

./configure  --with-mysql --with-gd --with-jpeg-dir=/usr/local
 --with-png-dir=/usr/local --with-zlib-dir=/usr/local
 --with-apxs2=/usr/local/apache2/bin/apxs --with-libxml-dir=/usr/local

and I get this error:

If configure fails try --with-xpm-dir=<DIR>
If configure fails try --with-freetype-dir=<DIR>

So I install the xpm and freetype libraries and add the following to the
configure command above:
--with-freetype-dir=/var/jim --with-xpm-dir=/usr/local

and it still fails:

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... /usr/local
checking for FreeType 1.x support... no
checking for FreeType 2... /var/jim
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 fabsf... no
checking for floorf... no
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
checking for XpmFreeXpmImage in -lXpm... yes
checking for FT_New_Face in -lfreetype... yes
configure: error: GD build test failed. Please check the config.log for details.

config.log says this:

configure:43279: gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS  -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.1 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.1 -R/usr/local/lib -L/usr/local/lib -R/var/jim/lib -L/var/jim/lib conftest.c    -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lz -lresolv -lm -ldl -lnsl -lsocket  -lgcc -lxml2 -lz -lm -lsocket -lnsl -lxml2 -lz -lm -lsocket -lnsl 1>&5
configure: failed program was:
#line 43268 "configure"
#include "confdefs.h"

    char foobar () {}
    char foobar();
    int main() {
      return 0;

I saw a similar error in the PHP bug list but the problem was fixed as of
5.2.3.  Not sure where to go from here.  Any ideas?  Thanks...

Jim McCullars
University of Alabama in Huntsville

Re: Configure errors with PHP 5.2.5 (Solaris)

Hello, I hope i am not to late, i had the same problem:
For me it helped to leave "--disable-rpath" out of the configure
line.Hope this helps you.

Thorsten Hallwas

Site Timeline