GNOME Bugzilla – Bug 596224
[build] OpenBSD support
Last modified: 2015-02-07 16:56:16 UTC
gobject-introspection 0.6.5 does not compile on OpenBSD. It bails out with the following error: Making all in gir gmake[2]: Entering directory `/usr/obj/ports/gobject-introspection-0.6.5/gobject-introspection-0.6.5/gir' GEN GLib-2.0.gir *** Warning: inferring the mode of operation is deprecated. *** Future versions of Libtool will require --mode=MODE be specified. libtool: warning: cannot infer operation mode without MODE-ARGS libtool: you must specify a MODE Try `libtool --help' for more information. Traceback (most recent call last):
+ Trace 217814
sys.exit(scanner_main(sys.argv))
glibtransformer.get_get_type_functions())
return dc.run()
self._link(bin_path, o_path)
subprocess.check_call(args)
raise CalledProcessError(retcode, cmd)
gmake[2]: *** [GLib-2.0.gir] Error 1 gmake[2]: Leaving directory `/usr/obj/ports/gobject-introspection-0.6.5/gobject-introspection-0.6.5/gir' It seems the $(LIBTOOL) variable in the GLib-2.0.gir and related .gir targets isn't correct. OpenBSD installs a libtool in /usr/local/bin/ , but this one is not uses by gobject-introspection. Eventhough it's passed as an environment variable to configure and make (as a flag to make as well). So, replacing the $(LIBTOOL) variable with a full path to /usr/local/bin/libtool fixes the issue for me. Although a more general solution is desired I think. This issue also applies to tests/scanner/Makefile.in .
I think the solution for your is to run configure like this LIBTOOL=/usr/local/bin ./configure ... Which will probably solve building on your system.
Nope, unfortunatly that didn't fix the build for me.
I had the same problem today however when using the LIBTOOL= setting pointing to the one the gnome build-process built I got it to build correctly.
Nope it worked but it seems to have been a fluke ... however when I build it outside of the jhbuild mechanism I get it to compile correctly on slackware64. strange.
I thought this came up in another bug, but anyways: '['/usr/local/bin/libtool', '', ... ] The '' is clearly a problem. Where is it coming from?
marking as NEEDINFO, even if it's been >2 years since the last comment.
I think we can close this ticket actually; I haven't had any problems with GoI on OpenBSD for a while now and we have 1.36.0 working fine.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]