virt-df compilation under Debian GNU/Linux

View: New views
3 Messages — Rating Filter:   Alert me  

virt-df compilation under Debian GNU/Linux

by Laurent Léonard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I tried to compile virt-df under Debian GNU/Linux but I got the following
error message:
[...]
ocamlfind ocamlc -dtypes -g -syntax bitstring.syntax -package
unix,extlib,bitstring.syntax -c diskimage_ext2.mli
ocamlfind ocamlc -dtypes -g -syntax bitstring.syntax -package
unix,extlib,bitstring.syntax -c diskimage_ext2.ml
File "diskimage_ext2.ml", line 228, characters 6-7:
Parse error: ":" expected after [patt] (in [patt_field])
File "diskimage_ext2.ml", line 1, characters 0-1:
Error: Preprocessor error
[...]

I tried with Ocaml 3.11.0 (from Squeeze) and 3.11.1 (from Sid), any idea
what's wrong ?

Thank you,
--
Laurent Léonard


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@...
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

signature.asc (204 bytes) Download Attachment

Re: virt-df compilation under Debian GNU/Linux

by Richard W.M. Jones-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Jul 09, 2009 at 12:41:20AM +0200, Laurent Léonard wrote:

> Hi,
>
> I tried to compile virt-df under Debian GNU/Linux but I got the following
> error message:
> [...]
> ocamlfind ocamlc -dtypes -g -syntax bitstring.syntax -package
> unix,extlib,bitstring.syntax -c diskimage_ext2.mli
> ocamlfind ocamlc -dtypes -g -syntax bitstring.syntax -package
> unix,extlib,bitstring.syntax -c diskimage_ext2.ml
> File "diskimage_ext2.ml", line 228, characters 6-7:
> Parse error: ":" expected after [patt] (in [patt_field])
> File "diskimage_ext2.ml", line 1, characters 0-1:
> Error: Preprocessor error
> [...]
>
> I tried with Ocaml 3.11.0 (from Squeeze) and 3.11.1 (from Sid), any idea
> what's wrong ?

Yes, there's a regression in my camlp4 code.

There's a new version of virt-df coming shortly, so keep an
eye on the website.

Rich.

--
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@...
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

Re: virt-df compilation under Debian GNU/Linux

by Richard W.M. Jones-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I just pushed the new version of virt-df to the libguestfs git
repository.

home page:   http://et.redhat.com/~rjones/virt-df/
libguestfs:  http://libguestfs.org/
git repo:    http://git.et.redhat.com/?p=libguestfs.git;a=summary

# virt-df -h
Filesystem                                Size       Used  Available  Use%
Ubuntu904x64:/dev/sda1                    9.4G       2.1G       6.8G 27.7%
Debian5x64:/dev/debian5x64/home           3.4G     761.9M       2.5G 27.0%
Debian5x64:/dev/debian5x64/root         321.5M     111.1M     193.8M 39.7%
Debian5x64:/dev/debian5x64/tmp          302.1M      10.0M     276.5M  8.5%
Debian5x64:/dev/debian5x64/usr            3.4G       1.1G       2.1G 38.3%
Debian5x64:/dev/debian5x64/var            1.7G     612.6M    1001.9M 41.1%
Debian5x64:/dev/sda1                    227.9M      18.6M     197.1M 13.5%
F10x32:/dev/VolGroup00/LogVol00           8.8G       3.1G       5.2G 40.3%
F10x32:/dev/sda1                        189.9M      20.2M     159.9M 15.8%
CentOS5x32:/dev/VolGroup00/LogVol00       8.6G       3.9G       4.2G 50.6%
CentOS5x32:/dev/sda1                     98.7M      23.5M      70.1M 29.0%
Win2003x32:/dev/sda1                     20.0G       2.1G      17.9G 10.4%

Rich.

--
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@...
https://www.redhat.com/mailman/listinfo/et-mgmt-tools