savonet / liquidsoap

Liquidsoap is a statically typed scripting general-purpose language with dedicated operators and backend for all thing media, streaming, file generation, automation, HTTP backend and more.
http://liquidsoap.info
GNU General Public License v2.0
1.4k stars 130 forks source link

Install error after recent liq and lib update #3073

Closed Russsgithub closed 1 year ago

Russsgithub commented 1 year ago

Recent updates are causing

# Error: The implementation src/core/tools/http.pp.ml
# [...]
#         File "src/core/tools/http.mli", lines 14-19, characters 0-56:
#           Expected declaration
#         File "src/core/tools/http.ml", line 10, characters 0-30:
#           Actual declaration
# (cd _build/default && /home/ubuntu/.opam/4.14.0/bin/ocamlc.opt -w -40 -w -9 -alert --deprecated -g -bin-annot -I src/core/.liquidsoap_core.objs/byte -I /home/ubuntu/.opam/4.14.0/lib/angstrom -I /home/ubuntu/.opam/4.14.0/lib/bigstringaf -I /home/ubuntu/.opam/4.14.0/lib/camlp-streams -I /home/ubuntu/.opam/4.14.0/lib/camomile/lib -I /home/ubuntu/.opam/4.14.0/lib/cry -I /home/ubuntu/.opam/4.14.0/[...]
# File "src/core/outputs/icecast2.ml", line 448, characters 40-49:
# 448 |   let connection = Cry.create ~timeout ~transport ?connection_timeout () in#                                               ^^^^^^^^^
# Error: This expression has type Http.transport
#        but an expression was expected of type Cry.transport
#        The second object type has no method accept

When i try to install.

Ocaml-cry (GitHub) pinned.

Version details

Install method Did you install via opam? Using your distribution's packages? From source? Opam

.... Edit

I changed from opam install to rolling release deb file , which installed fine .

I guess I had a something wrong with my opam install.

Closing.

toots commented 1 year ago

I merged some changes in ocaml-cry that are addressed in https://github.com/savonet/liquidsoap/pull/3074 on the liquidsoap side. This PR will be merged soon!