GNOME Bugzilla – Bug 629631
gobject-introspection-0.9.5 fails to build without Cairo installed or if --disable-tests
Last modified: 2015-02-07 16:49:55 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):
+ Trace 223714
sys.exit(scanner_main(sys.argv))
gdump_parser.get_get_type_functions())
return dc.run()
self._link(bin_path, o_path)
subprocess.check_call(args)
raise CalledProcessError(retcode, cmd)
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
*** This bug has been marked as a duplicate of bug 629359 ***
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]