Subject: problems with 'getpwuid_r' when running Java
To: None <netbsd-users@netbsd.org>
From: Steve Bellovin <smb@research.att.com>
List: netbsd-users
Date: 05/24/2002 16:38:04
When I try to run some Java applications, I get a message about
getpwuid_r not being found:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/pkg/java/jre/lib/i386/libawt.so: /usr/X11R6/lib/libX11.so.6: symbol getpwuid_r, version GLIBC_2.1.2 not defined in file libc.so.6 with link time reference
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1419)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1335)
        at java.lang.Runtime.loadLibrary0(Runtime.java:749)
        at java.lang.System.loadLibrary(System.java:820)
        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:53)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:41)
        at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
        at java.awt.Component.<clinit>(Component.java:356)

I suspect that the problem has to do with the Linux emulation, since
the actual Java interpreter is for Linux, and I recently updated my suse_base
package.  I've tried reinstalling jre; it didn't help.  (For what it's
worth, this problem is on a different machine than the one on which I've
had other pkgsrc problems.)