Don't worry about the registerMethod failure on libm; just make a note why the test isn't appropriate for AIX.
I replaced the jar and receive now
java.lang.UnsatisfiedLinkError: Unable to load library 'RoadRunner': 0509-022 Cannot load module .
0509-026 System error: A file or directory in the path name does not exist.
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:169)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:242)
at com.sun.jna.Library$Handler.<init>(Library.java:140)
at com.sun.jna.Native.loadLibrary(Native.java:368)
Is it related to the issue that it searches for .a instead of .so?
By convention, AIX has its lib named as libxyz.a
So if your original lib name is libxyz.a, just specify “xyz” as lib name
If your original lib is something other than this convention, say RoadRunner.so
Then use “RoadRunner.so” as lib name in your program
I think Tim has already answered on this mail.
Below is the remarks I wrote when submitted the AIX port for validation by Tim.
>The port has been made with GCC v4.6.2 on AIX 6.1 PowerPC.
>Both aix-ppc and aix-ppc64 have been generated.
>All JUNIT test runs successfully, except DirectTest.registerMethod(),
>because the standard /usr/libm.a is a static library.
>You can install GCC libmpc.so.2 for AIX, and use it instead of libm.a, if
>you want to run this test.
From: jna-...@googlegroups.com [mailto:jna-...@googlegroups.com]
On Behalf Of Pavel
Sent: Tuesday, May 01, 2012 1:57 PM
To: jna-...@googlegroups.com
Subject: Re: JNA on PPC32/PPC64 AIX6.1: port complete
I'm building now on AIX using the last JNA version from github (not your port, but the major version - I see that you merged your changes).