Like the topic says... I've been trying to do this all day and it's quite frustrating. (I wish they'd make a few precompiled binaries.)
Anyways after taking out alot of the configuration directives I finally got the box to make me a makefile. But now I'm getting an error:
...
make[1]: Entering directory /opt/tmp/php-4.0.4pl1'
/bin/sh /opt/tmp/php-4.0.4pl1/libtool --silent --mode=link gcc -I. -I/opt/tmp/php-4.0.4pl1/ -I/opt/tmp/php-4.0.4pl1/main -I/opt/tmp/php-4.0.4pl1 -I/usr/apache/include -I/opt/tmp/php-4.0.4pl1/Zend -I/opt/tmp/php-4.0.4pl1/ext/mysql/libmysql -I/opt/tmp/php-4.0.4pl1/ext/xml/expat/xmltok -I/opt/tmp/php-4.0.4pl1/ext/xml/expat/xmlparse -I/opt/tmp/php-4.0.4pl1/TSRM -D_POSIX_PTHREAD_SEMANTICS -DEAPI -DMOD_PERL -DUSE_EXPAT -DXML_BYTE_ORDER=21 -g -O2 -o libphp4.la -rpath /opt/tmp/php-4.0.4pl1/libs -avoid-version -L/usr/ucblib -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 -L/opt/postgresql-7.0.3/lib -R /usr/ucblib -R /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 -R /opt/postgresql-7.0.3/lib stub.lo Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/pgsql/libpgsql.la ext/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.la ext/xml/libxml.la TSRM/libtsrm.la -lpam -ldl -lpq -lresolv -lresolv -lm -ldl -lcrypt -lnsl -lsocket -lsocket -lgcc
ld: fatal: file stub.lo: unknown file type
ld: fatal: File processing errors. No output written to .libs/libphp4.so
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory/opt/tmp/php-4.0.4pl1'
make: *** [all-recursive] Error 1
...
What the heck does that mean?!?!?! And for those people who have done it how did you make your mod_php([3|4]) file? Is there some site that might have that file or something like php-4.pkg?
setup:
Ultra5/Solaris8 10/00
default Apache install
php-4.0.4pl1
configure directives:
--with-pgsql
--enable-trans-sid
--with-config-file-path=/etc
--with-apxs=/usr/apache/bin/apxs