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 629631 - gobject-introspection-0.9.5 fails to build without Cairo installed or if --disable-tests
gobject-introspection-0.9.5 fails to build without Cairo installed or if --di...
Status: RESOLVED DUPLICATE of bug 629359
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-09-14 09:54 UTC by Simon Geard
Modified: 2015-02-07 16:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Simon Geard 2010-09-14 09:54:07 UTC
As of commit 456a79cb1d3fee93a3e6e1af9ef2948b0866bdd3 (Remove GIMarshallingTests, rename Everything to Regress), the --disable-tests flag is broken.

The contents of the tests/scanner directory are built regardless of whether the flag is given, and if it *is* given (or if Cairo is missing), it fails with an error like the following:


make[4]: Entering directory `/root/_build/gobject-introspection-0.9.5/tests/scanner'
  GISCAN Regress-1.0.gir
./.libs/libregress.so: undefined reference to `cairo_get_target'
./.libs/libregress.so: undefined reference to `cairo_create'
./.libs/libregress.so: undefined reference to `cairo_image_surface_get_format'
./.libs/libregress.so: undefined reference to `cairo_image_surface_get_height'
./.libs/libregress.so: undefined reference to `cairo_image_surface_get_width'
./.libs/libregress.so: undefined reference to `cairo_image_surface_create'
collect2: ld returned 1 exit status
Traceback (most recent call last):
  • File "../../tools/g-ir-scanner", line 45 in <module>
    sys.exit(scanner_main(sys.argv))
  • File "/root/_build/gobject-introspection-0.9.5/giscanner/scannermain.py", line 337 in scanner_main
    gdump_parser.get_get_type_functions())
  • File "/root/_build/gobject-introspection-0.9.5/giscanner/dumper.py", line 246 in compile_introspection_binary
    return dc.run()
  • File "/root/_build/gobject-introspection-0.9.5/giscanner/dumper.py", line 132 in run
    self._link(bin_path, o_path)
  • File "/root/_build/gobject-introspection-0.9.5/giscanner/dumper.py", line 241 in _link
    subprocess.check_call(args)
  • File "/usr/lib/python2.7/subprocess.py", line 504 in check_call
    raise CalledProcessError(retcode, cmd)
ubprocess.CalledProcessError: Command '['/bin/sh', '../../libtool', '--mode=link', '--tag=CC', '--silent', 'gcc', '-o', '/root/_build/gobject-introspection-0.9.5/tests/scanner/tmp-introspectgBszwo/Regress-1.0', '-fno-strict-aliasing', '-Wsign-compare', '-Wcast-align', '-Wpointer-arith', '-Wnested-externs', '-Wmissing-prototypes', '-Wmissing-declarations', '-Wchar-subscripts', '-Wall', '-O2', '-march=native', '-L.', 'libregress.la', '../../girepository/libgirepository-1.0.la', '-pthread', '-lgio-2.0', '-lgobject-2.0', '-lgmodule-2.0', '-lgthread-2.0', '-lrt', '-lglib-2.0', '/root/_build/gobject-introspection-0.9.5/tests/scanner/tmp-introspectgBszwo/Regress-1.0.o']' returned non-zero exit status 1
make[4]: *** [Regress-1.0.gir] Error 1
make[4]: Leaving directory `/root/_build/gobject-introspection-0.9.5/tests/scanner'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/_build/gobject-introspection-0.9.5/tests'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/_build/gobject-introspection-0.9.5/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/_build/gobject-introspection-0.9.5'
make: *** [all] Error 2
Comment 1 Colin Walters 2010-09-14 16:55:35 UTC

*** This bug has been marked as a duplicate of bug 629359 ***
Comment 2 André Klapper 2015-02-07 16:49:55 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]