inhabitedtype / ocaml-webmachine

A REST toolkit for OCaml
Other
221 stars 31 forks source link

Cannot build from source: Cohttp_async_io is unbounded (OS X 10.11.6) #75

Closed erwanor closed 7 years ago

erwanor commented 7 years ago

When trying to build from sources with tests enabled:

./configure --enable-examples
make clean && make

yields the following error:

Zoom: Error: Unbound module Cohttp_async_io

context:

File "examples/hello_async.ml", line 1, characters 5-13:
Warning 3: deprecated: module Core.Std
[since 2017-02] Use Core. The Std sub-module is no longer needed
File "examples/hello_async.ml", line 2, characters 5-14:
Warning 3: deprecated: module Async.Std
[since 2017-02] use Async. The Std sub-module is no longer needed
File "examples/hello_async.ml", line 5, characters 5-20:
Error: Unbound module Cohttp_async_io
Hint: Did you mean Cohttp_async?
Command exited with code 2.

even after I run opam install --deps-only webmachine:

$ opam install --deps-only webmachine

=-=- Synchronising pinned packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫
[webmachine] /Users/erwan/ocaml-webmachine/ already up-to-date

My uname -a :

Darwin bastiat.local 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64

My ocaml --version:

 The OCaml toplevel, version 4.04.2

I obtain the same error when install from opam (via opam install webmachine).

seliopou commented 7 years ago

Thanks for reporting this, I will look into it this weekend.

On Fri, Sep 8, 2017 at 3:57 PM, Erwan notifications@github.com wrote:

When trying to build from sources with tests enabled:

./configure --enable-examples make clean && make

yields the following error:

File "examples/hello_async.ml", line 1, characters 5-13: Warning 3: deprecated: module Core.Std [since 2017-02] Use Core. The Std sub-module is no longer needed File "examples/hello_async.ml", line 2, characters 5-14: Warning 3: deprecated: module Async.Std [since 2017-02] use Async. The Std sub-module is no longer needed File "examples/hello_async.ml", line 5, characters 5-20: Error: Unbound module Cohttp_async_io Hint: Did you mean Cohttp_async? Command exited with code 2.

even after I run opam install --deps-only webmachine

My uname -a :

Darwin bastiat.local 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64

My ocaml --version:

The OCaml toplevel, version 4.04.2

I obtain the same error when install from opam (via opam install webmachine).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/inhabitedtype/ocaml-webmachine/issues/75, or mute the thread https://github.com/notifications/unsubscribe-auth/AABitU9bvz7o-TO4giZ_jIFfx62hEdATks5sgVXugaJpZM4PRTA2 .

rgrinberg commented 7 years ago

I think Cohttp 0.99 changed this to Cohttp_async.Io (when we moved it to aliases). I did a rev dep search for possible breakage of this but i think the depopts made me miss this case..

tmcgilchrist commented 7 years ago

I ran into the same problem while porting the build across to jbuilder. I can do a small fix for them.

On Fri, 8 Sep 2017 at 4:14 pm, Rudi Grinberg notifications@github.com wrote:

I think Cohttp 0.99 changed this to Cohttp_async.Io (when we moved it to aliases). I did a rev dep search for possible breakage of this but i think the depopts made me miss this case..

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/inhabitedtype/ocaml-webmachine/issues/75#issuecomment-328131470, or mute the thread https://github.com/notifications/unsubscribe-auth/AAKbubasEsj-_wdeTaX8_inODxyYQd-4ks5sgVnQgaJpZM4PRTA2 .

seliopou commented 7 years ago

This should be fixed by the patch from @tmcgilchrist.

erwanor commented 7 years ago

@tmcgilchrist thanks for the swift action!