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 at 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 -> unitWe 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
Seemingly Similar Threads
- [PATCH 0/2] Fix btrfs blocksize and bind mkfs.btrfs (RHBZ#807905).
- Changing node & leaf size on live partition.
- Re: [Bugme-new] [Bug 29302] New: Null pointer dereference with large max_sectors_kb
- 2.6.29-rc1: Cannot loopback mount btrfs formatted file
- [PATCH 0/3] tests: Various fixes for btrfs and aarch64.