GNOME Bugzilla – Bug 625995
Undefined references when building introspection test libfoo.la
Last modified: 2015-02-07 16:53:35 UTC
export LDFLAGS="-Wl,--as-needed -Wl,--no-undefined" <snip> CCLD libfoo.la .libs/foo.o: In function `foo_sub_interface_class_init': /tmp/gobject-introspection/BUILD/gobject-introspection-0.9.3/tests/scanner/./foo.c:109: undefined reference to `gi_cclosure_marshal_generic' collect2: ld returned 1 exit status Please add following line into tests/scanner/Makefile.am: libfoo_la_LIBADD = $(top_builddir)/girepository/libgirepository-1.0.la
Patches as separate attachments are more welcome as they are shown in the summary pages of products and other overviews in Bugzilla.
The following fix has been pushed: 15edabf [tests] Link libfoo against girepository
Created attachment 169543 [details] [review] [tests] Link libfoo against girepository To avoid undefined references to gi_cclosure_marshal_generic Fixes
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]