Hi-

The configure and configure.in files for comm/rxtx are broken when using
java/jdk16. Two patches, below, fix this problem. The actual credit for
figuring this out belongs to netbeans at gatworks.com. I just created 
patches to fix the issue.

Unpatched, the port does not indicate an error, but the installation fails
(no files installed). If installed by hand at this point, programs using 
rxtx fail due to:

java.lang.UnsatisfiedLinkError: 
gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String; thrown while loading 
gnu.io.RXTXCommDriver

--- Zach

*** configure+  Mon Sep  8 14:22:44 2008
--- configure   Mon Sep  8 14:23:16 2008
***************
*** 21611,21617 ****
        TARGETLIB="\$(target_triplet)/librxtxSerial.la \
                        \$(target_triplet)/librxtxParallel.la"
        case $JAVA_VERSION in
!       1.2*|1.3*|1.4*|1.5*)
                #fix_parameters $JPATH/jre/lib/javax.comm.properties
                CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name 
RXTXcomm.jar |head -n1`
                RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
--- 21611,21617 ----
        TARGETLIB="\$(target_triplet)/librxtxSerial.la \
                        \$(target_triplet)/librxtxParallel.la"
        case $JAVA_VERSION in
!       1.2*|1.3*|1.4*|1.5*|1.6*)
                #fix_parameters $JPATH/jre/lib/javax.comm.properties
                CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name 
RXTXcomm.jar |head -n1`
                RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"

*** configure.in+       Mon Sep  8 14:22:51 2008
--- configure.in        Mon Sep  8 14:23:25 2008
***************
*** 533,539 ****
        TARGETLIB="\$(target_triplet)/librxtxSerial.la \
                        \$(target_triplet)/librxtxParallel.la"
        case $JAVA_VERSION in
!       1.2*|1.3*|1.4*|1.5*) 
                #fix_parameters $JPATH/jre/lib/javax.comm.properties
                CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name 
RXTXcomm.jar |head -n1`
                RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
--- 533,539 ----
        TARGETLIB="\$(target_triplet)/librxtxSerial.la \
                        \$(target_triplet)/librxtxParallel.la"
        case $JAVA_VERSION in
!       1.2*|1.3*|1.4*|1.5*|1.6*) 
                #fix_parameters $JPATH/jre/lib/javax.comm.properties
                CLASSPATH=".:\$(TOP):\$(TOP)/src:"`find $JPATH/ -name 
RXTXcomm.jar |head -n1`
                RXTX_PATH="\$(JPATH)/jre/lib/\$(OS_ARCH)"
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to