Hi Rich, A compiling error occurs here, File "../ocaml/guestfs.ml", line 1, characters 0-1: Error: The implementation ../ocaml/guestfs.ml does not match the interface ../ocaml/guestfs.cmi: Values do not match: external mkfs_btrfs : t -> ?allocstart:int64 -> ?bytecount:int64 -> ?datatype:string -> ?leafsize:int -> ?label:string -> ?metadata:string -> ?nodesize:int -> ?sectorsize:int -> string array -> unit = "ocaml_guestfs_mkfs_btrfs_byte" "ocaml_guestfs_mkfs_btrfs" is not included in val mkfs_btrfs : t -> ?allocstart:int64 -> ?bytecount:int64 -> ?datatype:string -> ?leafsize:int -> ?label:string -> ?metadata:string -> ?nodesize:int -> ?sectorsize:int -> string -> unit make: *** [../ocaml/guestfs.cmx] Error 2 Thanks, Wanlong Gao
On 05/07/2012 05:34 PM, Wanlong Gao wrote:
Hi Rich,
A compiling error occurs here,
Sorry, I should make clean. ignore this. Thanks, Wanlong Gao
File "../ocaml/guestfs.ml", line 1, characters 0-1: Error: The implementation ../ocaml/guestfs.ml does not match the interface ../ocaml/guestfs.cmi: Values do not match: external mkfs_btrfs : t -> ?allocstart:int64 -> ?bytecount:int64 -> ?datatype:string -> ?leafsize:int -> ?label:string -> ?metadata:string -> ?nodesize:int -> ?sectorsize:int -> string array -> unit = "ocaml_guestfs_mkfs_btrfs_byte" "ocaml_guestfs_mkfs_btrfs" is not included in val mkfs_btrfs : t -> ?allocstart:int64 -> ?bytecount:int64 -> ?datatype:string -> ?leafsize:int -> ?label:string -> ?metadata:string -> ?nodesize:int -> ?sectorsize:int -> string -> unit make: *** [../ocaml/guestfs.cmx] Error 2
Thanks, Wanlong Gao
_______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
On Mon, May 07, 2012 at 05:34:45PM +0800, Wanlong Gao wrote:
Hi Rich,
A compiling error occurs here, ?nodesize:int -> ?sectorsize:int -> string array -> unit [...] ?nodesize:int -> ?sectorsize:int -> string -> unit
We changed the mkfs_btrfs definition so that it takes a list of devices instead of a single device (commit 3cc9703f9). However I don't know why the file above isn't being regenerated. Both 'guestfs.mli' and 'guestfs.ml' are listed as 'generator_built' in 'ocaml/Makefile.am', so they should get rebuilt. Perhaps rerun the generator by hand? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
On 05/08/2012 01:14 AM, Richard W.M. Jones wrote:
On Mon, May 07, 2012 at 05:34:45PM +0800, Wanlong Gao wrote:
Hi Rich,
A compiling error occurs here, ?nodesize:int -> ?sectorsize:int -> string array -> unit [...] ?nodesize:int -> ?sectorsize:int -> string -> unit
We changed the mkfs_btrfs definition so that it takes a list of devices instead of a single device (commit 3cc9703f9). However I don't know why the file above isn't being regenerated. Both 'guestfs.mli' and 'guestfs.ml' are listed as 'generator_built' in 'ocaml/Makefile.am', so they should get rebuilt.
Perhaps rerun the generator by hand?
Actually, I did "make -C ocaml/ clean" then it went well . Thanks, Wanlong Gao
Rich.
participants (2)
-
Richard W.M. Jones -
Wanlong Gao