mirage / awa-ssh

Purely functional SSH library in ocaml.
ISC License
104 stars 12 forks source link

What versions does awa-ssh work with? #7

Closed wiml closed 4 years ago

wiml commented 5 years ago

I've been trying to install awa-ssh using opam, but so far without success.

hannesm commented 5 years ago

so, what works for me is:

dsheets commented 4 years ago

With Ocaml 4.08.1, I also had to downgrade cstruct from 5.0.0 to 4.0.0 due to

File "_none_", line 1:
Error (alert deprecated): module Stdlib.Pervasives
Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the
stdlib-shims library: https://github.com/ocaml/stdlib-shims

that apparently comes from the cstruct PPX. Something in dune or the ppx (?) seems to lose the lexical coordinates. The source of this problem was more annoying to figure out than necessary but now I am running a testing SSH server -- hooray!

hannesm commented 4 years ago

@dsheets good to hear. I use dune build --profile=release quite a lot to not be disturbed by "warnings are errors" (and indeed, that cstruct/ppx_cstruct issue is annoying, I PRed a fix for the above 3 weeks ago in https://github.com/mirage/ocaml-cstruct/pull/269)

hannesm commented 4 years ago

since c0e82546abe73c074f58f61388efaae7f6650117 mirage-crypto is used now (which in turn has been released to opam repository)