BTW, although there is nothing wrong with this patch, it doesn't seem
to completely resolve the problem. It looks like there could be
another missing dependency.
When I did:
make distclean && ./configure && make -j5
the build failed as below (not always reproducible). As you can see
'index-parse.h' is "updating" some time after it is used.
----------------------------------------------------------------------
make[2]: Leaving directory `/home/rjones/d/libguestfs/mllib'
Making all in builder
make[2]: Entering directory `/home/rjones/d/libguestfs/builder'
rm -f .depend .depend-t
ocamlfind ocamldep -I ../ocaml -I /home/rjones/d/libguestfs/builder -I ../mllib
/home/rjones/d/libguestfs/builder/downloader.mli
/home/rjones/d/libguestfs/builder/setlocale.mli
/home/rjones/d/libguestfs/builder/get_kernel.mli
/home/rjones/d/libguestfs/builder/sigchecker.mli
/home/rjones/d/libguestfs/builder/list_entries.mli
/home/rjones/d/libguestfs/builder/index_parser.mli
/home/rjones/d/libguestfs/builder/pxzcat.mli /home/rjones/d/libguestfs/builder/cmdline.ml
/home/rjones/d/libguestfs/builder/downloader.ml
/home/rjones/d/libguestfs/builder/setlocale.ml
/home/rjones/d/libguestfs/builder/get_kernel.ml
/home/rjones/d/libguestfs/builder/sigchecker.ml
/home/rjones/d/libguestfs/builder/list_entries.ml
/home/rjones/d/libguestfs/builder/index_parser.ml
/home/rjones/d/libguestfs/builder/pxzcat.ml /home/rjones/d/libguestfs/builder/builder.ml |
\
/usr/bin/sed 's/ *$//' | \
/usr/bin/sed -e :a -e '/ *\\$/N; s/ *\\\n */ /; ta' | \
/usr/bin/sed -e 's,/home/rjones/d/libguestfs/builder/,./,g' | \
sort > .depend-t
mv .depend-t .depend
make[2]: Leaving directory `/home/rjones/d/libguestfs/builder'
make[2]: Entering directory `/home/rjones/d/libguestfs/builder'
YACC index-parse.c
LEX index-scan.c
CC virt_index_validate-index-struct.o
CC virt_index_validate-index-validate.o
CC index-struct.o
ocamlfind ocamlc -g -warn-error CDEFLMPSUVYZX -package str,unix -I ../src/.libs -I
../ocaml -I ../mllib -package gettext-stub -c pxzcat.mli -o pxzcat.cmi
CC pxzcat-c.o
CC setlocale-c.o
ocamlfind ocamlc -g -warn-error CDEFLMPSUVYZX -package str,unix -I ../src/.libs -I
../ocaml -I ../mllib -package gettext-stub -c setlocale.mli -o setlocale.cmi
index-validate.c:34:25: fatal error: index-parse.h: No such file or directory
#include "index-parse.h"
^
compilation terminated.
ocamlfind ocamlc -g -warn-error CDEFLMPSUVYZX -package str,unix -I ../src/.libs -I
../ocaml -I ../mllib -package gettext-stub -c get_kernel.mli -o get_kernel.cmi
ocamlfind ocamlc -g -warn-error CDEFLMPSUVYZX -package str,unix -I ../src/.libs -I
../ocaml -I ../mllib -package gettext-stub -c downloader.mli -o downloader.cmi
ocamlfind ocamlc -g -warn-error CDEFLMPSUVYZX -package str,unix -I ../src/.libs -I
../ocaml -I ../mllib -package gettext-stub -c sigchecker.mli -o sigchecker.cmi
perl /home/rjones/d/libguestfs/podwrapper.pl \
--man virt-builder.1 \
--html ../html/virt-builder.1.html \
--license GPLv2+ \
virt-builder.pod
perl /home/rjones/d/libguestfs/podwrapper.pl \
--man virt-index-validate.1 \
--html ../html/virt-index-validate.1.html \
--license GPLv2+ \
virt-index-validate.pod
make[2]: *** [virt_index_validate-index-validate.o] Error 1
make[2]: *** Waiting for unfinished jobs....
updating index-parse.h
podwrapper.pl: wrote virt-index-validate.1
podwrapper.pl: wrote ../html/virt-index-validate.1.html
touch stamp-virt-index-validate.pod
podwrapper.pl: wrote virt-builder.1
podwrapper.pl: wrote ../html/virt-builder.1.html
touch stamp-virt-builder.pod
make[2]: Leaving directory `/home/rjones/d/libguestfs/builder'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rjones/d/libguestfs'
make: *** [all] Error 2
----------------------------------------------------------------------
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://libguestfs.org