Giter Club home page Giter Club logo

Comments (10)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
[deleted comment]

from java-simple-serial-connector.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
[deleted comment]

from java-simple-serial-connector.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.