GNOME Bugzilla – Bug 626280
Introspection support doesn't build with --as-needed
Last modified: 2015-02-07 16:47:48 UTC
GISCAN dconf-0.3.gir /usr/src/packages/BUILD/dconf-0.5/client/tmp-introspectSfETmh/dconf-0.3.o: In function `main': dconf-0.3.c:(.text+0xb): undefined reference to `g_threads_got_initialized' dconf-0.3.c:(.text+0x20): undefined reference to `g_type_init' dconf-0.3.c:(.text+0x2c): undefined reference to `g_option_context_new' dconf-0.3.c:(.text+0x46): undefined reference to `g_option_context_add_main_entries' dconf-0.3.c:(.text+0x4b): undefined reference to `g_irepository_get_option_group' dconf-0.3.c:(.text+0x57): undefined reference to `g_option_context_add_group' dconf-0.3.c:(.text+0x75): undefined reference to `g_option_context_parse' dconf-0.3.c:(.text+0xa1): undefined reference to `g_printerr' dconf-0.3.c:(.text+0xc0): undefined reference to `g_thread_init' /usr/src/packages/BUILD/dconf-0.5/client/tmp-introspectSfETmh/dconf-0.3.o:(.data+0x0): undefined reference to `dconf_client_get_type' collect2: ld returned 1 exit status Traceback (most recent call last):
+ Trace 223146
sys.exit(scanner_main(sys.argv))
glibtransformer.get_get_type_functions())
return dc.run()
self._link(bin_path, o_path)
subprocess.check_call(args)
raise CalledProcessError(retcode, cmd)
make[1]: *** [dconf-0.3.gir] Error 1
I'm fairly certain that this is a gobject-introspection bug. If the scanner is using glib, it should be explicitly linking it. I'll work around it in dconf for now, though...
Works fine now...
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]