#14868 [Opn->Csd]: incorrect configuration for --with-java
| From: | kalowsky@php.net | Date: | Wed, 14 Aug 2002 16:12:32 +0000 |
| Subject: | #14868 [Opn->Csd]: incorrect configuration for --with-java | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-16789@lists.php.net to get a copy of this message | ||
ID: 14868
Updated by: kalowsky@php.net
Reported By: phil@bolthole.com
-Status: Open
+Status: Closed
Bug Type: Java related
Operating System: solaris
PHP Version: 4.1.0
New Comment:
Please try a CVS version of this, as I believe this is now fixed. CVS
meaning non-STABLE builds.
Previous Comments:
------------------------------------------------------------------------
[2002-08-13 08:33:59] kalowsky@php.net
setting back to open until it's fixed.
------------------------------------------------------------------------
[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