[Libguestfs] Build and testing issues

Richard W.M. Jones rjones at redhat.com
Mon Jun 25 07:43:49 UTC 2018


On Sun, Jun 24, 2018 at 07:44:21PM +0300, Nir Soffer wrote:
> While setting up a development environment on a clean Fedora 28 host,
> I got some errors.
> 
> I followed the instructions in
> http://libguestfs.org/guestfs-building.1.html
> 
>     dnf builddep libguestfs
>     ./autogen.sh
> 
> autogen.sh failed:
> 
> ./configure: line 57694: syntax error near unexpected token `external'
> ./configure: line 57694: `AM_GNU_GETTEXT(external)'

This happens because the build dependencies of the libguestfs package
don't include autoconf, automake, libtool, gettext or gettext-devel.
These are not required to build from the tarball.

So you'll need to do:

  dnf install autoconf automake libtool gettext-devel

I'll update the docs.

> After fixing the first issue I found that jansson-devel is also missing.

This happens because libguestfs 1.39 switched to using jansson instead
of the deprecated yajl library.  However this dependency is not needed
for 1.38 so it's not included in the Fedora spec file yet.

> Should'nt we add these packages to the build requirements?
> 
> Next issues - trying to test upload to ovirt, I found that these
> packages should be installed:
> 
> nbdkit
> nbdkit-plugin-python3
> python3-ovirt-engine-sdk4
> 
> Should we document these requirements in the rhv-upload-plugin?

We're going to add these as dependencies soon, but note that
-o rhv-upload is also not included in 1.38.  It's a new 1.39+ feature,
so same problem as above.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org




More information about the Libguestfs mailing list