Skip to content
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

jansi 1.12 fails on Alpine Linux #58

Closed
rhuss opened this issue Jun 17, 2016 · 4 comments
Closed

jansi 1.12 fails on Alpine Linux #58

rhuss opened this issue Jun 17, 2016 · 4 comments

Comments

@rhuss
Copy link

rhuss commented Jun 17, 2016

Caused by: java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no jansi64-1.12 in java.library.path, no jansi-1.12 in java.library.path, no jansi in java.library.path, /tmp/libjansi-64-1-7763420971930555451.12: Error relocating /tmp/libjansi-64-1-7763420971930555451.12: ttyslot: symbol not found]
    at org.fusesource.hawtjni.runtime.Library.doLoad(Library.java:182)
    at org.fusesource.hawtjni.runtime.Library.load(Library.java:140)
    at org.fusesource.jansi.internal.CLibrary.<clinit>(CLibrary.java:42)
    at org.fusesource.jansi.AnsiConsole.wrapOutputStream(AnsiConsole.java:48)

Seem that the symbol "ttyslot" that is referred in the shared lib which is missing on Alpine Linux which does not use libc but musl.

jansi 1.11 works without problems.

If would be nice if jansi would be supported on Alpine as well since this distro is often used in a base Docker image.

@michael-o
Copy link
Contributor

You need to fix Jansi native for that.

emetsger added a commit to emetsger/apix-docker-test that referenced this issue Sep 27, 2016
- use new base image
- upgrade to Karaf 4.0.5 (4.0.6 is broken on Alpine fusesource/jansi#58)
- update Karaf binary download URL
- comment out feature repo updates for now
emetsger added a commit to emetsger/apix-docker-test that referenced this issue Sep 27, 2016
- Use Ubuntu instead of Alpine; glibc will allow use of Karaf > 4.0.5 due to a jansi-native glibc dependence (fusesource/jansi#58)
- Update comments, remove cruft
birkland added a commit to birkland/fcrepo-api-x-demo that referenced this issue Nov 30, 2016
Base off non-alpine openjdk base imaages; smallest alpine images
are incompatible with Karaf, due to
fusesource/jansi#58
birkland added a commit to birkland/fcrepo-api-x-demo that referenced this issue Nov 30, 2016
Base off non-alpine openjdk base imaages; smallest alpine images
are incompatible with Karaf, due to
fusesource/jansi#58
birkland added a commit to fcrepo4-labs/fcrepo-api-x-demo that referenced this issue Nov 30, 2016
Base off non-alpine openjdk base imaages; smallest alpine images
are incompatible with Karaf, due to
fusesource/jansi#58
Aaron1011 added a commit to Aaron1011/jansi-native that referenced this issue Jan 23, 2017
@bdw429s
Copy link

bdw429s commented May 3, 2017

So I see this ticket was closed with a flurry of references to other tickets, but I don't see what the resolution was. Is this fixed, and if so, in what version? Thx.

@gnodet
Copy link
Member

gnodet commented May 3, 2017

The ttyslot method has been removed a few weeks ago.
I haven't released jansi 1.16 yet, but I'm working on it.

@bdw429s
Copy link

bdw429s commented May 3, 2017

Thank you @gnodet, looking forward to the release. Cc/ @jclausen

birkland added a commit to birkland/fcrepo-api-x-demo that referenced this issue Jun 12, 2017
Between the release of Alpine 4.0.9 and the release of Alpine 3.6, the tty
issue with jansi that prevented Karaf from running on Alpine has been
resolved.
fusesource/jansi#58

* Upgrade from Karaf 4.0.7 to 4.0.9
* Use latest openjdk alpine image for karaf
* Minor clean ups of Dockerfiles
emetsger pushed a commit to fcrepo4-labs/fcrepo-api-x-demo that referenced this issue Jun 13, 2017
Between the release of Alpine 4.0.9 and the release of Alpine 3.6, the tty
issue with jansi that prevented Karaf from running on Alpine has been
resolved.
fusesource/jansi#58

* Upgrade from Karaf 4.0.7 to 4.0.9
* Use latest openjdk alpine image for karaf
* Minor clean ups of Dockerfiles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants