-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jni provider fails on linux #896
Comments
So it looks to be |
Not sure to understand, is the problem with the JNI provider or the JNA provider ? Or are those two different problems ? |
I'm a bit rusty with this jni stuff so give me some rope here. Looks like when this jline3/terminal-jni/src/main/java/org/jline/terminal/impl/jni/linux/LinuxNativePty.java Lines 46 to 51 in bf698ba
doesn't work. Looking ldd:
I don't see it linking to
before build then the error goes away. |
Quickest way to see this in JLine itself is to force
In my issue above I used custom streams(for doing testing), so it ended up calling: jline3/terminal/src/main/java/org/jline/terminal/TerminalBuilder.java Lines 485 to 486 in bf698ba
|
Sorry for the delay. The thing I'm wondering about, is how to change the makefile so that the libraries are linked with |
You may need to load required libraries explicitly whenever you use Linker.nativeLinker() . Linker.defaultLookup() behaves differently depending on architecture, I dont think it is reliable. |
I'm still debugging this issue on my side but I wanted to throw this out here if it immediately rings a bell.
When trying to use
3.24.1
I'm getting into trouble with tests(where I don't have a proper tty). I getjni
andexec
and thenjni
fails withnewTerminal
withIf I run my cli in a real terminal and attach debugger, I have
jni
,jansi
,jna
andexec
butjni
doesn't fail withsysTerminal
and I getPosixSysTerminal
.I'm on
Ubuntu 18.04.6 LTS
in this system.The text was updated successfully, but these errors were encountered: