GNOME Bugzilla – Bug 662648
gcr introspection fails due to missing g-i command flags
Last modified: 2019-02-22 11:57:37 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
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) \
Bummer. Colin said that bit wasn't necessary, but I don't really care either way. Thanks for the fix. Committed.