{"action":"closed","issue":{"url":"https://api.github.com/repos/inhabitedtype/ocaml-webmachine/issues/58","repository_url":"https://api.github.com/repos/inhabitedtype/ocaml-webmachine","labels_url":"https://api.github.com/repos/inhabitedtype/ocaml-webmachine/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/inhabitedtype/ocaml-webmachine/issues/58/comments","events_url":"https://api.github.com/repos/inhabitedtype/ocaml-webmachine/issues/58/events","html_url":"https://github.com/inhabitedtype/ocaml-webmachine/issues/58","id":161424878,"number":58,"title":"webmachine 0.3.1 can't be installed by opam with ocaml 4.02.3 and 4.03.0","user":{"login":"Khady","id":974142,"avatar_url":"https://avatars.githubusercontent.com/u/974142?v=3","gravatar_id":"","url":"https://api.github.com/users/Khady","html_url":"https://github.com/Khady","followers_url":"https://api.github.com/users/Khady/followers","following_url":"https://api.github.com/users/Khady/following{/other_user}","gists_url":"https://api.github.com/users/Khady/gists{/gist_id}","starred_url":"https://api.github.com/users/Khady/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Khady/subscriptions","organizations_url":"https://api.github.com/users/Khady/orgs","repos_url":"https://api.github.com/users/Khady/repos","events_url":"https://api.github.com/users/Khady/events{/privacy}","received_events_url":"https://api.github.com/users/Khady/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-21T12:33:48Z","updated_at":"2016-06-29T20:01:28Z","closed_at":"2016-06-29T20:01:28Z","body":"Looks like there is an incompatibility with cohttp.\r\n\r\nInstallation logs:\r\n\r\n4.02.3:\r\n\r\n```\r\n$ opam install webmachine\r\nThe following actions will be performed:\r\n  - install conf-m4         1                           [required by ocamlfind]\r\n  - install result          1.2                         [required by dispatch]\r\n  - install ocamlbuild      0                           [required by dispatch]\r\n  - install ocamlfind       1.6.2                       [required by webmachine]\r\n  - install cmdliner        0.9.8                       [required by cohttp]\r\n  - install ppx_tools       5.0+4.02.0                  [required by ppx_fields_conv]\r\n  - install magic-mime      1.0.0                       [required by cohttp]\r\n  - install js-build-tools  113.33.04                   [required by fieldslib, ppx_fields_conv]\r\n  - install dispatch        0.3.0                       [required by webmachine]\r\n  - install cppo            1.3.2                       [required by ocplib-endian]\r\n  - install base-bytes      base                        [required by cohttp]\r\n  - install sexplib         113.33.03                   [required by cohttp]\r\n  - install ppx_core        113.33.03                   [required by ppx_fields_conv]\r\n  - install fieldslib       113.33.03                   [required by cohttp]\r\n  - install ppx_deriving    3.3                         [required by ppx_type_conv]\r\n  - install stringext       1.4.2                       [required by cohttp]\r\n  - install re              1.6.1                       [required by webmachine]\r\n  - install ocplib-endian   0.8                         [required by cstruct]\r\n  - install base64          2.0.0                       [required by cohttp]\r\n  - install ppx_optcomp     113.33.03                   [required by conduit]\r\n  - install cstruct         2.1.0                       [required by conduit]\r\n  - install ppx_driver      113.33.03                   [required by conduit]\r\n  - install ppx_type_conv   113.33.03                   [required by ppx_fields_conv]\r\n  - install ppx_sexp_conv   113.33.03                   [required by cohttp]\r\n  - install ppx_fields_conv 113.33.03                   [required by cohttp]\r\n  - install uri             1.9.2                       [required by cohttp]\r\n  - install ipaddr          2.7.0                       [required by conduit]\r\n  - install conduit         0.12.0                      [required by cohttp]\r\n  - install cohttp          0.21.0                      [required by webmachine]\r\n  - install webmachine      0.3.1     \r\n===== 30 to install =====\r\nDo you want to continue ? [Y/n] y\r\n\r\n=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r\n[base64] Archive in cache\r\n[cmdliner] Archive in cache\r\n[cohttp] Archive in cache\r\n[conduit] Archive in cache\r\n[cppo] Archive in cache\r\n[default] https://opam.ocaml.org/archives/fieldslib.113.33.03+opam.tar.gz downloaded\r\n[ipaddr] Archive in cache\r\n[default] https://opam.ocaml.org/archives/dispatch.0.3.0+opam.tar.gz downloaded\r\n[magic-mime] Archive in cache\r\n[default] https://opam.ocaml.org/archives/js-build-tools.113.33.04+opam.tar.gz downloaded\r\n[ocplib-endian] Archive in cache\r\n[default] https://opam.ocaml.org/archives/ppx_core.113.33.03+opam.tar.gz downloaded\r\n[ppx_deriving] Archive in cache\r\n[default] https://opam.ocaml.org/archives/cstruct.2.1.0+opam.tar.gz downloaded\r\n[default] https://opam.ocaml.org/archives/ocamlfind.1.6.2+opam.tar.gz downloaded\r\n[default] https://opam.ocaml.org/archives/ppx_driver.113.33.03+opam.tar.gz downloaded\r\n[default] https://opam.ocaml.org/archives/ppx_fields_conv.113.33.03+opam.tar.gz downloaded\r\n[default] https://opam.ocaml.org/archives/ppx_optcomp.113.33.03+opam.tar.gz downloaded\r\n[default] https://opam.ocaml.org/archives/ppx_tools.5.0+4.02.0+opam.tar.gz downloaded\r\n[default] https://opam.ocaml.org/archives/ppx_sexp_conv.113.33.03+opam.tar.gz downloaded\r\n[result] Archive in cache\r\n[default] https://opam.ocaml.org/archives/ppx_type_conv.113.33.03+opam.tar.gz downloaded\r\n[stringext] Archive in cache\r\n[uri] Archive in cache\r\n[webmachine] Archive in cache\r\n[default] https://opam.ocaml.org/archives/re.1.6.1+opam.tar.gz downloaded\r\n[default] https://opam.ocaml.org/archives/sexplib.113.33.03+opam.tar.gz downloaded\r\n\r\n=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r\n-> installed conf-m4.1\r\n-> installed ocamlbuild.0\r\n-> installed cmdliner.0.9.8\r\n-> installed ocamlfind.1.6.2\r\n-> installed base-bytes.base\r\n-> installed base64.2.0.0\r\n-> installed cppo.1.3.2\r\n-> installed js-build-tools.113.33.04\r\n-> installed fieldslib.113.33.03\r\n-> installed magic-mime.1.0.0\r\n-> installed ocplib-endian.0.8\r\n-> installed ppx_tools.5.0+4.02.0\r\n-> installed ppx_core.113.33.03\r\n-> installed ppx_deriving.3.3\r\n-> installed ppx_optcomp.113.33.03\r\n-> installed ppx_driver.113.33.03\r\n-> installed ppx_type_conv.113.33.03\r\n-> installed ppx_fields_conv.113.33.03\r\n-> installed re.1.6.1\r\n-> installed result.1.2\r\n-> installed dispatch.0.3.0\r\n-> installed sexplib.113.33.03\r\n-> installed cstruct.2.1.0\r\n-> installed ppx_sexp_conv.113.33.03\r\n-> installed ipaddr.2.7.0\r\n-> installed stringext.1.4.2\r\n-> installed uri.1.9.2\r\n-> installed conduit.0.12.0\r\n-> installed cohttp.0.21.0\r\n[ERROR] The compilation of webmachine failed at \"ocaml setup.ml -build\".\r\nProcessing 30/30: [webmachine: ocamlfind remove]\r\n#=== ERROR while installing webmachine.0.3.1 ==================================#\r\n# opam-version 1.2.2\r\n# os           linux\r\n# command      ocaml setup.ml -build\r\n# path         /home/louis/.opam/ocamlirc/build/webmachine.0.3.1\r\n# compiler     4.02.3\r\n# exit-code    1\r\n# env-file     /home/louis/.opam/ocamlirc/build/webmachine.0.3.1/webmachine-5618-09199b.env\r\n# stdout-file  /home/louis/.opam/ocamlirc/build/webmachine.0.3.1/webmachine-5618-09199b.out\r\n# stderr-file  /home/louis/.opam/ocamlirc/build/webmachine.0.3.1/webmachine-5618-09199b.err\r\n### stdout ###\r\n# [...]\r\n# /home/louis/.opam/ocamlirc/bin/ocamlfind ocamldep -package re.str -package re -package dispatch -package cohttp -modules lib/webmachine.mli > lib/webmachine.mli.depends\r\n# /home/louis/.opam/ocamlirc/bin/ocamlfind ocamlc -c -g -annot -bin-annot -package re.str -package re -package dispatch -package cohttp -I lib -o lib/webmachine.cmi lib/webmachine.mli\r\n# /home/louis/.opam/ocamlirc/bin/ocamlfind ocamldep -package re.str -package re -package dispatch -package cohttp -modules lib/webmachine.ml > lib/webmachine.ml.depends\r\n# /home/louis/.opam/ocamlirc/bin/ocamlfind ocamldep -package re.str -package re -package dispatch -package cohttp -modules lib/wm_util.ml > lib/wm_util.ml.depends\r\n# /home/louis/.opam/ocamlirc/bin/ocamlfind ocamlc -c -g -annot -bin-annot -package re.str -package re -package dispatch -package cohttp -I lib -o lib/wm_util.cmo lib/wm_util.ml\r\n# /home/louis/.opam/ocamlirc/bin/ocamlfind ocamlc -c -g -annot -bin-annot -package re.str -package re -package dispatch -package cohttp -I lib -o lib/webmachine.cmo lib/webmachine.ml\r\n# + /home/louis/.opam/ocamlirc/bin/ocamlfind ocamlc -c -g -annot -bin-annot -package re.str -package re -package dispatch -package cohttp -I lib -o lib/webmachine.cmo lib/webmachine.ml\r\n# File \"lib/webmachine.ml\", line 65, characters 24-35:\r\n# Error: Unbound record field Request.uri\r\n# Command exited with code 2.\r\n### stderr ###\r\n# E: Failure(\"Command ''/home/louis/.opam/ocamlirc/bin/ocamlbuild' lib/webmachine.cma lib/webmachine.cmxa lib/webmachine.a lib/webmachine.cmxs -use-ocamlfind -tag debug' terminated with error code 10\")\r\n\r\n\r\n\r\n=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r\nThe following actions failed\r\n  - install webmachine 0.3.1\r\nThe following changes have been performed\r\n  - install base-bytes      base      \r\n  - install base64          2.0.0     \r\n  - install cmdliner        0.9.8     \r\n  - install cohttp          0.21.0    \r\n  - install conduit         0.12.0    \r\n  - install conf-m4         1         \r\n  - install cppo            1.3.2     \r\n  - install cstruct         2.1.0     \r\n  - install dispatch        0.3.0     \r\n  - install fieldslib       113.33.03 \r\n  - install ipaddr          2.7.0     \r\n  - install js-build-tools  113.33.04 \r\n  - install magic-mime      1.0.0     \r\n  - install ocamlbuild      0         \r\n  - install ocamlfind       1.6.2     \r\n  - install ocplib-endian   0.8       \r\n  - install ppx_core        113.33.03 \r\n  - install ppx_deriving    3.3       \r\n  - install ppx_driver      113.33.03 \r\n  - install ppx_fields_conv 113.33.03 \r\n  - install ppx_optcomp     113.33.03 \r\n  - install ppx_sexp_conv   113.33.03 \r\n  - install ppx_tools       5.0+4.02.0\r\n  - install ppx_type_conv   113.33.03 \r\n  - install re              1.6.1     \r\n  - install result          1.2       \r\n  - install sexplib         113.33.03 \r\n  - install stringext       1.4.2     \r\n  - install uri             1.9.2     \r\n\r\nThe former state can be restored with:\r\n    opam switch import \"~/.opam/ocamlirc/backup/state-20160521122246.export\"\r\n```\r\n\r\n4.03.0\r\n\r\n```\r\n$ opam install webmachine\r\nThe following actions will be performed:\r\n  - install conf-m4         1                           [required by ocamlfind]\r\n  - install result          1.2                         [required by dispatch]\r\n  - install ocamlbuild      0.9.2                       [required by dispatch]\r\n  - install ocamlfind       1.6.2                       [required by webmachine]\r\n  - install cmdliner        0.9.8                       [required by cohttp]\r\n  - install sexplib         113.33.00+4.03              [required by cohttp]\r\n  - install ppx_tools       5.0+4.03.0                  [required by ppx_fields_conv]\r\n  - install magic-mime      1.0.0                       [required by cohttp]\r\n  - install fieldslib       113.24.00                   [required by cohttp]\r\n  - install dispatch        0.3.0                       [required by webmachine]\r\n  - install cppo            1.3.2                       [required by ocplib-endian]\r\n  - install base-bytes      base                        [required by cohttp]\r\n  - install ppx_core        113.33.01+4.03              [required by ppx_fields_conv]\r\n  - install ppx_deriving    3.3                         [required by ppx_type_conv]\r\n  - install stringext       1.4.2                       [required by cohttp]\r\n  - install re              1.6.1                       [required by webmachine]\r\n  - install ocplib-endian   0.8                         [required by cstruct]\r\n  - install base64          2.0.0                       [required by cohttp]\r\n  - install ppx_optcomp     113.33.00+4.03              [required by conduit]\r\n  - install cstruct         2.1.0                       [required by conduit]\r\n  - install ppx_driver      113.33.01+4.03              [required by conduit]\r\n  - install ppx_type_conv   113.33.01+4.03              [required by ppx_fields_conv]\r\n  - install ppx_sexp_conv   113.33.01+4.03              [required by cohttp]\r\n  - install ppx_fields_conv 113.33.00+4.03              [required by cohttp]\r\n  - install uri             1.9.2                       [required by cohttp]\r\n  - install ipaddr          2.7.0                       [required by conduit]\r\n  - install conduit         0.12.0                      [required by cohttp]\r\n  - install cohttp          0.21.0                      [required by webmachine]\r\n  - install webmachine      0.3.1         \r\n===== 29 to install =====\r\nDo you want to continue ? [Y/n] y\r\n\r\n=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r\n[base64] Archive in cache\r\n[cmdliner] Archive in cache\r\n[cohttp] Archive in cache\r\n[conduit] Archive in cache\r\n[cppo] Archive in cache\r\n[cstruct] Archive in cache\r\n[dispatch] Archive in cache\r\n[ipaddr] Archive in cache\r\n[magic-mime] Archive in cache\r\n[ocamlbuild] Archive in cache\r\n[ocamlfind] Archive in cache\r\n[ocplib-endian] Archive in cache\r\n[ppx_core] Archive in cache\r\n[ppx_deriving] Archive in cache\r\n[ppx_driver] Archive in cache\r\n[ppx_fields_conv] Archive in cache\r\n[ppx_optcomp] Archive in cache\r\n[ppx_sexp_conv] Archive in cache\r\n[ppx_type_conv] Archive in cache\r\n[re] Archive in cache\r\n[result] Archive in cache\r\n[sexplib] Archive in cache\r\n[stringext] Archive in cache\r\n[uri] Archive in cache\r\n[webmachine] Archive in cache\r\nProcessing 29/29: [fieldslib: from default] [ppx_tools: from default]\r\n[default] https://opam.ocaml.org/archives/fieldslib.113.24.00+opam.tar.gz downloaded\r\n[default] https://opam.ocaml.org/archives/ppx_tools.5.0+4.03.0+opam.tar.gz downloaded\r\n\r\n=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r\n-> installed conf-m4.1\r\n-> installed ocamlbuild.0.9.2\r\n-> installed cmdliner.0.9.8\r\n-> installed ocamlfind.1.6.2\r\n-> installed base-bytes.base\r\n-> installed base64.2.0.0\r\n-> installed cppo.1.3.2\r\n-> installed fieldslib.113.24.00\r\n-> installed magic-mime.1.0.0\r\n-> installed ocplib-endian.0.8\r\n-> installed ppx_tools.5.0+4.03.0\r\n-> installed ppx_core.113.33.01+4.03\r\n-> installed ppx_deriving.3.3\r\n-> installed ppx_optcomp.113.33.00+4.03\r\n-> installed ppx_driver.113.33.01+4.03\r\n-> installed ppx_type_conv.113.33.01+4.03\r\n-> installed ppx_fields_conv.113.33.00+4.03\r\n-> installed re.1.6.1\r\n-> installed result.1.2\r\n-> installed dispatch.0.3.0\r\n-> installed sexplib.113.33.00+4.03\r\n-> installed cstruct.2.1.0\r\n-> installed ppx_sexp_conv.113.33.01+4.03\r\n-> installed ipaddr.2.7.0\r\n-> installed stringext.1.4.2\r\n-> installed uri.1.9.2\r\n-> installed conduit.0.12.0\r\n-> installed cohttp.0.21.0\r\n[ERROR] The compilation of webmachine failed at \"ocaml setup.ml -build\".\r\nProcessing 29/29: [webmachine: ocamlfind remove]\r\n#=== ERROR while installing webmachine.0.3.1 ==================================#\r\n# opam-version 1.2.2\r\n# os           linux\r\n# command      ocaml setup.ml -build\r\n# path         /home/louis/.opam/403playground/build/webmachine.0.3.1\r\n# compiler     4.03.0\r\n# exit-code    1\r\n# env-file     /home/louis/.opam/403playground/build/webmachine.0.3.1/webmachine-24443-527847.env\r\n# stdout-file  /home/louis/.opam/403playground/build/webmachine.0.3.1/webmachine-24443-527847.out\r\n# stderr-file  /home/louis/.opam/403playground/build/webmachine.0.3.1/webmachine-24443-527847.err\r\n### stdout ###\r\n# [...]\r\n# File \"lib/webmachine.ml\", line 65, characters 24-35:\r\n# Error: Unbound record field Request.uri\r\n# Command exited with code 2.\r\n# + ocamlfind ocamlopt unix.cmxa -I /home/louis/.opam/403playground/lib/ocamlbuild /home/louis/.opam/403playground/lib/ocamlbuild/ocamlbuildlib.cmxa -linkpkg myocamlbuild.ml /home/louis/.opam/403playground/lib/ocamlbuild/ocamlbuild.cmx -o myocamlbuild\r\n# File \"myocamlbuild.ml\", line 518, characters 43-62:\r\n# Warning 3: deprecated: Ocamlbuild_plugin.String.uncapitalize\r\n# Use String.uncapitalize_ascii instead.\r\n# File \"myocamlbuild.ml\", line 531, characters 51-70:\r\n# Warning 3: deprecated: Ocamlbuild_plugin.String.uncapitalize\r\n# Use String.uncapitalize_ascii instead.\r\n### stderr ###\r\n# [...]\r\n# File \"./setup.ml\", line 1831, characters 16-35:\r\n# Warning 3: deprecated: String.uncapitalize\r\n# Use String.uncapitalize_ascii instead.\r\n# File \"setup.ml\", line 5847, characters 11-28:\r\n# Warning 3: deprecated: String.capitalize\r\n# Use String.capitalize_ascii instead.\r\n# File \"setup.ml\", line 5848, characters 11-30:\r\n# Warning 3: deprecated: String.uncapitalize\r\n# Use String.uncapitalize_ascii instead.\r\n# E: Failure(\"Command ''/home/louis/.opam/403playground/bin/ocamlbuild' lib/webmachine.cma lib/webmachine.cmxa lib/webmachine.a lib/webmachine.cmxs -use-ocamlfind -tag debug' terminated with error code 10\")\r\n\r\n\r\n\r\n=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r\nThe following actions failed\r\n  - install webmachine 0.3.1\r\nThe following changes have been performed\r\n  - install base-bytes      base          \r\n  - install base64          2.0.0         \r\n  - install cmdliner        0.9.8         \r\n  - install cohttp          0.21.0        \r\n  - install conduit         0.12.0        \r\n  - install conf-m4         1             \r\n  - install cppo            1.3.2         \r\n  - install cstruct         2.1.0         \r\n  - install dispatch        0.3.0         \r\n  - install fieldslib       113.24.00     \r\n  - install ipaddr          2.7.0         \r\n  - install magic-mime      1.0.0         \r\n  - install ocamlbuild      0.9.2         \r\n  - install ocamlfind       1.6.2         \r\n  - install ocplib-endian   0.8           \r\n  - install ppx_core        113.33.01+4.03\r\n  - install ppx_deriving    3.3           \r\n  - install ppx_driver      113.33.01+4.03\r\n  - install ppx_fields_conv 113.33.00+4.03\r\n  - install ppx_optcomp     113.33.00+4.03\r\n  - install ppx_sexp_conv   113.33.01+4.03\r\n  - install ppx_tools       5.0+4.03.0    \r\n  - install ppx_type_conv   113.33.01+4.03\r\n  - install re              1.6.1         \r\n  - install result          1.2           \r\n  - install sexplib         113.33.00+4.03\r\n  - install stringext       1.4.2         \r\n  - install uri             1.9.2         \r\n\r\nThe former state can be restored with:\r\n    opam switch import \"~/.opam/403playground/backup/state-20160521123030.export\"\r\n```"}}
{"actor":{"display_login":"seliopou"}}