

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
12 messages in net.java.dev.jna.usersRE: RE: [jna-users] Example not runni...| From | Sent On | Attachments |
|---|---|---|
| Steve Ramage | May 13, 2008 4:24 pm | |
| Timothy Wall | May 13, 2008 5:05 pm | |
| Steve Ramage | May 14, 2008 10:28 am | |
| Steve Ramage | May 14, 2008 10:36 am | |
| Timothy Wall | May 14, 2008 10:47 am | |
| Timothy Wall | May 14, 2008 10:56 am | |
| Steve Ramage | May 14, 2008 11:35 am | |
| Timothy Wall | May 14, 2008 12:00 pm | |
| Steve Ramage | May 14, 2008 1:51 pm | |
| Steve Ramage | May 14, 2008 3:53 pm | |
| Steve Ramage | May 14, 2008 6:03 pm | |
| Timothy Wall | May 19, 2008 7:43 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | RE: RE: [jna-users] Example not running on Solaris 9 x86. | Actions... |
|---|---|---|
| From: | Steve Ramage (qoox...@steve.ipapp.com) | |
| Date: | May 14, 2008 1:51:11 pm | |
| List: | net.java.dev.jna.users | |
Our Solaris 10 is SPARC, and our Solaris 9 is x86 so I cannot build between them.
It looks like we are using: We are using Gnu C++: g++ (GCC) 4.0.3 Solaris: ld: Software Generation Utilities - Solaris Link Editors: 5.9-1.393 Solaris as: as: Sun Compiler Common 9.0 Patch 115114-02 2004/02/09
As far as I can tell the Solaris 9 x86 version of as has no ability to silence errors? Finally it looks like the newer versions of libc are available for the system via Solaris but we aren't willing to upgrade. It seems that the specific version isn't really necessary for the libjnidispatch.so is it? Is there some way I could just remove the specific version requirement, or am I stuck having to use JNI directly?
Steve Ramage Software Developer IP Applications Solutions Inc Email: qoox...@steve.ipapp.com
-- Original Message -- On May 14, 2008, at 2:36 PM, Steve Ramage wrote:
/com/sun/jna/sunos-x86$ldd libjnidispatch.so warning: ldd: libjnidispatch.so: is not executable libc.so.1 => /usr/lib/libc.so.1 libc.so.1 (SUNW_1.22) => (version not found) libdl.so.1 => /usr/lib/libdl.so.1
I'm just guessing, but it looks like a versioning symbol is included in the solaris 10 build, and the symbol is not found on a solaris 9 system. Presumably a build on solaris 9 would not include this versioning symbol.
You should be able to fix the solaris 9 build by ensuring GAS is in the path prior to the solaris assembler; alternatively, build sysv.o on solaris 10 and copy it over.
I assume it's the last one, um? (The other Solaris 10 Sparc has this for an output:
There's a native library per platform.
_____
From: Steve Ramage [mailto:qoox...@steve.ipapp.com] Sent: Wednesday, May 14, 2008 11:36 AM To: 'use...@jna.dev.java.net' Subject: RE: [jna-users] Example not running on Solaris 9 x86.
There seem to be several libjnidispatch.so available.
/com/sun/jna/sunos-sparc$ldd libjnidispatch.so ldd: libjnidispatch.so: has wrong class or data encoding
/com/sun/jna/sunos-sparcv9$ldd libjnidispatch.so ldd: libjnidispatch.so: has wrong class or data encoding
/com/sun/jna/sunos-x86$ldd libjnidispatch.so warning: ldd: libjnidispatch.so: is not executable libc.so.1 => /usr/lib/libc.so.1 libc.so.1 (SUNW_1.22) => (version not found) libdl.so.1 => /usr/lib/libdl.so.1
I assume it's the last one, um? (The other Solaris 10 Sparc has this for an output:
/com/sun/jna/sunos-sparc$ldd libjnidispatch.so warning: ldd: libjnidispatch.so: is not executable libc.so.1 => /usr/lib/libc.so.1 libm.so.2 => /usr/lib/libm.so.2 /platform/SUNW,Ultra-80/lib/libc_psr.so.1
--- Original Message --- On May 14, 2008, at 1:28 PM, Steve Ramage wrote:
Do I need the sunos-x86.jar file: from the download page: JWS- packaged native jnidispatch library for solaris/x86.
Also is there a way to what the file is trying to link too, I can never catch the file existing? The error suggests that it can't find the libc not that it's not the right version, because /usr/lib/ libc.so.1 does exist. In fact java loads it earlier actually.
sunos-x86.jar contains the same libjnidispatch.so that is in jna.jar. it's packaged separately as an example of how to package platform- specific web start distros.
you should be able to run ldd on libjnidispatch.so extracted from jna.jar to see what the dependencies look like. I wouldn't think there's anything that specifically depends on stuff in glibc, but it's always possible something minor slipped in or was used inadvertently.
asking java to load libc.so is different from the dynamic linker loading it as a dependency.
Steve Ramage Software Developer IP Applications Solutions Inc Email: qoox...@steve.ipapp.com







