[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: javacomp.sh error on "make"
From: |
Bruno Haible |
Subject: |
Re: javacomp.sh error on "make" |
Date: |
Thu, 1 Dec 2005 20:47:30 +0100 |
User-agent: |
KMail/1.5 |
Hi,
Paul Price wrote:
> I am attempting to build gettext 0.14.5 under RHEL3, and get the below
> error. ...
> address@hidden:/home/mithrandir/price/temp/gettext-0.14.5>make
>
> [...]
>
> Making all in intl-java
> make[3]: Entering directory
> `/home/mithrandir/price/temp/gettext-0.14.5/gettext-runtime/intl-java'
> /bin/sh ../lib/javacomp.sh -d . ./gnu/gettext/GettextResource.java
> libgcj-java-placeholder.sh
>
> This script is a placeholder for the /usr/bin/java
> master link required by jpackage.org conventions. libgcj's
> rmiregistry, rmic and jar tools are now slave symlinks to these
> masters, and are managed by the alternatives(8) system.
>
> This change was necessary because the rmiregistry, rmic and jar tools
> installed by previous versions of libgcj conflicted with symlinks
> installed by jpackage.org JVM packages.
>
> This script was designed to be overridden by the supported RHEL3 JRE
> packages, java-1.4.2-bea and java-1.4.2-ibm. It is installed as an
> alternative symlink as /usr/bin/java. It will override a third-party
> (non-RHEL3) JRE's java command if the JRE's bin directory is listed
> after /usr/bin in PATH. In that case, it is recommended that the
> third-party JRE's bin directory be listed first in PATH instead.
> /bin/sh ../lib/javacomp.sh -d . ./gnu/gettext/GettextResource.java
>
> Produces the same error as above.
>
> I'm not sure what's going on
The problem is the libgcj-java-placeholder.sh script. The bug is: This
placeholder returns with exit code 0 although it does nothing.
Suggested fix: Add an "exit 126" at the end. (Why 126? 126 is the
customary exit code when a script/program exists but could not be executed
for some reasons.)
> I have installed the Sun java:
>
> address@hidden:/home/mithrandir/price/temp/gettext-0.14.5/gettext-runtime
>/intl-java>ls -l `which java` lrwxrwxrwx 1 root root 29 Jan
> 19 2005
> /usr/local/bin/java -> /usr/local/j2re1.4.2/bin/java*
javacomp.sh also calls the "javac" command. Do you have this installed
as well? Also maybe the libgcj-java-placeholder.sh script comes
earlier in the PATH than /usr/local/bin.
Bruno
- Re: javacomp.sh error on "make",
Bruno Haible <=