-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fails on alpine linux #4
Comments
There must be something equivalent? I'm hoping we just need to try a different symbol name and hopefully detect that we're on musl vs glibc or similar... |
Ahh, I see what's happening here. The I was able to find man pages for A search for musl getprotobyname_r brings up many bug reports of C libraries and applications failing to build against musl, so this is a fairly widespread problem. |
So there's two solutions I can see here.
There may also be a recommended alternative to these non-reentrant versions on musl. I have not done that research yet. |
Hmm, here's the weird thing...jnr-netdb currently does do a call to getProtoByName and getProtoByNumber during the library initialization, presumably for this precise reason. So perhaps the version you tested did not have an updated jnr-netdb? I'm getting Arch set up so I can try it here. |
Ok, finally managed to get an Arch VM set up and I can confirm jnr-netdb is a little messed up there. A bunch of tests fail. They may all be the same root cause, but the errors did not all seem related. Any help you can provide here would be a big help. Check out jnr-netdb, have maven and a Java 8 JDK installed, and run "mvn install". You'll see the errors. |
Ok, so here's what I've learned.
So again the issue is not Arch (for purposes of this bug). I'll dig around and see if there's a workaround for the missing |
Arch linux does not by default define the "ip" protocol. Other platforms may have the same situation. See #4.
Actually it print stacktrace but still worked, I had bug in application. |
Oh! So it doesn't fail completely but logs that exception? That may simply be a missed Incidentally, if you can try to |
Ok, so all I could see logging that exception is a log message at level "warning". Could you or your app be setting the JVM's log level to warning or lower? |
Alpine linux don't have
getprotobyname_r
Related jruby/jruby#4408
The text was updated successfully, but these errors were encountered: