After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 626280 - Introspection support doesn't build with --as-needed
Introspection support doesn't build with --as-needed
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-08-06 21:55 UTC by Vincent Untz
Modified: 2015-02-07 16:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vincent Untz 2010-08-06 21:55:55 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):
  • File "/usr/bin/g-ir-scanner", line 38 in <module>
    sys.exit(scanner_main(sys.argv))
  • File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line 330 in scanner_main
    glibtransformer.get_get_type_functions())
  • File "/usr/lib/gobject-introspection/giscanner/dumper.py", line 246 in compile_introspection_binary
    return dc.run()
  • File "/usr/lib/gobject-introspection/giscanner/dumper.py", line 132 in run
    self._link(bin_path, o_path)
  • File "/usr/lib/gobject-introspection/giscanner/dumper.py", line 241 in _link
    subprocess.check_call(args)
  • File "/usr/lib/python2.6/subprocess.py", line 498 in check_call
    raise CalledProcessError(retcode, cmd)
ubprocess.CalledProcessError: Command '['gcc', '-o', '/usr/src/packages/BUILD/dconf-0.5/client/tmp-introspectSfETmh/dconf-0.3', '-fomit-frame-pointer', '-fmessage-length=0', '-O2', '-Wall', '-D_FORTIFY_SOURCE=2', '-fstack-protector', '-funwind-tables', '-fasynchronous-unwind-tables', '-L.', '-Wl,-rpath=.', '-Wl,--export-dynamic', '-pthread', '-lgirepository-1.0', '-lffi', '-lgobject-2.0', '-lgmodule-2.0', '-lgthread-2.0', '-lrt', '-lglib-2.0', '-ldconf', '-pthread', '-Wl,--export-dynamic', '-lgio-2.0', '-lgirepository-1.0', '-lffi', '-lgobject-2.0', '-lgmodule-2.0', '-lgthread-2.0', '-lrt', '-lglib-2.0', '/usr/src/packages/BUILD/dconf-0.5/client/tmp-introspectSfETmh/dconf-0.3.o']' returned non-zero exit status 1
make[1]: *** [dconf-0.3.gir] Error 1
Comment 1 Allison Karlitskaya (desrt) 2010-08-08 15:31:15 UTC
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...
Comment 2 Vincent Untz 2011-07-27 10:44:43 UTC
Works fine now...
Comment 3 André Klapper 2015-02-07 16:47:48 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]