#14868 [Csd->Opn]: incorrect configuration for --with-java

From: Date: Tue, 13 Aug 2002 12:33:59 +0000
Subject: #14868 [Csd->Opn]: incorrect configuration for --with-java
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16602@lists.php.net to get a copy of this message
ID: 14868 Updated by: kalowsky@php.net Reported By: phil@bolthole.com -Status: Closed +Status: Open Bug Type: Java related Operating System: solaris PHP Version: 4.1.0 New Comment: setting back to open until it's fixed. Previous Comments: ------------------------------------------------------------------------ [2002-08-12 23:47:46] kennyz@nycap.rr.com I just checked out the latest snapshot (200208121800), and this is not fixed. The $JAVA_HOME/include directory does NOT contain jni_md.h. It is in a machine-specific subdirectory, such as $JAVA_HOME/include/linux/jni_md.h or $JAVA_HOME/include/solaris/jni_md.h. My quick fix is to create a symbolic link in $JAVA_HOME/include that points to $JAVA_HOME/include/linux/jni_md.h, but this is a direct modification of the Java distribution, and should not be done. Therefore, the PHP4 configure scripts must be fixed. ------------------------------------------------------------------------ [2002-08-08 10:04:41] kalowsky@php.net This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2002-01-05 05:48:11] phil@bolthole.com There are MULTIPLE problems with what should be a simple option for configure: --with-java=/usr/java1.1 Problem #1: improper detection of javac and jar in PATH. I had JAVA_JAR set to "no jar in /usr/bin ....." Please check to see that there is an actual executable! Similar problem with javac. ext/java/Makefile hardcodes 'javac', instead of having a variable $(JAVAC) set in config_vars.mk, and having an executable check done for the var. [adding /usr/java1.1/bin to my PATH solves both problems] Additional problem: JAVA_INCLUDE = -I/usr/java1.1/include is not adequate. It must be JAVA_INCLUDE = -I/usr/java1.1/include/solaris \ -I/usr/java1.1/include because jni_md.h is in the solaris subdir. Once I hand-edited the above valies in config_vars.mk, the java extention compile successfully with solaris 8. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14868&edit=1

« previous php.bugs (#16602) next »