Olaf Hering
2012-Oct-19 13:09 UTC
[Libguestfs] building resize fails due to lack of Unix module
Building 1.9.53 fails for me with ocaml 3.10.2 and 3.12.1, likely due to commit a0722c7ad846960be54978a31ebe73b76e119203: [ 318s] ocamlfind ocamlopt -g -warn-error CDEFLMPSUVYZX -package str -I ../src/.libs -I ../ocaml \ [ 318s] mlguestfs.cmxa -linkpkg ../fish/guestfish-progress.o progress-c.o resize_gettext.cmx resize_utils.cmx progress.cmx resize.cmx -cclib -lncurses -o virt-resize [ 318s] No implementations provided for the following modules: [ 318s] Unix referenced from progress.cmx [ 318s] make[2]: *** [virt-resize] Error 2 [ 318s] make[2]: Leaving directory `/usr/src/packages/BUILD/libguestfs-1.19.53/resize' I'm not sure where Unix is supposed to come from, the Printf files exist: bax:~> rpm -ql ocaml | grep -iw unix /usr/lib64/ocaml/unix.a /usr/lib64/ocaml/unix.cma /usr/lib64/ocaml/unix.cmi /usr/lib64/ocaml/unix.cmx /usr/lib64/ocaml/unix.cmxa /usr/lib64/ocaml/unix.mli /usr/lib64/ocaml/vmthreads/unix.cma bax:~> rpm -ql ocaml | grep -iw printf /usr/lib64/ocaml/printf.cmi /usr/lib64/ocaml/printf.cmx /usr/lib64/ocaml/printf.ml /usr/lib64/ocaml/printf.mli /usr/lib64/ocaml/printf.p.cmx bax:~> Is the ocaml.rpm built or packaged incorrectly? Olaf
Richard W.M. Jones
2012-Oct-22 11:21 UTC
[Libguestfs] building resize fails due to lack of Unix module
On Fri, Oct 19, 2012 at 03:09:12PM +0200, Olaf Hering wrote:> > Building 1.9.53 fails for me with ocaml 3.10.2 and 3.12.1, likely due to > commit a0722c7ad846960be54978a31ebe73b76e119203: > > [ 318s] ocamlfind ocamlopt -g -warn-error CDEFLMPSUVYZX -package str -I ../src/.libs -I ../ocaml \ > [ 318s] mlguestfs.cmxa -linkpkg ../fish/guestfish-progress.o progress-c.o resize_gettext.cmx resize_utils.cmx progress.cmx resize.cmx -cclib -lncurses -o virt-resize > [ 318s] No implementations provided for the following modules: > [ 318s] Unix referenced from progress.cmx > [ 318s] make[2]: *** [virt-resize] Error 2 > [ 318s] make[2]: Leaving directory `/usr/src/packages/BUILD/libguestfs-1.19.53/resize'This is actually a bug in resize/Makefile.am introduced by a0722c7a. It was masked if you had the optional ocaml-gettext package installed because that implicitly depends on Unix. Try the attached patch. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora -------------- next part --------------