Gabriel,
Not totally sure what that error is but if you are using solaris.. you need to make sure you do the following
cd apache_1.3.xxx
./configure --prefix=/usr/local
--go into php then and do the line below
./configure --with-mysql=/dir to mysql --with-apache=/dir with apache binaries --enable-track-vars (all on one line)
----then make
-----then make install
I am assuming you got that far. Now don't start apache after you have complied it, you have to add the modules for apache and then it will make the apache folder which is different then the folder with the binaris.
cd /apache1.3.xx
./configure --activate-module=src/modules/php4/libphp4.a
then make
then make install and this will finalize the build of apache
----cd php
cp php.ini-dist =copy that file to your lib dir in usually local or where ever you compliler lib is located
--then before yous start apache edit the httpd.conf file by uncommenting the php modules for php (NOT php3) if you are using php 4
i hope that helps..
Ernie