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 625995 - Undefined references when building introspection test libfoo.la
Undefined references when building introspection test libfoo.la
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
2.23.x
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-08-04 05:12 UTC by Funda Wang
Modified: 2015-02-07 16:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[tests] Link libfoo against girepository (1.08 KB, patch)
2010-09-06 04:43 UTC, Johan (not receiving bugmail) Dahlin
committed Details | Review

Description Funda Wang 2010-08-04 05:12:27 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
Comment 1 André Klapper 2010-08-18 23:18:39 UTC
Patches as separate attachments are more welcome as they are shown in the summary pages of products and other overviews in Bugzilla.
Comment 2 Johan (not receiving bugmail) Dahlin 2010-09-06 04:43:49 UTC
The following fix has been pushed:
15edabf [tests] Link libfoo against girepository
Comment 3 Johan (not receiving bugmail) Dahlin 2010-09-06 04:43:54 UTC
Created attachment 169543 [details] [review]
[tests] Link libfoo against girepository

To avoid undefined references to gi_cclosure_marshal_generic

Fixes
Comment 4 André Klapper 2015-02-07 16:53:35 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]