GNOME Bugzilla – Bug 666647
babl: can't build introspection support
Last modified: 2012-04-05 15:59:24 UTC
I'm trying to build introspection support with babl 1.6.0 and I get this: /usr/bin/g-ir-scanner -v --namespace Babl --nsversion=0.1 \ --add-include-path=. --add-include-path=. \ --library=babl-0.1 \ --libtool="/bin/sh ../libtool" \ --output Babl-0.1.gir \ -DBABL_IS_BEING_COMPILED \ -I.. \ -I.. \ ./babl-macros.h ./babl-types.h ./babl.h \ ./babl-version.h \ ./babl.c ./babl-component.c ./babl-conversion.c ./babl-core.c ./babl-db.c ./babl-extension.c ./babl-fish-path.c ./babl-fish-reference.c ./babl-fish-simple.c ./babl-fish-stats.c ./babl-fish.c ./babl-format.c ./babl-hash-table.c ./babl-image.c ./babl-internal.c ./babl-introspect.c ./babl-list.c ./babl-memory.c ./babl-model.c ./babl-mutex.c ./babl-sampling.c ./babl-sanity.c ./babl-type.c ./babl-util.c ./babl-cpuaccel.c ./babl-version.c CCLD libbabl-0.1.la Must specify package names on the command line g-ir-scanner: compile: gcc -Wall -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -I.. -I.. -c -o /home/abuild/rpmbuild/BUILD/babl-0.1.6/babl/tmp-introspect8zTnJ2/Babl-0.1.o /home/abuild/rpmbuild/BUILD/babl-0.1.6/babl/tmp-introspect8zTnJ2/Babl-0.1.c g-ir-scanner: link: /bin/sh ../libtool --mode=link --tag=CC gcc -o /home/abuild/rpmbuild/BUILD/babl-0.1.6/babl/tmp-introspect8zTnJ2/Babl-0.1 -export-dynamic -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition /home/abuild/rpmbuild/BUILD/babl-0.1.6/babl/tmp-introspect8zTnJ2/Babl-0.1.o -L. -lbabl-0.1 -pthread -Wl,--export-dynamic -lgio-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lrt -lglib-2.0 libtool: link: gcc -o /home/abuild/rpmbuild/BUILD/babl-0.1.6/babl/tmp-introspect8zTnJ2/.libs/Babl-0.1 -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition /home/abuild/rpmbuild/BUILD/babl-0.1.6/babl/tmp-introspect8zTnJ2/Babl-0.1.o -pthread -Wl,--export-dynamic -Wl,--export-dynamic -L. /home/abuild/rpmbuild/BUILD/babl-0.1.6/babl/.libs/libbabl-0.1.so -lgio-2.0 -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lrt -lglib-2.0 -pthread ERROR: can't resolve libraries to shared libraries: babl-0.1
Created attachment 204955 [details] [review] Fix building for .gir and .typelib files g-ir-scanner --library needs to either get a library (.so.x) or a libtool archive as parameter to identify the correct libraries. The patch attached fixes the issue and changes the build to reference the .la file (resulting in a correct dependency on the .typelib pointing to libbabl-0.1.so.0
[Setting QA Contact to 'bugs at gegl.org' so people interested in following GEGL bug reports' changes can still follow if the assignee changes to a real person.]
*** Bug 673580 has been marked as a duplicate of this bug. ***
Building with introspection is currently disabled by default for both babl and GEGL, the scanner is segfaulting when scanning the babl headers. The segfaulting bug is neither a babl nor GEGL bug though... bugs for GIR should be filed instead.
(In reply to comment #4) > Building with introspection is currently disabled by default for both babl and > GEGL, the scanner is segfaulting when scanning the babl headers. The > segfaulting bug is neither a babl nor GEGL bug though... bugs for GIR should be > filed instead. Well, the patch here is very specific and not related to the current build failure. It's very much something we wanted already before introspection stopped building.
OK, applying the patch as is, and closing the bug. commit c024c89f95de4a8fa95ba96790dac61768d11a17 Author: Dominique Leuenberger <dimstar@opensuse.org> Date: Tue Jan 10 17:32:50 2012 +0100 gobject-introspection: fix build of the .gir and .typelib files.