[Sablevm-developer] Re: Bug#164363: libsablevm-native1: UnsatisfiedLinkError when using AWT
Brought to you by:
egagnon
From: Toby S. <str...@gm...> - 2002-10-14 10:58:07
|
0> In article <103...@gr...>, 0> Grzegorz Prokopski <URL:mailto:gr...@se...> ("Grzegorz") wrote: Grzegorz> W li=B6cie z pi=B1, 11-10-2002, godz. 21:43, Toby Speight = pisze: >> /-------- >> | loading gtkpeer >> | java.lang.UnsatisfiedLinkError: Could not load library = /usr/lib/sablevm/libgnu-java-awt-peer-gtk-1.0.1.so >> | at java.lang.Runtime.load(Runtime.java:633) >> | at java.lang.Runtime.loadLibrary(Runtime.java:656) >> | at java.lang.System.loadLibrary(System.java:620) >> | at gnu.java.awt.peer.gtk.GtkToolkit.static{}(GtkToolkit.java:74) >> | ... >> \-------- Grzegorz> Strange - why do I see 1.0.1 in above error (and 1.0.4 is Grzegorz> mentioned as the "Version:")? I cut-and-pasted from the wrong place (whilst investigating, Google turned up your message at [1], and I accidentally copied from there rather than from my shell buffer). I did indeed see 1.0.4 in the error message. Sorry for causing confusion. [1] = <URL:http://sourceforge.net/mailarchive/forum.php?thread_id=3D999972&for= um_id=3D4154> >> I enclose a patch that adds the right dependencies (works for me). Grzegorz> The more strange is why this didn't work and why your change Grzegorz> fixes it. Are you sure that "just rebuilding" doesn't solve Grzegorz> the problem? Yes, I am sure that simply rebuilding doesn't solve it - that was the first thing I tried. With the current 1.0.4, the GTK AWT library doesn't refer to the libraries that provide GTK: /-------- | .../sablevm-nativelib-1.0.4$ ldd = debian/libsablevm-native1/usr/lib/sablevm/libgnu-java-awt-peer-gtk.so | libc.so.6 =3D> /lib/libc.so.6 (0x4001d000) | /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x80000000) \-------- With my patch, the GTK and GThread libraries are (dynamically) linked in to satisfy dependencies on gdk_threads_mutex, gdk_root_window, gthread_init, etc.: /-------- | .../sablevm-nativelib-1.0.4-tms$ ldd = debian/libsablevm-native1/usr/lib/sablevm/libgnu-java-awt-peer-gtk.so | libgtk-1.2.so.0 =3D> /usr/lib/libgtk-1.2.so.0 (0x4001d000) | libgdk-1.2.so.0 =3D> /usr/lib/libgdk-1.2.so.0 (0x40142000) | libgmodule-1.2.so.0 =3D> /usr/lib/libgmodule-1.2.so.0 = (0x40175000) | libgthread-1.2.so.0 =3D> /usr/lib/libgthread-1.2.so.0 = (0x40178000) | libglib-1.2.so.0 =3D> /usr/lib/libglib-1.2.so.0 (0x4017b000) | libpthread.so.0 =3D> /lib/libpthread.so.0 (0x4019d000) | libdl.so.2 =3D> /lib/libdl.so.2 (0x401b2000) | libXi.so.6 =3D> /usr/X11R6/lib/libXi.so.6 (0x401b5000) | libXext.so.6 =3D> /usr/X11R6/lib/libXext.so.6 (0x401bd000) | libX11.so.6 =3D> /usr/X11R6/lib/libX11.so.6 (0x401ca000) | libm.so.6 =3D> /lib/libm.so.6 (0x40284000) | libc.so.6 =3D> /lib/libc.so.6 (0x402a5000) | /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x80000000) \-------- I arrived at my patch initially by adding the libraries one at a time to Makefile each time I discovered an unresolved symbol, but luckily I remembered the existence of gtk-config before moving the fix to Makefile.in. Grzegorz> I think it won't solve it (even if the versions were equal) Grzegorz> and you experience the same thing as this: Grzegorz> = http://sourceforge.net/mailarchive/forum.php?thread_id=3D999972&forum_id= =3D4154 Yes, that's exactly the issue this patch solves. :-) Grzegorz> PS: I am Cc:ing SableVM devel for eventuall comments. I'm not on this list, so any questions, etc., for me should be CCed to = me (or to <16...@bu...> which I will check very infrequently). N.B. - don't follow-up to <su...@bu...>! |