I'm trying to compile PHP 4.0.4 pl1 on a Sun Solaris 2.7 platform to use with iPlanet Web Server 4.1.

To configure, I run:

configure --with-mysql=/usr/local/mysql --with-nsapi=/usr2/netscape/server/ --enable-track-vars --enable-libgcc

I then run make, and immediately get the following output:

Making all in Zend
make[1]: Entering directory `/usr4/downloads/do/php-4.0.4pl1/Zend'
/bin/sh ../libtool --silent --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../main
In file included from zend_language_scanner_cc.cc:2571:
zend_operators.h: In function `int is_numeric_string(char *, int, long int *, double *)':
zend_operators.h:84: implicit declaration of function `int finite(...)'
make[1]: *** [zend_language_scanner_cc.lo] Error 1
make[1]: Leaving directory `/usr4/downloads/do/php-4.0.4pl1/Zend'
make: *** [all-recursive] Error 1

Here's my environment:

Sun Solaris 2.7
iPlanet Web Server 4.1 SP 5
gcc 2.95.2
automake 1.4
autoconf 2.13
bison 1.28
flex 2.5.4
m4 1.4
make 3.78.1

Can anyone give me any ideas as to what is wrong? This is a brand new system, with most of the software downloaded from sunfreeware.com and installed via pkgadd, so it's possible that there's a configuration problem with one of the packages, but I've no idea where to start looking.

Wally Hartshorn