Bug#875790: FTBFS with Java 9: configure fails to detect Java
Chris West
debian at fau.xxx
Thu Sep 14 13:49:58 UTC 2017
Source: scilab
Version: 5.5.2-5
Severity: normal
User: debian-java at lists.debian.org
Usertags: default-java9
This package fails to build with default-jdk pointing to openjdk-9-jdk.
Please fix it, so that we can start the transition to Java 9.
The wiki has some common problems and their solutions:
https://wiki.debian.org/Java/Java9Pitfalls
The "/jre" part of the install path is gone. Also, many of the libraries
have moved. I'm not sure why configure cares so much about the actual
locations.
Build log:
checking type of jvm... jdk
checking java API version... 1.8
Using the following JNI include flags -I/usr/lib/jvm/java-9-openjdk-amd64/include -I/usr/lib/jvm/java-9-openjdk-amd64/include/linux
checking if jni.h can be included... yes
Looking for JNI libs with x86_64 as machine hardware name
Looking for /usr/lib/jvm/java-9-openjdk-amd64/jre/lib/x86_64/libjava.so
Looking for /usr/lib/jvm/java-9-openjdk-amd64/jre/lib/amd64/libjava.so
Looking for /usr/lib/jvm/java-9-openjdk-amd64/jre/lib/i386/client/libjvm.so
Looking for /usr/lib/jvm/java-9-openjdk-amd64/jre/bin/classic/libjvm.so
Looking for /usr/lib/jvm/java-9-openjdk-amd64/lib/jvm.lib
Looking for /usr/lib/jvm/java-9-openjdk-amd64/jre/lib/mipsel/libjava.so
configure: error: Could not detect the location of the Java
shared library. You will need to update java.m4
to add support for this JVM configuration.
make: *** [debian/stamp-autotools] Error 1
/usr/share/cdbs/1/class/autotools.mk:44: recipe for target 'debian/stamp-autotools' failed
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Cheers,
Chris.
More information about the debian-science-maintainers
mailing list