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 666647 - babl: can't build introspection support
babl: can't build introspection support
Status: RESOLVED FIXED
Product: GEGL
Classification: Other
Component: babl
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Default Gegl Component Owner
Default Gegl Component Owner
Depends on:
Blocks: 645822
 
 
Reported: 2011-12-21 13:39 UTC by Vincent Untz
Modified: 2012-04-05 15:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix building for .gir and .typelib files (1.21 KB, patch)
2012-01-10 16:39 UTC, Dominique Leuenberger
none Details | Review

Description Vincent Untz 2011-12-21 13:39:23 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
Comment 1 Dominique Leuenberger 2012-01-10 16:39:16 UTC
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
Comment 2 André Klapper 2012-02-14 09:25:52 UTC
[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.]
Comment 3 Øyvind Kolås (pippin) 2012-04-05 15:25:32 UTC
*** Bug 673580 has been marked as a duplicate of this bug. ***
Comment 4 Øyvind Kolås (pippin) 2012-04-05 15:27:53 UTC
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.
Comment 5 Vincent Untz 2012-04-05 15:40:39 UTC
(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.
Comment 6 Øyvind Kolås (pippin) 2012-04-05 15:56:22 UTC
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.