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
Could not load module /usr/lib/libc.a on AIX #12
Comments
Can you help us modify this to search properly for shared objects on AIX? |
Sure, I can submit a pull request sometime before the end of the week. |
I should have mentioned, the #14 changes have a dependency on the jnr/jnr-ffi#60 changes. |
With these PRs, do you consider this issue resolved? We probably should also make this change for https://github.com/jnr/jnr-posix. |
Yes this specific issue is resolved. There is still another problem with startup on AIX 32-bit but it appears to be related to jruby/jruby#3495 (comment), so I will post some comments there. |
On AIX using JRuby v9.0.4 on a 32bit JVM, JRuby fails to start up because it is unable to load /usr/lib/libc.a. The following is the full stack trace.
The cause of the problem is line 64 in jnr/enxio/channels/Native.java
This ends up calling dlopen(..) with "/usr/lib/libc.a.". On AIX the correct way to do this is "/usr/lib/libc.a(shr.o)" for 32bit and "/usr/lib/libc.a(shr_64.o)" for 64bit.
I tried this on AIX6.1 and AIX7.1 using 32-bit IBM Java8 JDK.
The text was updated successfully, but these errors were encountered: