libglibjni-0.4.so should depend on libgobject

Bug #64718 reported by Gary Coady
4
Affects Status Importance Assigned to Milestone
glib-java (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

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.

Revision history for this message
Gary Coady (garycoady) wrote :

The original bug in azureus is bug 57875. While working out how to fix that, it seems that azureus will work even if this bug isn't fixed (other required libraries already have a DT_NEEDED dependency on libgobject-2.0).
So this doesn't need to be fixed for that java package, but I'd still consider it a bug.

Revision history for this message
Gary Coady (garycoady) wrote :

Fixed upstream (on September 17), but no new version available yet. Upstream patch was linked in GNOME bugzilla at http://bugzilla.gnome.org/show_bug.cgi?id=350091

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Thanks in advance.

Changed in glib-java:
status: New → Incomplete
Revision history for this message
Ryan Kavanagh (ryanakca) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in glib-java:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.