[kaffe] Problem building librxtx with kaffe

Russell Kliese russell at eminence.com.au
Sat Jun 4 04:17:50 PDT 2005


Just thought I'd ask the kaffe list if they might be able to spot an
obvious problem with the following librxtx build.  I've CC's the
debian-java because this problem has been posted as bug 301364.
Here is the output from the build that I think is important:

======================================================================
make[1]: Entering directory `/tmp/rxtx/rxtx-2.1.6'
if test ! -d i686-pc-linux-gnu;then  mkdir i686-pc-linux-gnu;fi;
/usr/lib/kaffe/bin/javac -classpath
.:/tmp/rxtx/rxtx-2.1.6:/tmp/rxtx/rxtx-2.1.6/src: -d /tmp/rxtx/rxtx-2.1.6/
-O /tmp/rxtx/rxtx-2.1.6/src/CommDriver.java
/tmp/rxtx/rxtx-2.1.6/src/CommPortEnumerator.java
/tmp/rxtx/rxtx-2.1.6/src/CommPortIdentifier.java
/tmp/rxtx/rxtx-2.1.6/src/CommPort.java
/tmp/rxtx/rxtx-2.1.6/src/CommPortOwnershipListener.java
/tmp/rxtx/rxtx-2.1.6/src/Configure.java /tmp/rxtx/rxtx-2.1.6/src/I2C.java
/tmp/rxtx/rxtx-2.1.6/src/I2CPortEvent.java
/tmp/rxtx/rxtx-2.1.6/src/I2CPortEventListener.java
/tmp/rxtx/rxtx-2.1.6/src/I2CPort.java
/tmp/rxtx/rxtx-2.1.6/src/LPRPort.java
/tmp/rxtx/rxtx-2.1.6/src/NoSuchPortException.java
/tmp/rxtx/rxtx-2.1.6/src/ParallelPortEvent.java
/tmp/rxtx/rxtx-2.1.6/src/ParallelPortEventListener.java
/tmp/rxtx/rxtx-2.1.6/src/ParallelPort.java
/tmp/rxtx/rxtx-2.1.6/src/PortInUseException.java
/tmp/rxtx/rxtx-2.1.6/src/Raw.java
/tmp/rxtx/rxtx-2.1.6/src/RawPortEvent.java
/tmp/rxtx/rxtx-2.1.6/src/RawPortEventListener.java
/tmp/rxtx/rxtx-2.1.6/src/RawPort.java /tmp/rxtx/rxtx-2.1.6/src/RS485.java
/tmp/rxtx/rxtx-2.1.6/src/RS485PortEvent.java
/tmp/rxtx/rxtx-2.1.6/src/RS485PortEventListener.java
/tmp/rxtx/rxtx-2.1.6/src/RS485Port.java /tmp/rxtx/rxtx-2.1.6/src/RXTXCommDriver.java
 /tmp/rxtx/rxtx-2.1.6/src/RXTXPort.java
 /tmp/rxtx/rxtx-2.1.6/src/RXTXVersion.java
 /tmp/rxtx/rxtx-2.1.6/src/SerialPortEvent.java
 /tmp/rxtx/rxtx-2.1.6/src/SerialPortEventListener.java
 /tmp/rxtx/rxtx-2.1.6/src/SerialPort.java
 /tmp/rxtx/rxtx-2.1.6/src/UnsupportedCommOperationException.java
Issued 1 semantic warning compiling "/tmp/rxtx/rxtx-2.1.6/src/CommPort.java":

    67.                                
    cp.getPortIdentifier(this).internalClosePort();                                        ^------------------^
*** Semantic Warning: Invoking the class method "getPortIdentifier" via an
instance is discouraged because the method invoked will be the one in the
variable's declared type, not the instance's dynamic type.

Found 3 semantic errors compiling
"/tmp/rxtx/rxtx-2.1.6/src/CommPortIdentifier.java":
   312.                 throws gnu.io.PortInUseException
                                   ^^
*** Semantic Error: You need to modify your classpath, sourcepath,
bootclasspath, and/or extdirs setup. Jikes could not find package "gnu.io"
in:                /usr/lib/kaffe/pthreads/jre/lib/rt.jar
                .
                /tmp/rxtx/rxtx-2.1.6
                /tmp/rxtx/rxtx-2.1.6/src
                .



   329.                         throw new
   gnu.io.PortInUseException(getCurrentOwner());                                              ^^
*** Semantic Error: You need to modify your classpath, sourcepath,
bootclasspath, and/or extdirs setup. Jikes could not find package "gnu.io"
in:                /usr/lib/kaffe/pthreads/jre/lib/rt.jar
                .
                /tmp/rxtx/rxtx-2.1.6
                /tmp/rxtx/rxtx-2.1.6/src
                .



   344.                         throw new gnu.io.PortInUseException(
                                              ^^
*** Semantic Error: You need to modify your classpath, sourcepath,
bootclasspath, and/or extdirs setup. Jikes could not find package "gnu.io"
in:                /usr/lib/kaffe/pthreads/jre/lib/rt.jar
                .
                /tmp/rxtx/rxtx-2.1.6
                /tmp/rxtx/rxtx-2.1.6/src
                .

make[1]: *** [/tmp/rxtx/rxtx-2.1.6/gnu/io/CommDriver.class] Error 1
make[1]: Leaving directory `/tmp/rxtx/rxtx-2.1.6'
======================================================================

To me it looks like the compiler can't find the gnu.io.PortInUseException
class but the file exists:
/tmp/rxtx/rxtx-2.1.6/gnu/io/PortInUseException.class
Any ideas?  Please don't tell me I've done something obviously silly ;)
Let me know if you need more info.
Cheers,

Russell Kliese








More information about the kaffe mailing list