Please drop g_thread_init() call, causing build failure

Bug #903095 reported by Martin Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntuone-client-gnome
Status tracked in Trunk
Stable-3-0
Fix Released
Undecided
Unassigned
Trunk
Fix Released
High
Martin Pitt
ubuntuone-client-gnome (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

g_thread_init() has been deprecated since glib 2.24, and removed from glib 2.31. You should only call g_type_init() now.

This causes build failure. The current precise package (2.0.1) fails with

test_contacts_picker-test-contacts-picker.o: In function `main':
/home/martin/ubuntu/tmp/ubuntuone-client-gnome-2.0.1/nautilus/test-contacts-picker.c:75: undefined reference to `g_thread_init'
collect2: ld returned 1 exit status

and trunk fails with

make[2]: Entering directory `/home/martin/upstream/ubuntuone-client-gnome/nautilus'
  CC libnautilus_ubuntuone_la-ubuntuone-marshallers.lo
  CC libnautilus_ubuntuone_la-ubuntuone-nautilus.lo
  CC test_contacts_picker-test-contacts-picker.o
  CC test_contacts_picker-contacts-view.o
  CC test_contacts_picker-highlight.o
test-contacts-picker.c: In function 'main':
test-contacts-picker.c:75:2: error: 'g_thread_init' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:259) [-Werror=deprecated-declarations]
cc1: all warnings being treated as errors

Related branches

Martin Pitt (pitti)
Changed in ubuntuone-client-gnome (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntuone-client-gnome - 2.0.1-0ubuntu3

---------------
ubuntuone-client-gnome (2.0.1-0ubuntu3) precise; urgency=low

  * Add 02_deprecated_g_thread_init.patch: Fix FTBFS with glib 2.31.
    (LP: #903095)
  * Rebuild against libnautilus-extension1a.
 -- Martin Pitt <email address hidden> Mon, 12 Dec 2011 09:58:32 +0100

Changed in ubuntuone-client-gnome (Ubuntu):
status: In Progress → Fix Released
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.