[ocamlnet 3.6] Error building netgzip
Matías Giovannini <[email protected]> Wed, 19 Sep 2012 16:05:18 -0300
| Newsgroups | gmane.comp.lang.ocaml.lib.net.devel |
|---|---|
| Message-ID | <CALzEXo9sWenCxQ+ntc=Uruu0CkE8r377EL4STm87vTjkNDg9WQ@mail.gmail.com> |
Hello,
there's a problem building ocamlnet 3.6 with OCaml 4.0 (related to some
changes to inference of optional parameters):
ocamlfind ocamlc -g -I ../../src/netstring -package "unix camlzip" -c
netgzip.ml
File "netgzip.ml", line 326, characters 13-33:
Error: This expression has type ?level:int -> unit -> deflating_pipe
but an expression was expected of type
unit -> Netchannels.io_obj_channel
make[1]: *** [netgzip.cmo] Error 2
make: *** [all] Error 2
The workaround is to edit src/netzip/netgzip.ml so that line 326 passes an
explicit ``level'' option to deflating_pipe:
let () =
Netcompression.register
~iana_name:"gzip"
~decoder:(new inflating_pipe)
~encoder:(new deflating_pipe ~level:6)
()
Regards,
Matías.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ocamlnet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel