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 662648 - gcr introspection fails due to missing g-i command flags
gcr introspection fails due to missing g-i command flags
Status: RESOLVED FIXED
Product: gcr
Classification: Core
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: GNOME keyring maintainer(s)
GNOME keyring maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-10-25 01:08 UTC by Travis Reitter
Modified: 2019-02-22 11:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix most of the g-i compiler/scanner errors (there's still a problem finding config.h for some reason) (2.09 KB, patch)
2011-10-25 01:08 UTC, Travis Reitter
none Details | Review

Description Travis Reitter 2011-10-25 01:08:48 UTC
Created attachment 199879 [details] [review]
Fix most of the g-i compiler/scanner errors (there's still a problem finding config.h for some reason)

GCR fails to create Gcr-3.gir because it's missing a handful of g-i flags:

./.libs/libgcr-base-3.so: undefined reference to `gck_error_get_quark'
./.libs/libgcr-3.so: undefined reference to `gck_attributes_set_string'
./.libs/libgcr-3.so: undefined reference to `gck_password_get_token'
./.libs/libgcr-base-3.so: undefined reference to `gck_slot_match'
./.libs/libgcr-base-3.so: undefined reference to `gck_list_get_boxed_type'
./.libs/libgcr-base-3.so: undefined reference to `gck_slot_set_interaction'
./.libs/libgcr-3.so: undefined reference to `gck_password_get_type'
./.libs/libgcr-base-3.so: undefined reference to `gck_attributes_set_boolean'
collect2: ld returned 1 exit status
linking of temporary binary failed: Command '['/bin/bash', '../libtool', '--mode=link', '--tag=CC', 'gcc', '-o', '/home/treitter/checkout/gnome/gcr/gcr/tmp-introspect69h3M9/Gcr-3', '-export-dynamic', '-L.', 'libgcr-base-3.la', 'libgcr-3.la', '-pthread', '-L/opt/gnome/lib64', '-lgthread-2.0', '-lgtk-3', '-lgdk-3', '-latk-1.0', '-lgio-2.0', '-lpangoft2-1.0', '-lpangocairo-1.0', '-lgdk_pixbuf-2.0', '-lcairo-gobject', '-lcairo', '-lpango-1.0', '-lfreetype', '-lfontconfig', '-lgobject-2.0', '-lgmodule-2.0', '-lrt', '-lglib-2.0', '-lp11-kit', '/home/treitter/checkout/gnome/gcr/gcr/tmp-introspect69h3M9/Gcr-3.o']' returned non-zero exit status 1
Comment 1 Matthias Clasen 2011-10-29 16:03:41 UTC
This one was sufficient for me to get it to build on my build slave:

--- a/gcr/Makefile.am
+++ b/gcr/Makefile.am
@@ -303,6 +303,7 @@ INTROSPECTION_GIRS = Gcr-@GCR_MAJOR@.gir
 INTROSPECTION_SCANNER_ARGS = \
        $(INTROSPECTION_FLAGS) \
        --warn-all \
+       --add-include-path=$(top_builddir)/gck  \
        --include-uninstalled=$(top_builddir)/gck/Gck-@GCK_MAJOR@.gir
 INTROSPECTION_COMPILER_ARGS = \
        --includedir=$(srcdir) \
Comment 2 Stef Walter 2011-10-30 19:46:57 UTC
Bummer. Colin said that bit wasn't necessary, but I don't really care either way.

Thanks for the fix. Committed.