GNOME Bugzilla – Bug 730201
some over-linking in the oFono backend
Last modified: 2014-05-17 10:29:02 UTC
libfolks 0.9.6 with the oFono backend I have a small vala program compiled with: valac -o foo --pkg folks --pkg glib-2.0 foo.vala It fails with the following error: (process:4018): GLib-GObject-WARNING **: cannot register existing type 'FolksSmallSet' (process:4018): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed Philip advised me to try the following commit: https://git.gnome.org/browse/folks/commit/?id=d9a38f5fa4c0c7c4ea131f76b90dc0f3bc208cb6 But it makes the compilation fail: ofono-persona.vala:42.11-42.37: error: The type name `SmallSet' could not be found
+ Trace 233605
It actually is in all backends: $ nm -D /usr/lib/i386-linux-gnu/folks/41/backends/ofono/ofono.so |grep folks_small_set_get_type 0000d230 T folks_small_set_get_type $ nm -D /usr/lib/i386-linux-gnu/libfolks.so.25|grep folks_small_set_get_type 00055b90 T folks_small_set_get_type $ nm -D /usr/lib/i386-linux-gnu/folks/41/backends/telepathy/telepathy.so |grep folks_small_set_get_type 00004200 T folks_small_set_get_type $ nm -D /usr/lib/i386-linux-gnu/folks/41/backends/key-file/key-file.so |grep folks_small_set_get_type 0000db80 T folks_small_set_get_type Fixed with the following patches: http://cgit.collabora.com/git/user/alban/folks.git/log/?h=over-linking-bug730201 And then my program does not crash anymore :)
Alban, that patch looks good. Please apply and close this bug.
Committed on git master. Marked as resolved-fixed. commit ef541513345aa2c83bd207cd2f38f23125cdf3eb Author: Alban Crequy <alban.crequy@collabora.co.uk> Date: Thu May 15 17:59:15 2014 +0100 build: fix over-linking in backends https://bugzilla.gnome.org/show_bug.cgi?id=730201 commit 96814b8699c917743b663c3928769ff8e4a86603 Author: Alban Crequy <alban.crequy@collabora.co.uk> Date: Thu May 15 17:58:46 2014 +0100 Revert "build: Remove some over-linking in the oFono backend" This reverts commit d9a38f5fa4c0c7c4ea131f76b90dc0f3bc208cb6.