configure: error: "A rhino jar was not found in /usr/share/java as either rhino.jar or js.jar."

YuGiOhJCJ Mailing-List yugiohjcj-mailinglist at laposte.net
Wed May 11 02:14:57 UTC 2016


In your package file list [1] I can see that the "java" and "javac" binaries are available in the "/usr/lib/java/bin" directory instead of "/usr/bin".
Does that mean that each user of the system needs to add the "/usr/lib/java/bin" directory to his "PATH" environment variable in order to use easily these binaries?
Is there a reason for this location for the binaries?

[1] http://www.slackware.com/~alien/slackbuilds/openjdk7/pkg/14.1/openjdk7-7u101_b00-i486-1alien.lst

On Tue, 10 May 2016 22:16:14 +0200
YuGiOhJCJ Mailing-List <yugiohjcj-mailinglist at laposte.net> wrote:

> Well, I assume that sctplib and socketapi are not mandatory as I can read in your SlackBuild that you have disabled them with the --disable-system-sctp option.
> I will do the same.
> Your SlackBuild is very useful.
> 
> [1] http://www.slackware.com/~alien/slackbuilds/openjdk/build/openjdk.SlackBuild
> 
> On Sat, 30 Apr 2016 23:41:41 +0200
> YuGiOhJCJ Mailing-List <yugiohjcj-mailinglist at laposte.net> wrote:
> 
> > Indeed, the error message was clear: The "rhino.jar" file was missing in the "/usr/share/java" directory.
> > I have downloaded and copied this file [1] in this directory and the error has disappeared:
> > ---
> > $ ./configure --with-jdk-home=/usr/lib/jvm
> > checking for a BSD-compatible install... /bin/ginstall -c
> > checking whether build environment is sane... yes
> > checking for a thread-safe mkdir -p... /bin/mkdir -p
> > checking for gawk... gawk
> > checking whether make sets $(MAKE)... yes
> > checking whether make supports nested variables... yes
> > checking how to create a pax tar archive... gnutar
> > checking whether to enable maintainer-specific portions of Makefiles... yes
> > checking which branch and release of IcedTea is being built... branch 2.6, release 2.6.4 for OpenJDK 1.7.0
> > checking build system type... i686-pc-linux-gnu
> > checking host system type... i686-pc-linux-gnu
> > checking for gcc... gcc
> > checking whether the C compiler works... yes
> > checking for C compiler default output file name... a.out
> > checking for suffix of executables... 
> > checking whether we are cross compiling... no
> > checking for suffix of object files... o
> > checking whether we are using the GNU C compiler... yes
> > checking whether gcc accepts -g... yes
> > checking for gcc option to accept ISO C89... none needed
> > checking whether gcc understands -c and -o together... yes
> > checking for style of include used by make... GNU
> > checking dependency style of gcc... none
> > checking for g++... g++
> > checking whether we are using the GNU C++ compiler... yes
> > checking whether g++ accepts -g... yes
> > checking dependency style of g++... none
> > checking for gmake... /usr/bin/gmake
> > checking for gzip... /bin/gzip
> > checking for ant... /home/spierre/documents/downloads/software/apache-ant-1.9.4/bin/ant
> > checking for gfind... no
> > checking for find... /usr/bin/find
> > checking for gpatch... no
> > checking for patch... /usr/bin/patch
> > checking for gtar... no
> > checking for tar... /bin/tar
> > checking for chmod... /bin/chmod
> > checking for gsha256sum... no
> > checking for sha256sum... /bin/sha256sum
> > checking for wget... /usr/bin/wget
> > checking for zip... /usr/bin/zip
> > checking for unzip... /usr/bin/unzip
> > checking for cpio... /bin/cpio
> > checking for file... /usr/bin/file
> > checking for readlink... /bin/readlink
> > checking for fastjar... /usr/bin/fastjar
> > checking for gsed... no
> > checking for sed... /bin/sed
> > checking for ldd... ldd
> > checking for gawk... /bin/gawk
> > checking for hg... /usr/bin/hg
> > checking for an OpenJDK source directory... /tmp/build/openjdk/icedtea-2.6.4/openjdk
> > checking for IcedTea Mercurial revision ID... none
> > checking for JDK Mercurial revision ID... none
> > checking for HotSpot Mercurial revision ID... none
> > checking for lsb_release... no
> > checking whether to use CACAO as VM... no
> > checking whether to use JamVM as VM... no
> > checking whether to use the Shark JIT... no
> > checking if a native HotSpot port is available for this architecture... yes
> > checking how to run the C preprocessor... gcc -E
> > checking for grep that handles long lines and -e... /bin/grep
> > checking for egrep... /bin/grep -E
> > checking for ANSI C header files... yes
> > checking for sys/types.h... yes
> > checking for sys/stat.h... yes
> > checking for stdlib.h... yes
> > checking for string.h... yes
> > checking for memory.h... yes
> > checking for strings.h... yes
> > checking for inttypes.h... yes
> > checking for stdint.h... yes
> > checking for unistd.h... yes
> > checking whether to use the zero-assembler port... no
> > checking whether byte ordering is bigendian... no
> > checking which HotSpot build to use... default
> > checking for linux32... /usr/bin/linux32
> > checking version of GCC... 5.3.0 (major version 5, minor version 3)
> > checking for getconf... /usr/bin/getconf
> > checking the number of online processors... 2
> > checking if cp supports --reflink... yes
> > checking if we can hard link rather than copy from /tmp/build/openjdk/icedtea-2.6.4... yes
> > checking whether to disable the execution of the JTReg tests... no
> > checking whether to disable the execution of the HotSpot JTReg tests... no
> > checking whether to disable the execution of the langtools JTReg tests... no
> > checking whether to disable the execution of the JDK JTReg tests... no
> > checking for system library directory... 
> > checking for pkg-config... /usr/bin/pkg-config
> > checking pkg-config is at least version 0.9.0... yes
> > checking whether to enable the PKCS11 crypto provider using NSS... disabled by default (edit java.security to enable)
> > checking for NSS... yes
> > checking whether to enable the Sun elliptic curve crypto provider... no
> > checking whether to build native code with debugging information... yes
> > checking whether to build Java bytecode with debugging information... yes
> > checking where fonts are stored... /usr/share/fonts
> > checking if /usr/share/fonts is a valid directory... yes
> > checking for xvfb-run... no
> > checking whether to build documentation... yes
> > checking for distribution package version... none
> > checking build identification... Custom build (Sat Apr 30 23:27:07 CEST 2016)
> > checking how many parallel build jobs to execute... 2
> > checking whether to build a bootstrap version first... yes
> > checking whether to download tarballs... yes
> > checking for a JDK home directory... /usr/lib/jvm
> > checking if a java binary was specified... no
> > checking if /usr/lib/jvm/bin/java is a valid executable file... yes
> > checking for an ecj JAR file... /usr/share/java/ecj.jar
> > checking if a javac binary was specified... no
> > checking if /usr/lib/jvm/bin/javac is a valid executable file... yes
> > checking if an ecj binary was specified... no
> > checking if /usr/bin/ecj is a valid executable file... yes
> > checking whether to compile ecj natively... no
> > checking if we are using ecj as javac... yes
> > checking if a javah executable is specified... no
> > checking if /usr/lib/jvm/bin/javah is a valid executable file... yes
> > checking if a jar executable is specified... no
> > checking if /usr/lib/jvm/bin/jar is a valid executable file... yes
> > checking whether jar supports @<file> argument... yes
> > checking whether jar supports stdin file arguments... yes
> > checking whether jar supports -J options at the end... yes
> > checking if an rmic executable is specified... no
> > checking if /usr/lib/jvm/bin/rmic is a valid executable file... yes
> > checking if a native2ascii binary was specified... no
> > checking if /usr/lib/jvm/bin/native2ascii is a valid executable file... yes
> > checking if we are using CACAO as the build VM... no
> > checking for xsltproc... /usr/bin/xsltproc
> > checking if the VM and compiler work together... yes
> > checking if /usr/lib/jvm/bin/javah exhibits Classpath bug 39408... no
> > checking if /usr/lib/jvm/bin/javah exhibits Classpath bug 40188... no
> > checking if /usr/lib/jvm/bin/javah supports -X options... no
> > checking if /usr/lib/jvm/bin/javah exhibits Classpath bug 45526... no
> > checking if java.io.PrintStream is missing the 1.5 constructors (PR40616)... no
> > checking for a tools.jar... not specified
> > configure: Using /usr/lib/jvm/lib/tools.jar for tools.jar
> > checking if java.util.Scanner is missing... no
> > checking if java.util.Scanner exhibits Classpath bug 40630... no
> > checking if javax.annotation.Resource is missing... yes
> > checking if javax.xml.stream.events.Attribute.getDTDType() wrongly returns a QName... no
> > checking if javax.management.remote.JMXServiceURL is missing... yes
> > checking if javax.management.modelmbean.ModelMBeanInfo is missing... yes
> > checking if java.util.regex.Matcher.quoteReplacement is missing... no
> > checking if javax.swing.plaf.basic.BasicDirectoryModel.addPropertyChangeListener is missing... yes
> > checking if javax.net.ssl.SSLContext.getDefaultSSLParameters is missing... yes
> > checking if javax.net.ssl.SSLEngine.setSSLParameters is missing... yes
> > checking if javax.rmi.ssl.SslRMIServerSocketFactory(javax.net.ssl.SSLContext.class,String[].class,String[].class,Boolean.TYPE) is missing... yes
> > checking if com.sun.mirror.type.TypeMirror is missing... yes
> > checking if com.sun.net.httpserver.Headers is missing... yes
> > checking if java.text.SimpleDateFormat exhibits Classpath bug 64174... yes
> > checking whether to enable Java compiler warnings... no
> > checking if javac lacks support for the diamond operator... no
> > checking if javac lacks support for underscored literals... no
> > checking if the VM supports 1.7 bytecode... yes
> > checking whether to disable the use of bootstrap tools for bootstrapping... no
> > checking if the VM supports -Xbootclasspath... no
> > checking whether to run the HotSpot Queens test... yes
> > checking whether to include Javascript support via Rhino... /usr/share/java/rhino.jar
> > checking for an OpenJDK source zip... not specified
> > checking whether to enable checksumming of the specified OpenJDK tarball... yes
> > checking for a HotSpot source zip... not specified
> > checking whether to enable checksumming of the specified HotSpot tarball... yes
> > checking for a CORBA source zip... not specified
> > checking whether to enable checksumming of the specified CORBA tarball... yes
> > checking for a JAXP source zip... not specified
> > checking whether to enable checksumming of the specified JAXP tarball... yes
> > checking for a JAXWS source zip... not specified
> > checking whether to enable checksumming of the specified JAXWS tarball... yes
> > checking for a JDK source zip... not specified
> > checking whether to enable checksumming of the specified JDK tarball... yes
> > checking for a langtools source zip... not specified
> > checking whether to enable checksumming of the specified langtools tarball... yes
> > checking for an alternate jar command... not specified
> > checking whether to use CACAO as VM... no
> > checking for a CACAO home directory... $(abs_top_builddir)/cacao/install
> > checking for a CACAO source directory... not specified
> > checking for a CACAO source zip... not specified
> > checking whether to enable checksumming of the specified CACAO tarball... yes
> > checking whether to use JamVM as VM... no
> > checking for a JamVM source zip... not specified
> > checking whether to enable checksumming of the specified JamVM tarball... yes
> > checking whether to disable optimizations and build with -O0 -g... no
> > checking whether to enable -Werror... no
> > checking whether to enable JAR compression... true
> > checking for additional virtual machines to build... none
> > checking whether to enable the ARM32 JIT... yes
> > checking whether to enable elliptic curves beyond those supported by NSS... no
> > checking whether to split debuginfo into separate files... no
> > checking if a version suffix has been specified... no
> > checking whether to retrieve the source code from Mercurial... no
> > checking which Java timezone data directory to use... /usr/share/javazi
> > checking whether to copy a certificate authority certificates (cacerts) file... yes
> > configure: No cacerts file specified; using /usr/lib/jvm/jre/lib/security/cacerts
> > checking if /usr/lib/jvm/jre/lib/security/cacerts is a valid keystore file... no
> > configure: WARNING: No valid cacerts file found; one won't be passed to the OpenJDK build
> > checking if a PaX kernel is in use... no
> > checking if a PaX utility was specified... no
> > configure: WARNING: "No PaX utility found."
> > checking for hg... (cached) /usr/bin/hg
> > checking which Mercurial revision to use... tip
> > checking for gcj... /usr/bin/gcj
> > checking whether to use the system Kerberos install... yes
> > checking for krb5_cc_default in -lkrb5... yes
> > checking krb5.h usability... yes
> > checking krb5.h presence... yes
> > checking for krb5.h... yes
> > checking X11/X.h usability... yes
> > checking X11/X.h presence... yes
> > checking for X11/X.h... yes
> > checking whether to use the system zlib install... yes
> > checking for ZLIB... yes
> > checking whether to use the system jpeg install... yes
> > checking for main in -ljpeg... yes
> > checking jpeglib.h usability... yes
> > checking jpeglib.h presence... yes
> > checking for jpeglib.h... yes
> > checking whether to use the system libpng install... yes
> > checking for PNG... yes
> > checking whether to use the system giflib install... yes
> > checking for main in -lgif... yes
> > checking gif_lib.h usability... yes
> > checking gif_lib.h presence... yes
> > checking for gif_lib.h... yes
> > checking whether to use the system LCMS install... yes
> > checking for LCMS2... yes
> > checking whether to use the system Gtk+ install... yes
> > checking for GTK... yes
> > checking whether to use the system GIO install... yes
> > checking for GIO... yes
> > checking for g_settings_new... yes
> > checking whether to use the system GConf install... no
> > checking whether to use the system fontconfig install... yes
> > checking for FONTCONFIG... yes
> > checking whether to use fontconfig to provide better font rendering... no
> > checking for cupsServer in -lcups... yes
> > checking cups/cups.h usability... yes
> > checking cups/cups.h presence... yes
> > checking for cups/cups.h... yes
> > checking cups/ppd.h usability... yes
> > checking cups/ppd.h presence... yes
> > checking for cups/ppd.h... yes
> > checking whether to build against the required syscalls... yes
> > checking for openat64... yes
> > checking for fstatat64... yes
> > checking for fgetxattr... yes
> > checking for fsetxattr... yes
> > checking for fremovexattr... yes
> > checking for flistxattr... yes
> > checking for unlinkat... yes
> > checking for renameat... yes
> > checking for futimesat... yes
> > checking for fdopendir... yes
> > checking for epoll_create... yes
> > checking for epoll_ctl... yes
> > checking for epoll_wait... yes
> > checking sys/epoll.h usability... yes
> > checking sys/epoll.h presence... yes
> > checking for sys/epoll.h... yes
> > checking attr/xattr.h usability... yes
> > checking attr/xattr.h presence... yes
> > checking for attr/xattr.h... yes
> > checking whether to use the system libpcsclite install... yes
> > checking for PCSC... yes
> > checking whether to use the system libsctp install... yes
> > checking for sctp_bindx in -lsctp... no
> > configure: error: Could not find SCTP library; install SCTP or build with --disable-system-sctp to use the in-tree copy.
> > ---
> > 
> > Now, I get a problem with the missing SCTP library.
> > However, I have installed sctplib 1.0.15 [2] on my system together with socketapi 2.2.8 [3].
> > I don't know why the configure script of IcedTea 2.6.4 does not detect the presence of this library.
> > 
> > That's how I built sctplib 1.0.15:
> > ---
> > $ ./configure --prefix=/usr
> > $ make
> > ---
> > 
> > That's how I built socketapi 2.2.8:
> > ---
> > $ ./configure --prefix=/usr --with-sctplib=/usr
> > $ make
> > ---
> > 
> > That's the content of my sctplib 1.0.15 installed package:
> > ---
> > $ tree
> > .
> > |-- install
> > |   `-- doinst.sh
> > `-- usr
> >     |-- include
> >     |   `-- sctp.h
> >     `-- lib
> >         |-- libsctplib.a
> >         |-- libsctplib.la
> >         `-- libsctplib.so.1.0.8
> > 
> > 4 directories, 5 files
> > ---
> > 
> > That's the content of my socketapi 2.2.8 installed package:
> > ---
> > $ tree
> > .
> > |-- install
> > |   `-- doinst.sh
> > `-- usr
> >     |-- include
> >     |   |-- cppsocketapi
> >     |   |   |-- breakdetector.h
> >     |   |   |-- condition.h
> >     |   |   |-- condition.icc
> >     |   |   |-- internetaddress.h
> >     |   |   |-- internetaddress.icc
> >     |   |   |-- internetflow.h
> >     |   |   |-- internetflow.icc
> >     |   |   |-- multitimerthread.h
> >     |   |   |-- multitimerthread.icc
> >     |   |   |-- portableaddress.h
> >     |   |   |-- portableaddress.icc
> >     |   |   |-- randomizer.h
> >     |   |   |-- randomizer.icc
> >     |   |   |-- socketaddress.h
> >     |   |   |-- socketaddress.icc
> >     |   |   |-- synchronizable.h
> >     |   |   |-- synchronizable.icc
> >     |   |   |-- tdin6.h
> >     |   |   |-- tdmessage.h
> >     |   |   |-- tdmessage.icc
> >     |   |   |-- tdsocket.h
> >     |   |   |-- tdsocket.icc
> >     |   |   |-- tdstrings.h
> >     |   |   |-- tdstrings.icc
> >     |   |   |-- tdsystem.h
> >     |   |   |-- thread.h
> >     |   |   |-- thread.icc
> >     |   |   |-- timedthread.h
> >     |   |   |-- timedthread.icc
> >     |   |   |-- tools.h
> >     |   |   |-- tools.icc
> >     |   |   |-- unixaddress.h
> >     |   |   `-- unixaddress.icc
> >     |   `-- ext_socket.h
> >     `-- lib
> >         |-- libcppsocketapi.a
> >         |-- libcppsocketapi.la
> >         |-- libcppsocketapi.so.2.0.2
> >         |-- libsctpsocket.a
> >         |-- libsctpsocket.la
> >         `-- libsctpsocket.so.2.0.2
> > 
> > 5 directories, 41 files
> > ---
> > 
> > Do you have any idea why the configure script of IcedTea 2.6.4 does not detect the presence of this library?
> > 
> > [1] https://github.com/mozilla/rhino/releases/download/Rhino1_7_7_1_RELEASE/rhino-1.7.7.1.jar
> > [2] http://www.sctp.de/download/sctplib-1.0.15.tar.gz
> > [3] http://www.sctp.de/download/socketapi-2.2.8.tar.gz
> > 
> > On Thu, 28 Apr 2016 07:29:24 -0700 (PDT)
> > Eric Hameleers <alien at slackware.com> wrote:
> > 
> > > On Thu, 28 Apr 2016, YuGiOhJCJ Mailing-List wrote:
> > > 
> > > > Hello,
> > > >
> > > > I have problem building IcedTea 2.6.4 on Slackware 14.1 with the gcj 5.3.0 and ecj 4.9:
> > > 
> > > ...
> > > 
> > > > checking whether to include Javascript support via Rhino... not found
> > > > configure: error: "A rhino jar was not found in /usr/share/java as either rhino.jar or js.jar."
> > > 
> > > The first question that comes to mind is: did you actually install a 
> > > rhino jar file prior to compiling openjdk with icedtea?
> > > 
> > > You are also 2 security releases behind with icedtea.
> > > 
> > > > It seems that some packages/classes are missing in my JDK.
> > > >
> > > > Any idea why?
> > > >
> > > > Thank you.
> > > > Best regards.
> > > >
> > > > That's how I built gcj 5.3.0:
> > > > $ ../configure --prefix=/usr --enable-languages=c,c++,java --enable-java-home
> > > > $ make
> > > >
> > > > That's how I built ecj 4.9:
> > > > $ gcj -o ecj ../ecj.jar --main=org.eclipse.jdt.internal.compiler.batch.Main
> > > 
> > > 
> > > I have tried running "BOOTSTRAP=YES ./openjdk7.SlackBuild" i.e. 
> > > bootstrapping openjdk7 using gcj and using the sources from this 
> > > location: http://www.slackware.com/~alien/slackbuilds/openjdk7/ and 
> > > after having installed apache-ant and rhino.
> > > 
> > > This is on Slackware 14.2 RC2 which already comes equipped with the 
> > > full GCC 5.3.0 compiler suite.
> > > 
> > > This resulted in an error-free compilation and a Slackware package for 
> > > openjdk7 7u101_b00.
> > > 
> > > So yes, probably you ave an incomplete GCC 5.3.0 suite and/or missing 
> > > rhino jar file.
> > > 
> > > Cheers, Eric
> > > 
> > > -- 
> > > Eric Hameleers <alien at slackware.com>
> > > Home: http://alien.slackbook.org/blog/


More information about the distro-pkg-dev mailing list