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

Release musl compatible binaries #152

Open
pires opened this issue Jun 8, 2016 · 8 comments
Open

Release musl compatible binaries #152

pires opened this issue Jun 8, 2016 · 8 comments
Milestone

Comments

@pires
Copy link

pires commented Jun 8, 2016

For the ones using Alpine Linux, it would be great to be have musl compatible binaries.

@ejona86
Copy link
Member

ejona86 commented Jun 8, 2016

We didn't confirm that glibc vs musl was the problem, but it seems likely and only debug logging will provide more information.

@Scottmitch
Copy link
Member

related to #111

@ejona86
Copy link
Member

ejona86 commented Jun 8, 2016

I confirmed the problem was due to missing glibc. It is a musl vs glibc problem.

java.lang.UnsatisfiedLinkError: /tmp/libnetty-tcnative-linux-x86_641722850980897813599.so: Error loading shared library libcrypt.so.1: No such file or directory (needed by /tmp/libnetty-tcnative-linux-x86_641722850980897813599.so)

And then after a hack:

java.lang.UnsatisfiedLinkError: /tmp/libnetty-tcnative-linux-x86_64410176636862150824.so: Error relocating /tmp/libnetty-tcnative-linux-x86_64410176636862150824.so: pthread_mutex_consistent_np: symbol not found

Compiling on Alpine would probably be necessary.

@pires
Copy link
Author

pires commented Jun 8, 2016

@dimitarg thanks to your work I've automated the build of binaries for Alpine with Docker.
To whomever needs this, feel free to use and abuse.

@ejona86 thank you very much for your support. Without you I'd take ages to get this going, if ever.

@ejona86
Copy link
Member

ejona86 commented Jun 8, 2016

And for posterity and those not familiar with java logging, this is the config I used to get debug log output (named log.properties):

handlers = java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = ALL
io.netty.util.internal.NativeLibraryLoader.level = ALL

And then specified -Djava.util.logging.config.file=log.properties when running java.

@nmittler
Copy link
Member

nmittler commented Jun 8, 2016

@ejona86 would you mind adding that to the tcnative wiki?

@normanmaurer
Copy link
Member

@ejona86 ^^

@normanmaurer normanmaurer modified the milestone: 2.0.0.Final Feb 1, 2017
@anuraaga
Copy link

anuraaga commented Mar 1, 2017

Sorry to spam - came across this issue while looking up info related to alpine linux, and wondering if it could be closed as a duplicate of #111? They seem to be the same issue, and #111 has progressed further it seems.

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

6 participants