I am trying to get the php servlet up for tomcat4. I used configure
--with-java --with-apxs --with-servlet, copied over the phpsrvlt.jar to
where it needs to go then make clean and configure --with-apxs
--with-mysql --with-java. I have followed all the instructions in the
sapi/servlet/README and am now getting the following error:
java.lang.UnsatisfiedLinkError: /usr/lib/apache/libphp4.so:
/usr/lib/apache/libphp4.so: undefined symbol: ap_block_alarms
It appears that ap_block_alarms is an old api for apache 1.3 that hsa
caused some issues when building libphp4.so for use with apache2. Is
there anyway to not compile this into libphp4.so tomcat won't blow up on it?
I also had trouble trying to compile 4.3.0 and
php4-STABLE-200301201830 (./configure --with-java --with-servlet),
getting an error message:
unable to find jni.h in sapi/servlet/servlet.c
If I try to get jni.h (from my j2sdk1.4.1_01 install) in there it breaks on:
/usr/local/src/php4-STABLE-200301201830/sapi/servlet/servlet.c: In
function `Java_net_php_servlet_startup':
/usr/local/src/php4-STABLE-200301201830/sapi/servlet/servlet.c:264:
warning: passing arg 2 of `php_module_startup' from incompatible pointer
type
make: *** No rule to make target `sapi/servlet/java.c', needed by
`sapi/servlet/java.lo'. Stop.
I was getting the same error with php4.2.3 and solved it by including in
/var/tomcat4/common/lib/servlet.jar in CLASSPATH, but this didn't seem
to help with 4.3.0 or STABLE-200301201830.
It may also be of importance I am using the rpm install of tomcat4
tomcat4-admin-webapps-4.1.18-full.1jpp
tomcat4-4.1.18-full.1jpp
tomcat4-webapps-4.1.18-full.1jpp
One other thing, I noticed that --with-java --with-apxs --with-servlet
does not actually make libphp4.so or rather it makes it, but apache
1.3.27 doesn't handle it (dir_module undefined symbol).
-Thanks much for any clues ,
Jeremy
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php