Help with installing PHP 5.2.5 under Solaris 9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi, I am having trouble getting the configure command to complete trying to build PHP 5.2.5 on my Solaris system. We have used PHP 4 with Apache 1.3.x for some time and I am now trying to get Apache 2 to work and moving to PHP 5 at the same time. The following command will successfully build PHP 4.4.4 on my system:

../configure --with-mysql --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib-dir=/usr/local --with-apache=../../apache/apache_1.3.37

but when I try to configure PHP 5.2.5 using this command:

../configure --with-mysql=/var/opt/sfw/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-xpm-dir=/usr/local --with-freetype-dir=/var/jim

it gives me this error:

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.

This is the last thing in config.log:

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() {
      foobar();
      return 0;
    }


I saw a similar error in a PHP bug report but the comments indicated that it was fixed as of 5.2.3.

Any ideas how I can get the configure script to complete?  Thanks...

Jim McCullars
University of Alabama in Huntsville

[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux