Im trying to configure php on a solaris 8 box to work with IPlanet but Im having problems...

# ./configure --with-mysql=/usr/local/mysql --with-nsapi=/usr/iplanet/servers/https-dos
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking host system type... sparc-sun-solaris2.8
checking for a BSD compatible install... ./install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
Updated php_version.h
checking for gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
thus far i have attempted the following :
CXX="gcc -O3" ./configure --with-mysql=/usr/local/mysql --with-nsapi=/usr/iplanet/servers/https-dos

But I achieve the same result

Do I need to install `g++`, `libg++` and `libstdc++` ???