[Rxtx] Difficulty with --disable-lockfiles and RedHat
Trent Jarvi
tjarvi at qbang.org
Fri Aug 11 18:58:31 MDT 2006
On Wed, 9 Aug 2006, Jim Owen wrote:
> Hi All,
>
> I've run into some difficulties with rxtx that have me baffled and need
> some help.
>
> I have an application that has used earlier versions of rxtx
> successfully and on a variety of platforms. We recently needed to deploy
> this application into an environment where we could not utilize lock files.
>
> I pulled down the 2.0.7 pre1 source distribution and executed configure
> with --disable-lockfiles. I then executed make and make install.
>
> When I execute the program, as root, I get the following error:
>
> ************************************************************************
> Verifying Comm Build Environment
> Devel Library
> =========================================
> Native lib Version = RXTX-2.0-7pre1
> Java lib Version = RXTX-2.0-7pre1
> #
> # An unexpected error has been detected by HotSpot Virtual Machine:
> #
> # SIGSEGV (0xb) at pc=0x00001004, pid=20151, tid=3086030528
> #
> # Java VM: Java HotSpot(TM) Client VM (1.4.2_11-b06 mixed mode)
> # Problematic frame:
> # C 0x00001004
> #
> # An error report file with more information is saved as hs_err_pid20151.log
> #
> # If you would like to submit a bug report, please visit:
> # http://java.sun.com/webapps/bugreport/crash.jsp
> #
> ****************************************************************************
>
> If I execute as a normal user, I get no errors, but no ports listed:
> (Using an earlier version, I get a serial and parallel port listed.)
>
> ****************************************************************************
> [jim at linuxDev ingenicoApp]$ java VerifyCommBuild
> Verifying Comm Build Environment
> Devel Library
> =========================================
> Native lib Version = RXTX-2.0-7pre1
> Java lib Version = RXTX-2.0-7pre1
> Some ports appear to have been found, let's try to enumerate them.
> Complete.
> ****************************************************************************
>
> When I built rxtx, there was a warning given of the following:
>
> ****************************************************************************
> conftest.c: In function 'main':
> conftest.c:6: warning: incompatible implicit declaration of built-in
> function 'printf'
> conftest.c:7: warning: incompatible implicit declaration of built-in
> function 'exit'
>
> WARNING: Kernel include files do not match the current kernel
> ****************************************************************************
>
>
> uname -a from my development system: Linux linuxDev 2.6.11-1.1369_FC4 #1
> Thu Jun 2 22:55:56 EDT 2005 i686 i686 i386 GNU/Linux
>
> JAVA_HOME=/usr/java/j2sdk1.4.2_11
>
> javax.comm.properties: Driver=gnu.io.RXTXCommDriver
>
> Here's the code for VerifyCommBuild.java that I'm using to test:
>
>
> ****************************************************************************
> import javax.comm.*;
> import java.util.Enumeration;
> /**
> * A quick app to check that the javax.comm (Serial) Communications
> extension has been properly
> * installed and configured on this machine.
> * Based on a sample app on IBM developerworks; modified by bsuter 5/2003.
> */
> public class VerifyCommBuild
> {
> public static void main(String args[])
> {
> Enumeration ports;
> System.out.println("Verifying Comm Build Environment");
> try
> {
> ports = CommPortIdentifier.getPortIdentifiers();
> if (ports == null)
> {
> System.out.println("No comm ports found!");
> return;
> }
> System.out.println("Some ports appear to have been found, let's
> try to enumerate them.");
> while (ports.hasMoreElements())
> {
> System.out.println("Here is a port [" +
> ((CommPortIdentifier)ports.nextElement()).getName()
> + "]");
> }
> } catch (Exception e)
> {
> System.out.println("Failed to enumerate ports [" +
> e.getMessage() + "]");
> e.printStackTrace();
> }
> System.out.println("Complete.");
> }
> }
>
Hi Jim
This is a new one to me.
Have you tried it on another system. Maybe something isnt sane in your
toolchain.
--
Trent Jarvi
tarvi at qbang.org
More information about the Rxtx
mailing list