PHP 4.0 Bug #7091: Failure to compile using --with-java and kaffe 1.0.6
| From: | mnerone at idworld dot net | Date: | Sun, 08 Oct 2000 20:03:55 +0000 |
| Subject: | PHP 4.0 Bug #7091: Failure to compile using --with-java and kaffe 1.0.6 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34477@lists.php.net to get a copy of this message | ||
From: mnerone@idworld.net
Operating system: RedHat Linux 7.0
PHP version: 4.0.2
PHP Bug Type: Compile Failure
Bug description: Failure to compile using --with-java and kaffe 1.0.6
Using --with-java and kaffe 1.0.6, as provided on disc 2 with RedHat 7.0, here are the last few
lines of my failed compile:
=========================================================
make[2]: Entering directory `/home/mnerone/work/php-4.0.2/ext/java'
make[3]: Entering directory `/home/mnerone/work/php-4.0.2/ext/java'
/bin/sh /home/mnerone/work/php-4.0.2/libtool --silent --mode=compile gcc -I.
-I/home/mnerone/work/php-4.0.2/ext/java -I/home/mnerone/work/php-4.0.2
-I/home/mnerone/work/php-4.0.2/main -I/usr/local/apache/include -I/home/mnerone/work/php-4.0.2/Zend
-I/home/mnerone/work/php-4.0.2 -I/usr/include/mysql
-I/home/mnerone/work/php-4.0.2/ext/xml/expat/xmltok
-I/home/mnerone/work/php-4.0.2/ext/xml/expat/xmlparse -I/usr/include/kaffe -DXML_BYTE_ORDER=12 -g
-O2 -DKAFFE '-DJAVALIB="/libkaffevm.so"' -c java.c && touch java.slo
/home/mnerone/work/php-4.0.2/build/shtool mkdir -p net/php
javac net/php/reflect.java
/usr/bin/jar cf php_java.jar net/php/*.class net/php/*.properties
net/php/*.class: no such file or directory
make[3]: *** [php_java.jar] Error 2
make[3]: Leaving directory `/home/mnerone/work/php-4.0.2/ext/java'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mnerone/work/php-4.0.2/ext/java'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mnerone/work/php-4.0.2/ext'
make: *** [all-recursive] Error 1
=======================================================
The compilation bug is easily rectified by editing ext/java/Makefile and removing the line that
reads:
@test ! -f reflect.class || mv reflect.class net/php # bug in KJC javac
Apparently, this was a work around for a bug in kaffe, but the bug in kaffe (at least in RedHat
7.0's dist) seems to be gone, and the workaround, in fact, BREAKS the compilation. A version
check for kaffe may be needed to determine whether the workaround needs to be applied or not.
Hope this helps. I love PHP (but also Perl and Python, to be honest - I pretty much a big fan of any
language beginning with a "P" :D).
Mike Nerone
--
Edit Bug report at: http://bugs.php.net/?id=7091&edit=1