For those who encounter unresolved symbol errors at runtime (when starting NES), try to add --enable-libgcc switch in the configure step.
Harold, here is my obj.conf that support php3 in cgi mode and php4 in nsapi (for php4 in nsapi mode you have to add LD_LIBRARY_PATH and other in the NES start script):
...
Init fn="load-types" mime-types="mime.types"
Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="/opt/netscape/suitespot/bin/libphp4.so"
Init fn=php4_init errorString="Failed to initialize PHP4"
Init fn="init-cgi" LD_LIBRARY_PATH="/usr/local/lib:/opt/oracle/product/8.1.5/lib" ORACLE_HOME="/opt/oracle/product/8.1.5" ORACLE_SID="mybase" THREADS_FLAG="native" CLASSPATH="/opt/oracle/product/8.1.5/jdbc/lib/classes111.zip:/opt/netscape/server4/java/ldapjdk.jar:."
...
<Object name="default">
...
</Object>
<Object name="cgi">
ObjectType fn="force-type" type="magnus-internal/cgi"
Service fn="send-cgi"
</Object>
<Object name="x-httpd-php">
ObjectType fn="force-type" type="magnus-internal/x-httpd-php"
Service fn=php4_execute
</Object>