#20505 [Ana->Fbk]: configure --with-java fails
| From: | sniper@php.net | Date: | Thu, 14 Aug 2003 05:39:54 +0000 |
| Subject: | #20505 [Ana->Fbk]: configure --with-java fails | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-45909@lists.php.net to get a copy of this message | ||
ID: 20505
Updated by: sniper@php.net
Reported By: tjw at webteam dot net
-Status: Analyzed
+Status: Feedback
Bug Type: Java related
Operating System: Linux
PHP Version: 4.3.0RC1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-11-28 07:15:22] chregu@php.net
the configure of ext/java is quite old and was only tested for suns jdk
stuff recently (well, they didn't change their paths )
I would recommend using the sun jdk. Or someone fixes the configure
line ...
chregu
------------------------------------------------------------------------
[2002-11-19 16:35:33] tjw at webteam dot net
It seems I was a bit hasty in my testing. I forgot to rm config.cache
for each of the runs.
The only JDK's that fail are IBMJava2-131 and Kaffe 1.0.7. All of the
Blackdown JDK's work fine (with configure that is).
IBM's JDK puts libjava.so inside of jre/bin as opposed to jre/lib/i386
as Blackdown does. There should be a test for this in configure, but
I'm not sure of the best spot. I was able to build 4.3.0RC1
sucessfully
by manually adjusting JAVA_LIBPATH.
Kaffe seems to have changed into an entirely different beast in 1.0.6
and 1.0.7. It looks like several things configure looks for are no
longer in the same place as they were in older versions of Kaffe as
they are now in .jar files. I'm unable to test out the older versions
of Kaffe because I can't get them to build on my system. I'm also
not experienced enough in Kaffe to try to tweak PHP to build with it.
------------------------------------------------------------------------
[2002-11-19 15:14:06] tjw at webteam dot net
./configure --with-java=/usr/local/jdk
fails with
checking for Java support... yes
checking Java Jar location... /usr/local/jdk/bin/jar cf
checking Java C location... /usr/local/jdk/bin/javac
checking Checking for libjava...
configure: error: unable to find Java VM libraries in /usr/local/jdk
Same result for /usr/local/jdk equal to:
IBMJava2-131 (IBM's Java2 JDK)
j2sdk1.3.1 (Blackdown 1.3.1 JDK)
j2sdk1.4.1 (Blackdown 1.4.1 JDK)
jdk1.2.2 (Blackdown 1.2.2 JDK)
kaffe_1.0.7 (Kaffe 1.0.7)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20505&edit=1