2 messages in net.java.dev.jna.usersRe: [jna-users] GLIBC_2.4 and libjnid...
FromSent OnAttachments
Vito IngrassiaJul 24, 2007 8:51 am 
Timothy WallJul 24, 2007 10:06 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] GLIBC_2.4 and libjnidispatchActions...
From:Timothy Wall (twal@dev.java.net)
Date:Jul 24, 2007 10:06:52 am
List:net.java.dev.jna.users

On Jul 24, 2007, at 11:52 AM, Vito Ingrassia wrote:

Hello,

I'm porting my JNA application from Windows to Linux but I get the following exception:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/ jna29132.so: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /tmp/jna29132.so)

the library is required from jnidispatch as ldd reveals:

[jmsfeeders@test-feeder build]$ ldd libjnidispatch.so ./libjnidispatch.so: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by ./libjnidispatch.so) /etc/libcwait.so (0x00868000) libc.so.6 => /lib/tls/libc.so.6 (0x003db000) /lib/ld-linux.so.2 (0x001df000)

My linux version is: 2.6.9-42.ELsmp (gcc version 3.4.6 20060404 (Red Hat 3.4.6-2)

Now, as a confused Linux newbie, my question is: what's glibc_2.4 and why is not in my system? Does it depend on the gnu compiler version or the os version? How can I fix the problem?

GLIBC_2.4 refers to libc.so.6; it's the version of the C library. Check to see if /usr/lib/libc.so exists on your system (usually it's a symlink to /usr/lib/libc.so.6).

If you build libjnidispatch.so yourself, how does the "ldd" output differ?