<cjlove@san.rr.com>
2014-Aug-25 04:59 UTC
[libvirt-users] Building virt-top to SLES 11 SP3
Hi all, I was curious whether anyone has successfully built virt-top (version 1.0.8) on SUSE SLES11 SP3. SUSE's ocaml support is rather limited, so I've built ocaml 4.00.1 from source and installed the necessary dependencies using Opam. I'm still running into a compile error on virt_top.ml, line 697: Error: This expression has type int -> D.typed_param list array but an expression was expected of type (string * D.typed_param_value) list array As a frame of reference I was able to build virt-top 1.0.8 from source on a Fedora Core 20 box with the necessary ocaml -devel RPMs installed (also ocaml 4.00.1), so I don't know if I'm running into other dependency issues or something else. The ocaml-libvirt package version 0.6.1.2 compiles successfully, which suggests that SLES 11 SP3 has a sufficient version of libvirt. Thanks in advance, Chris
On 08/24/2014 10:59 PM, cjlove@san.rr.com wrote:> Hi all,[can you configure your mailer to wrap long lines?]> > I was curious whether anyone has successfully built virt-top (version 1.0.8) on SUSE SLES11 SP3.As mentioned on http://people.redhat.com/~rjones/virt-top/, you might get a better response by asking the virt-tools list (added in cc).> SUSE's ocaml support is rather limited, so I've built ocaml 4.00.1from source and installed the necessary dependencies using Opam.> > I'm still running into a compile error on virt_top.ml, line 697: > Error: This expression has type int -> D.typed_param list array > but an expression was expected of type > (string * D.typed_param_value) list array > > As a frame of reference I was able to build virt-top 1.0.8 from source on a Fedora Core 20 box with the necessary ocaml -devel RPMs installed (also ocaml 4.00.1), so I don't know if I'm running into other dependency issues or something else. The ocaml-libvirt package version 0.6.1.2 compiles successfully, which suggests that SLES 11 SP3 has a sufficient version of libvirt. > > Thanks in advance, > > Chris-- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Richard W.M. Jones
2014-Aug-25 19:54 UTC
Re: [libvirt-users] Building virt-top to SLES 11 SP3
On Mon, Aug 25, 2014 at 01:25:33PM -0600, Eric Blake wrote:> On 08/24/2014 10:59 PM, cjlove@san.rr.com wrote: > > Hi all, > > [can you configure your mailer to wrap long lines?] > > > > > I was curious whether anyone has successfully built virt-top (version 1.0.8) on SUSE SLES11 SP3. > > As mentioned on http://people.redhat.com/~rjones/virt-top/, you might > get a better response by asking the virt-tools list (added in cc). > > > SUSE's ocaml support is rather limited, so I've built ocaml 4.00.1 > from source and installed the necessary dependencies using Opam. > > > > I'm still running into a compile error on virt_top.ml, line 697: > > Error: This expression has type int -> D.typed_param list array > > but an expression was expected of type > > (string * D.typed_param_value) list array[Thanks Eric] This is not pretty, but what happened is that Hu Tao from Fujitsu and Dave Scott from Citrix added a bunch of new features to ocaml-libvirt[1]. One of these new features changes the API for an existing function. However there is no released tarball containing this change -- the ocaml-libvirt 0.6.1.2 in Fedora is patched. That causes the above error when you use new virt-top with ocaml-libvirt 0.6.1.2 tarball without this patch. I have just released ocaml-libvirt 0.6.1.4 which contains this patch. Unfortunately I cannot upload it to the website[2] for some reason right now, so I have put it here[3] instead temporarily. You will need to persuade the OPAM developers to move to this version. Rich. [1] http://libvirt.org/ocaml/ [2] http://libvirt.org/sources/ocaml/ [3] http://oirase.annexia.org/tmp/ocaml-libvirt-0.6.1.4.tar.gz -- 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