Bug 1645856

Summary: There is a missing include, leading to a failure to use the library
Product: [Fedora] Fedora Reporter: Serge Droz <serge>
Component: rxtxAssignee: Levente Farkas <lfarkas>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 29CC: elavarde, giallu, lfarkas
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: rxtx-2.2-0.24.20100211.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-11 01:13:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Description Flags
This patch fixes the problem none

Description Serge Droz 2018-11-04 12:13:04 UTC
Created attachment 1501266 [details]
This patch fixes the problem

Description of problem:

Using the library an error is thrown:
java.lang.UnsatisfiedLinkError: /usr/lib64/rxtx/librxtxSerial-2.2pre1.so: /usr/lib64/rxtx/librxtxSerial-2.2pre1.so: undefined symbol: minor thrown while loading gnu.io.RXTXCommDriver
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: /usr/lib64/rxtx/librxtxSerial-2.2pre1.so: /usr/lib64/rxtx/librxtxSerial-2.2pre1.so: undefined symbol: minor

Version-Release number of selected component (if applicable):

How reproducible:

Every time

Steps to Reproduce:
1. Start BT747 
2. Try to connect

Actual results:


Expected results:

Connect to device

Additional info:
The bug is due to a missing include. A patch is appended. 
Essentially add to src/SerialImp.c

the line 

#include <sys/sysmacros.h>

Comment 1 Eric Lavarde 2019-01-26 17:10:20 UTC
I can confirm the issue (also using BT747). Actually, I thought that the better approach would be to package 2.2pre2 instead of 2.2pre1; this is also the version natively used by BT747.

The main problem with not being able to use Fedora's rxtx is that the version bundled with BT747 tries to get its lock in /var/lock (aka /run/lock, only writable by root) instead of /var/lock/lockdev (writable by group lock).

Comment 2 Fedora Update System 2019-08-02 14:02:19 UTC
FEDORA-2019-b336b4ee4b has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-b336b4ee4b

Comment 3 Fedora Update System 2019-08-03 00:58:21 UTC
rxtx-2.2-0.24.20100211.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-b336b4ee4b

Comment 4 Fedora Update System 2019-08-11 01:13:25 UTC
rxtx-2.2-0.24.20100211.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.