pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkgsrc openjdk7 and eclipse and suse-12 does not work



Hi,

I had never much luck with running Eclipse on NetBSD. Now I tried it with
openjdk7 and all suse-12 packages under NetBSD/i386 6.0. All software,
including eclipse, is from pkgsrc-2012Q3 (I patched the eclipse Makefile
to accept openjdk7). Still no success.

When running eclipse I get an error window and the following output in
the log file:

---8<---
!SESSION Nov 16, 2012 11:10:50.112 ---------------------------------------------
eclipse.buildId=200409161125
java.version=1.7.0-internal
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=motif, NL=en

!ENTRY org.eclipse.osgi Nov 16, 2012 11:10:50.114
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: 
/usr/pkg/eclipse/plugins/org.eclipse.swt.motif_3.0.1/os/linux/x86/libswt-motif-3063.so:
 Shared object "libX11.so.6" not found
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1928)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1838)
        at java.lang.Runtime.loadLibrary0(Runtime.java:845)
        at java.lang.System.loadLibrary(System.java:1084)
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:100)
        at org.eclipse.swt.internal.motif.OS.<clinit>(OS.java:20)
        at org.eclipse.swt.graphics.Device.<clinit>(Device.java:89)
        at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:268)
        at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:153)
        at 
org.eclipse.ui.internal.ide.IDEApplication.createDisplay(IDEApplication.java:122)
        at 
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:72)
        at 
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
        at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
        at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
        at org.eclipse.core.launcher.Main.run(Main.java:704)
        at org.eclipse.core.launcher.Main.main(Main.java:688)
---8<---

I have no idea why libX11.so.6 is not found. It is present in
/emul/linux/usr/lib/ and the Linux-emulation ldd shows no problem in
libswt-motif-3063.so:

-bash-4.2$ /emul/linux/usr/bin/ldd 
/usr/pkg/eclipse/plugins/org.eclipse.swt.motif_3.0.1/os/linux/x86/libswt-motif-3063.so
 
        libXm.so.2 => ./libXm.so.2 (0xbba1d000)
        libX11.so.6 => /usr/lib/libX11.so.6 (0xbb8dc000)
        libm.so.6 => /lib/libm.so.6 (0xbb8b1000)
        libXext.so.6 => /usr/lib/libXext.so.6 (0xbb89f000)
        libXt.so.6 => /usr/lib/libXt.so.6 (0xbb841000)
        libXp.so.6 => /usr/lib/libXp.so.6 (0xbb836000)
        libdl.so.2 => /lib/libdl.so.2 (0xbb831000)
        libXtst.so.6 => /usr/lib/libXtst.so.6 (0xbb82a000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xbb821000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xbb806000)
        libc.so.6 => /lib/libc.so.6 (0xbb699000)
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xbb678000)
        /lib/ld-linux.so.2 (0x00001000)
        libXau.so.6 => /usr/lib/libXau.so.6 (0xbb674000)
        libuuid.so.1 => /lib/libuuid.so.1 (0xbb66e000)

Any idea?

-- 
Frank Wille


Home | Main Index | Thread Index | Old Index