[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#150142: gcj-3.1: gcj-wrapper-3.1 problem with -classpath



Package: gcj-3.1
Version: 1:3.1.1-0pre2
Severity: normal

Hi.  The script gcj-wrapper-3.1 claims to translate javac options to gcj
options (at least according to its manpage).  However, the option -classpath
is passed to gcj unchanged at which point gcj-3.1 fails to recognise it
(although gcj-3.0 recognised it IIRC).

  bab@espresso:/tmp> gcj-wrapper-3.1 -classpath /tmp test.java
  gcj-3.1: unrecognized option `-classpath=/tmp'

Looking inside /usr/bin/gcj-wrapper-3.1 we see:

  case "$arg" in
  -classpath|-encoding|-bootclasspath|-extdirs)

So it seems gcj-wrapper-3.1 *thinks* gcj-3.1 is supposed to understand
it.  Furthermore gcj-wrapper-3.1 does not seem to mention option
--classpath which is what gcj-3.1 actually requires instead of -classpath.

This actually makes using gcj-wrapper-3.1 as a wrapper vaguely
compatible with the Sun/Blackdown javac somewhat frustrating since
Sun/Blackdown doesn't understand --classpath and gcj-wrapper-3.1 doesn't
understand -classpath.

Thanks - Ben.

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux espresso 2.4.18-686 #1 Sun Apr 14 11:32:47 EST 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages gcj-3.1 depends on:
ii  gcc-3.1                    1:3.1.1-0pre2 The GNU C compiler.
ii  gcc-3.1-base               1:3.1.1-0pre2 The GNU Compiler Collection (base 
ii  java-common                0.14          Base of all Java packages
ii  libc6                      2.2.5-6       GNU C Library: Shared libraries an
ii  libgcc1                    1:3.1.1-0pre2 GCC support library.
ii  libgcj3                    1:3.1.1-0pre2 Java runtime library for use with 
ii  libgcj3-dev                1:3.1.1-0pre2 Java development headers and stati
ii  zlib1g                     1:1.1.4-1     compression library - runtime

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-gcc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: