vbmithr / ocaml-websocket

Websocket library for OCaml
ISC License
163 stars 44 forks source link

websocket.0.6 needs constraint on older cohttp #9

Closed avsm closed 11 years ago

avsm commented 11 years ago

Due to the refactoring of modules.


The compilation of websocket.0.6 failed.

==== ERROR [while installing websocket.0.6] ====
# opam-version    1.1.0
# os              linux
# command         make
# path            /tmp/ocamlot/ocamlot.work.2013-08-29.166/opam-install/system/build/websocket.0.6
# compiler        system (4.00.1)
# exit-code       2
# env-file        /tmp/ocamlot/ocamlot.work.2013-08-29.166/opam-install/system/build/websocket.0.6/websocket-8363-60459a.env
# stdout-file     /tmp/ocamlot/ocamlot.work.2013-08-29.166/opam-install/system/build/websocket.0.6/websocket-8363-60459a.out
# stderr-file     /tmp/ocamlot/ocamlot.work.2013-08-29.166/opam-install/system/build/websocket.0.6/websocket-8363-60459a.err
### stdout ###
...[truncated]
ocamlfind ocamldep -package ocplib-endian -package lwt.syntax -package lwt.ssl -package lwt -package cryptokit -package cohttp.lwt -syntax camlp4o -modules lib/lwt_io_ext.ml > lib/lwt_io_ext.ml.depends
ocamlfind ocamldep -package ocplib-endian -package lwt.syntax -package lwt.ssl -package lwt -package cryptokit -package cohttp.lwt -syntax camlp4o -modules lib/websocket.mli > lib/websocket.mli.depends
ocamlfind ocamlc -c -g -annot -package ocplib-endian -package lwt.syntax -package lwt.ssl -package lwt -package cryptokit -package cohttp.lwt -syntax camlp4o -I lib -o lib/lwt_io_ext.cmo lib/lwt_io_ext.ml
ocamlfind ocamlc -c -g -annot -package ocplib-endian -package lwt.syntax -package lwt.ssl -package lwt -package cryptokit -package cohttp.lwt -syntax camlp4o -I lib -o lib/websocket.cmi lib/websocket.mli
ocamlfind ocamldep -package ocplib-endian -package lwt.syntax -package lwt.ssl -package lwt -package cryptokit -package cohttp.lwt -syntax camlp4o -modules lib/websocket.ml > lib/websocket.ml.depends
ocamlfind ocamlc -c -g -annot -package ocplib-endian -package lwt.syntax -package lwt.ssl -package lwt -package cryptokit -package cohttp.lwt -syntax camlp4o -I lib -o lib/websocket.cmo lib/websocket.ml
+ ocamlfind ocamlc -c -g -annot -package ocplib-endian -package lwt.syntax -package lwt.ssl -package lwt -package cryptokit -package cohttp.lwt -syntax camlp4o -I lib -o lib/websocket.cmo lib/websocket.ml
File "lib/websocket.ml", line 233, characters 14-28:
Error: Unbound value C.Request.make
Command exited with code 2.
### stderr ###
E: Failure("Command ''/home/avsm/src/git/ocamllabs/worker/ocaml/4.00.1/bin/ocamlbuild' lib/websocket.cma lib/websocket.cmxa lib/websocket.a lib/websocket.cmxs tests/wscat.native -tag debug' terminated with error code 10")
make: *** [build] Error 1

'opam install --verbose --yes websocket.0.6' failed.

OCAMLOT After 237.11s Opam_task.run "opam install --verbose --yes websocket.0.6" failed (4) in 162.23s

Triaged as part of OCamlPro/opam-repository#1029

vbmithr commented 11 years ago

On 01/09/2013 13:52, Anil Madhavapeddy wrote:

Due to the refactoring of modules.

Yeah, it is for cohttp 0.9.10+ But I thought putting "no constraints" was equivalent to say "depends on the last version".

It compiles fine on my machine with cohttp 0.9.10 installed.

Vincent

avsm commented 11 years ago

I think no constraints is "any version" -- i've added a 0.9.10 constraint to it now to ensure it gets a version that satisfies it