Public bug reported:

If you run
$ objdump -x /usr/lib/jni/libglibjni-0.4.so | grep NEEDED
  NEEDED      libglib-2.0.so.0
  NEEDED      libc.so.6

A practical example (from running azureus when the required modules have been 
fixed) is:
  java.lang.UnsatisfiedLinkError: /usr/lib/jni/libglibjni-0.4.so: 
/usr/lib/jni/libglibjni-0.4.so: undefined symbol: g_type_depth

Steps which add libgobject to the requirements:
1. Add the following lines to configure.ac
PKG_CHECK_MODULES(GOBJECT, gobject-2.0 >= 2.11.0)
AC_SUBST(GOBJECT_CFLAGS)
AC_SUBST(GOBJECT_LIBS)

2. Run autoconf
3. Add $(GOBJECT_CFLAGS) to AM_CFLAGS in Makefile.am
4. Add $GOBJECT_LIBS) to libglibjni_la_LDFLAGS in Makefile.am
5. Copy the existing aclocal.m4 to a file in the macros/ directory.
5. Run automake

After this, building the package results in a more correct library:
$ objdump -x /usr/lib/jni/libglibjni-0.4.so | grep NEEDED
  NEEDED      libgobject-2.0.so.0
  NEEDED      libglib-2.0.so.0
  NEEDED      libc.so.6

Now azureus gets further in running:
  java.lang.UnsatisfiedLinkError: gtk_icon_theme_get_default

... showing that this problem, at least, has been fixed.

** Affects: glib-java (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
libglibjni-0.4.so should depend on libgobject
https://launchpad.net/bugs/64718

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to