[Libguestfs] nbdkit build broken
Richard W.M. Jones
rjones at redhat.com
Wed Aug 8 09:59:18 UTC 2018
On Wed, Aug 08, 2018 at 01:34:01AM +0300, Nir Soffer wrote:
> Looks like commit 05a8c47b9be8a6b8ffc091eab461fece9d40dcd0
> (tests: Test all calls through multiple layers of filters and a plugin.)
> introduced an issue.
>
> $ git clean -dxf && autoreconf -i && ./configure && make
> ...
> in.Tpo -c -o test_layers_plugin_la-test-layers-plugin.lo `test -f
> 'test-layers-plugin.c' || echo './'`test-layers-plugin.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT
> test_layers_plugin_la-test-layers-plugin.lo -MD -MP -MF
> .deps/test_layers_plugin_la-test-layers-plugin.Tpo -c test-layers-plugin.c
> -fPIC -DPIC -o .libs/test_layers_plugin_la-test-layers-plugin.o
> test-layers-plugin.c: In function ‘test_layers_plugin_can_fua’:
> test-layers-plugin.c:137:10: error: ‘NBDKIT_FUA_NATIVE’ undeclared (first
> use in this function); did you mean ‘NBDKIT_CXX_LANG_C’?
> return NBDKIT_FUA_NATIVE;
> ^~~~~~~~~~~~~~~~~
> NBDKIT_CXX_LANG_C
> test-layers-plugin.c:137:10: note: each undeclared identifier is reported
> only once for each function it appears in
Actually I wonder if the #include <nbdkit-plugin.h> from
tests/test-layers-plugin.c might be trying to include the global copy
of that header from /usr/include. I'll try some experiments ...
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
More information about the Libguestfs
mailing list