Subject: pkg/12764: blackdown JDK on PPC needs libXm.so.2
To: None <gnats-bugs@gnats.netbsd.org>
From: None <cagney@tpgi.com.au>
List: netbsd-bugs
Date: 04/26/2001 18:00:41
>Number:         12764
>Category:       pkg
>Synopsis:       blackdown JDK on PPC needs libXm.so.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 26 18:01:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Cagney
>Release:        NetBSD 1.5U Tue Apr 24
>Organization:
>Environment:
NetBSD localhost 1.5U NetBSD 1.5U (NETLUX) #0: Tue Apr 24 10:56:24 EDT 2001     boor@localhost:/usr/src/trunk/sys/arch/macppc/compile/NETLUX macppc
A very current pkgsrc.

>Description:
When trying to run the blackdown JDK, on NetBSD/MacPPC it fails.
Uable to find the shared library libXm.so.2.

Blackdown jdk was installed using the package system.  I guess
libXm.so.2 is missing from the linuxppc_lib package.

--

Other notes:

In ``how to repeat'' the error message ``expr: syntax error'' appears.
That is from the command `expr .java_wrapper : /` failing on
NetBSD (and solaris 2.5.1 for that matter) but works on some
of the other `expr` variants.

--

$ find /usr/pkg/emul/linux -name 'libXm.so.2*' -print



>How-To-Repeat:
sh
$ PATH=\
> /usr/pkg/java/bin:$PATH
$ export PATH
$ CLASSPATH=\
> /usr/pkg/java/lib/classes.zip:\
> /usr/pkg/lib/java/swingall.jar:
$ export CLASSPATH
$ cd /usr/pkg/java/demo/jdk/Notepad
cd: can't cd to /usr/pkg/java/demo/jdk/Notepad
$ cd /usr/pkg/java/demo/jfc/Notepad/
$ java -jar Notepad.jar
expr: syntax error
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/pkg/java/jre/lib/ppc/libawt.so: libXm.so.2: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1298)
        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)

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: