Comments (10)
[deleted comment]
from java-simple-serial-connector.
Same problem on CentOS 5.9
2013-05-11 08:28:05,012 [main] INFO
net.dfware.asterisk.cdr2serial.Cdr2SerialConf - Serial to use: /dev/ttyUSB0
9600,8,1,none
Exception in thread "main" java.lang.UnsatisfiedLinkError:
/root/.jssc/linux/libjSSC-2.5_x86_64.so: /lib64/libc.so.6: version `GLIBC_2.15'
not found (required by /root/.jssc/linux/libjSSC-2.5_x86_64.so)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
at java.lang.Runtime.load0(Runtime.java:792)
at java.lang.System.load(System.java:1059)
at jssc.SerialNativeInterface.<clinit>(SerialNativeInterface.java:159)
at jssc.SerialPortList.<clinit>(SerialPortList.java:43)
at net.dfware.asterisk.cdr2serial.SerialUtil.exist(SerialUtil.java:16)
at net.dfware.asterisk.cdr2serial.Main.init(Main.java:55)
at net.dfware.asterisk.cdr2serial.Main.main(Main.java:36)
Original comment by [email protected]
on 11 May 2013 at 6:31
from java-simple-serial-connector.
Yes, jSSC-2.5.0 builded with GCC-4.6 on Xubuntu-12.04 and use glibc-2.15. In
this situation the simplest and correct way is to recompile native libs. You
can do it by these strings:
g++ -m32 -O3 -s -I/usr/local/java/jdk1.6.0_45/include
-I/usr/local/java/jdk1.6.0_45/include/linux -fPIC jssc.cpp -shared -o
libjSSC-2.5_x86.so
g++ -m64 -O3 -s -I/usr/local/java/jdk1.6.0_45/include
-I/usr/local/java/jdk1.6.0_45/include/linux -fPIC jssc.cpp -shared -o
libjSSC-2.5_x86_64.so
As I see it could be a frequently problem, I will rebuild jSSC in a few days.
Original comment by [email protected]
on 11 May 2013 at 7:09
from java-simple-serial-connector.
[deleted comment]
from java-simple-serial-connector.
You recompiled jSSC native lib, or place other version of glibc into
~/.jssc/linux ?
Original comment by [email protected]
on 11 May 2013 at 12:00
from java-simple-serial-connector.
I have recompiled jSSC native lib and put it into ~/.jssc/linux. Sorry for my
poor English.
I ask you if I must remove native libs from jar for avoiding conflits.
Original comment by [email protected]
on 11 May 2013 at 2:37
from java-simple-serial-connector.
No, you don't, jSSC check native lib in ~/.jssc/linux and load it if find. You
can just replace original Linux native 2.5 lib in jSSC.jar archive by lib that
you compiled.
Original comment by [email protected]
on 11 May 2013 at 3:20
from java-simple-serial-connector.
We recompiled the native lib as instructed and it works perfectly. Thanks!
Original comment by [email protected]
on 13 May 2013 at 2:16
from java-simple-serial-connector.
PS. We are using openJDK and it compiled without a problem once we found the
right include path.
Original comment by [email protected]
on 13 May 2013 at 2:17
from java-simple-serial-connector.
Fixed in 2.6.0 The new jSSC-2.6.0 version builded with Ubuntu 10.04 and don't
depends GLIBC-2.15
Original comment by [email protected]
on 1 Jun 2013 at 11:50
- Changed state: Fixed
from java-simple-serial-connector.
Related Issues (20)
- From 2nd time onwards weight reading not working in linux
- Hundreds of wakeups per second wastes lots of power on small host system even with idle port (no datat flow)
- SerialPort should allow for method that return Inpu/Outputstream HOT 1
- Raspberry Pi serial over usb adapter reads data only once (Watchport/H sensor) using jssc 2.8.0.0
- Two java application is opening the same port
- Always port busy on 32 bit system
- EventThread is never terminated
- Ubuntu return an empty serial list HOT 2
- readBytes() wrong when get second message
- jssc stops working after a while on windows 7 HOT 1
- Driver won't work with real COM1 port
- High CPU load using jssc HOT 1
- SerialPortTimeoutException trown while result shows it returned correct value and amount of bytes HOT 1
- Unable to load on Minibian, Raspberry Pi 1 B HOT 3
- JVM terminates with signal 6 (abort) after several hours of use
- Stuck on waitEvents() method forever when no data is available
- Set Timeout and Port disconnect throw exception HOT 1
- Trouble getting reader to return text using readByte() HOT 1
- SerialPortEventListener returns invalid type
- In Windows 10 SOMETIMES (casually 2 or 3 times on 5) receive signal is NOT raised
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-simple-serial-connector.