(for PR #28222)

2025-07-22 12:24.49: New job: test ocurl.0.7.7 with lwt.6.0.0~alpha01, using opam 2.3
                              from https://github.com/ocaml/opam-repository.git#refs/pull/28222/head (381d421c95f23c7e41d7bd80fe4ee0fa7b4fca2f)
                              on debian-12-ocaml-4.14/amd64

To reproduce locally:

cd $(mktemp -d)
git clone --recursive "https://github.com/ocaml/opam-repository.git" && cd "opam-repository" && git fetch origin "refs/pull/28222/head" && git reset --hard 381d421c
git fetch origin master
git merge --no-edit 14fd69dba01fe02a6cbf63a81a67897e0f52cbfc
cat > ../Dockerfile <<'END-OF-DOCKERFILE'
FROM ocaml/opam:debian-12-ocaml-4.14@sha256:4216ef78f0a2edc0e9ef5d391d2d742bcfb67b1d97dcc5502a71bcab91cf7cca
USER 1000:1000
WORKDIR /home/opam
RUN sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam
RUN opam init --reinit -ni
RUN opam option solver=builtin-0install && opam config report
ENV OPAMDOWNLOADJOBS="1"
ENV OPAMERRLOGLEN="0"
ENV OPAMPRECISETRACKING="1"
ENV CI="true"
ENV OPAM_REPO_CI="true"
RUN rm -rf opam-repository/
COPY --chown=1000:1000 . opam-repository/
RUN opam repository set-url --strict default opam-repository/
RUN opam update --depexts || true
RUN opam pin add -k version -yn lwt.6.0.0~alpha01 6.0.0~alpha01
RUN opam reinstall lwt.6.0.0~alpha01; \
    res=$?; \
    test "$res" != 31 && exit "$res"; \
    export OPAMCLI=2.0; \
    build_dir=$(opam var prefix)/.opam-switch/build; \
    failed=$(ls "$build_dir"); \
    partial_fails=""; \
    for pkg in $failed; do \
    if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"debian-12\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'lwt.6.0.0~alpha01' && partial_fails="$partial_fails $pkg"; \
    done; \
    test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
    exit 1
RUN opam reinstall ocurl.0.7.7; \
    res=$?; \
    test "$res" != 31 && exit "$res"; \
    export OPAMCLI=2.0; \
    build_dir=$(opam var prefix)/.opam-switch/build; \
    failed=$(ls "$build_dir"); \
    partial_fails=""; \
    for pkg in $failed; do \
    if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"debian-12\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'ocurl.0.7.7' && partial_fails="$partial_fails $pkg"; \
    done; \
    test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
    exit 1
RUN (opam reinstall --with-test ocurl.0.7.7) || true
RUN opam reinstall --with-test --verbose ocurl.0.7.7; \
    res=$?; \
    test "$res" != 31 && exit "$res"; \
    export OPAMCLI=2.0; \
    build_dir=$(opam var prefix)/.opam-switch/build; \
    failed=$(ls "$build_dir"); \
    partial_fails=""; \
    for pkg in $failed; do \
    if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"debian-12\""; then \
    echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field."; \
    fi; \
    test "$pkg" != 'ocurl.0.7.7' && partial_fails="$partial_fails $pkg"; \
    done; \
    test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}"; \
    exit 1

END-OF-DOCKERFILE
docker build -f ../Dockerfile .

2025-07-22 12:24.49: Using cache hint "ocaml/opam:debian-12-ocaml-4.14@sha256:4216ef78f0a2edc0e9ef5d391d2d742bcfb67b1d97dcc5502a71bcab91cf7cca-lwt.6.0.0~alpha01-ocurl.0.7.7-381d421c95f23c7e41d7bd80fe4ee0fa7b4fca2f"
2025-07-22 12:24.49: Using OBuilder spec:
((from ocaml/opam:debian-12-ocaml-4.14@sha256:4216ef78f0a2edc0e9ef5d391d2d742bcfb67b1d97dcc5502a71bcab91cf7cca)
 (user (uid 1000) (gid 1000))
 (workdir /home/opam)
 (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
 (run (network host)
      (shell "opam init --reinit --config .opamrc-sandbox -ni"))
 (run (shell "opam option solver=builtin-0install && opam config report"))
 (env OPAMDOWNLOADJOBS 1)
 (env OPAMERRLOGLEN 0)
 (env OPAMPRECISETRACKING 1)
 (env CI true)
 (env OPAM_REPO_CI true)
 (run (shell "rm -rf opam-repository/"))
 (copy (src .) (dst opam-repository/))
 (run (shell "opam repository set-url --strict default opam-repository/"))
 (run (network host)
      (shell "opam update --depexts || true"))
 (run (shell "opam pin add -k version -yn lwt.6.0.0~alpha01 6.0.0~alpha01"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall lwt.6.0.0~alpha01;\
             \n        res=$?;\
             \n        test \"$res\" != 31 && exit \"$res\";\
             \n        export OPAMCLI=2.0;\
             \n        build_dir=$(opam var prefix)/.opam-switch/build;\
             \n        failed=$(ls \"$build_dir\");\
             \n        partial_fails=\"\";\
             \n        for pkg in $failed; do\
             \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-12\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'lwt.6.0.0~alpha01' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
 (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
      (network host)
      (shell  "opam reinstall ocurl.0.7.7;\
             \n        res=$?;\
             \n        test \"$res\" != 31 && exit \"$res\";\
             \n        export OPAMCLI=2.0;\
             \n        build_dir=$(opam var prefix)/.opam-switch/build;\
             \n        failed=$(ls \"$build_dir\");\
             \n        partial_fails=\"\";\
             \n        for pkg in $failed; do\
             \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-12\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'ocurl.0.7.7' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
 (run (network host)
      (shell "(opam reinstall --with-test ocurl.0.7.7) || true"))
 (run (shell  "opam reinstall --with-test --verbose ocurl.0.7.7;\
             \n        res=$?;\
             \n        test \"$res\" != 31 && exit \"$res\";\
             \n        export OPAMCLI=2.0;\
             \n        build_dir=$(opam var prefix)/.opam-switch/build;\
             \n        failed=$(ls \"$build_dir\");\
             \n        partial_fails=\"\";\
             \n        for pkg in $failed; do\
             \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-12\\\"\"; then\
             \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
             \n          fi;\
             \n          test \"$pkg\" != 'ocurl.0.7.7' && partial_fails=\"$partial_fails $pkg\";\
             \n        done;\
             \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
             \n        exit 1"))
)

2025-07-22 12:24.49: Waiting for resource in pool OCluster
2025-07-22 13:18.06: Waiting for worker…
2025-07-22 13:20.06: Got resource from pool OCluster
Building on laodoke.caelum.ci.dev
All commits already cached
Updating files:  67% (12157/17879)
Updating files:  68% (12158/17879)
Updating files:  69% (12337/17879)
Updating files:  70% (12516/17879)
Updating files:  71% (12695/17879)
Updating files:  72% (12873/17879)
Updating files:  73% (13052/17879)
Updating files:  74% (13231/17879)
Updating files:  75% (13410/17879)
Updating files:  76% (13589/17879)
Updating files:  77% (13767/17879)
Updating files:  78% (13946/17879)
Updating files:  79% (14125/17879)
Updating files:  80% (14304/17879)
Updating files:  81% (14482/17879)
Updating files:  82% (14661/17879)
Updating files:  83% (14840/17879)
Updating files:  84% (15019/17879)
Updating files:  85% (15198/17879)
Updating files:  86% (15376/17879)
Updating files:  87% (15555/17879)
Updating files:  88% (15734/17879)
Updating files:  89% (15913/17879)
Updating files:  90% (16092/17879)
Updating files:  91% (16270/17879)
Updating files:  92% (16449/17879)
Updating files:  93% (16628/17879)
Updating files:  94% (16807/17879)
Updating files:  95% (16986/17879)
Updating files:  96% (17164/17879)
Updating files:  97% (17343/17879)
Updating files:  98% (17522/17879)
Updating files:  99% (17701/17879)
Updating files: 100% (17879/17879)
Updating files: 100% (17879/17879), done.
HEAD is now at 14fd69dba0 Merge pull request #28217 from sim642/opam-state-2.4-upper-bounds
Updating 14fd69dba0..381d421c95
Fast-forward
 packages/lwt/lwt.6.0.0~alpha01/opam               | 69 +++++++++++++++++++++++
 packages/lwt_direct/lwt_direct.6.0.0~alpha01/opam | 44 +++++++++++++++
 packages/lwt_log/lwt_log.1.1.0/opam               |  2 +-
 packages/lwt_log/lwt_log.1.1.1/opam               |  2 +-
 packages/lwt_log/lwt_log.1.1.2/opam               |  2 +-
 5 files changed, 116 insertions(+), 3 deletions(-)
 create mode 100644 packages/lwt/lwt.6.0.0~alpha01/opam
 create mode 100644 packages/lwt_direct/lwt_direct.6.0.0~alpha01/opam

(from ocaml/opam:debian-12-ocaml-4.14@sha256:4216ef78f0a2edc0e9ef5d391d2d742bcfb67b1d97dcc5502a71bcab91cf7cca)
Unable to find image 'ocaml/opam:debian-12-ocaml-4.14@sha256:4216ef78f0a2edc0e9ef5d391d2d742bcfb67b1d97dcc5502a71bcab91cf7cca' locally
docker.io/ocaml/opam@sha256:4216ef78f0a2edc0e9ef5d391d2d742bcfb67b1d97dcc5502a71bcab91cf7cca: Pulling from ocaml/opam
010b17fc78a8: Pulling fs layer
010b17fc78a8: Verifying Checksum
010b17fc78a8: Download complete
010b17fc78a8: Pull complete
Digest: sha256:4216ef78f0a2edc0e9ef5d391d2d742bcfb67b1d97dcc5502a71bcab91cf7cca
Status: Downloaded newer image for ocaml/opam@sha256:4216ef78f0a2edc0e9ef5d391d2d742bcfb67b1d97dcc5502a71bcab91cf7cca
2025-07-22 13:20.15 ---> using "bdea20d69702e45393a0b0f1780f2fd036aae0c7f0fb3d2d6afe87f5376157fc" from cache

/: (user (uid 1000) (gid 1000))

/: (workdir /home/opam)

/home/opam: (run (shell "sudo ln -f /usr/bin/opam-2.3 /usr/bin/opam"))
2025-07-22 13:20.15 ---> using "ee71950878321ce155700562b11a0514307f63e65f7478d54e41eb7be44564b6" from cache

/home/opam: (run (network host)
                 (shell "opam init --reinit --config .opamrc-sandbox -ni"))
Configuring from /home/opam/.opamrc-sandbox, then /home/opam/.opamrc, and finally from built-in defaults.
Checking for available remotes: rsync and local, git.
  - you won't be able to use mercurial repositories unless you install the hg command on your system.
  - you won't be able to use darcs repositories unless you install the darcs command on your system.

This development version of opam requires an update to the layout of /home/opam/.opam from version 2.0 to version 2.2, which can't be reverted.
You may want to back it up before going further.

Continue? [y/n] y
Format upgrade done.

<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised
2025-07-22 13:20.15 ---> using "a7832be132102734df19669daf0993667820454fb4d7c53d26819850a712f475" from cache

/home/opam: (run (shell "opam option solver=builtin-0install && opam config report"))
Set to 'builtin-0install' the field solver in global configuration
# opam config report
# opam-version         2.3.0 (35acd0c5abc5e66cdbd5be16ba77aa6c33a4c724)
# self-upgrade         no
# system               arch=x86_64 os=linux os-distribution=debian os-version=12
# solver               builtin-0install
# install-criteria     -changed,-count[avoid-version,solution]
# upgrade-criteria     -count[avoid-version,solution]
# jobs                 71
# repositories         1 (version-controlled)
# pinned               1 (version)
# current-switch       4.14
# invariant            ["ocaml-base-compiler" {= "4.14.2"}]
# compiler-packages    ocaml-base-compiler.4.14.2, ocaml-options-vanilla.1
# ocaml:native         true
# ocaml:native-tools   true
# ocaml:native-dynlink true
# ocaml:stubsdir       /home/opam/.opam/4.14/lib/ocaml/stublibs:/home/opam/.opam/4.14/lib/ocaml
# ocaml:preinstalled   false
# ocaml:compiler       4.14.2
2025-07-22 13:20.15 ---> using "aa2cbbd7d952c62c70a303b10ea47bfb39bfbc5ca8a6dcd87eaca9df308252e0" from cache

/home/opam: (env OPAMDOWNLOADJOBS 1)

/home/opam: (env OPAMERRLOGLEN 0)

/home/opam: (env OPAMPRECISETRACKING 1)

/home/opam: (env CI true)

/home/opam: (env OPAM_REPO_CI true)

/home/opam: (run (shell "rm -rf opam-repository/"))
2025-07-22 13:20.15 ---> using "3c7bfa3ccbe6e216ad7928c76c0026a183769750502f7875b3385fa810369906" from cache

/home/opam: (copy (src .) (dst opam-repository/))
2025-07-22 13:20.17 ---> using "22f300dc875bc070b45198c973d26d79724a6b311c25e1c1dc873690ac3b781c" from cache

/home/opam: (run (shell "opam repository set-url --strict default opam-repository/"))
[default] Initialised
2025-07-22 13:20.17 ---> using "5c9e3adcefff8dffac8cbc95a529d8d761c8cb1b0977851c9d370007014514ec" from cache

/home/opam: (run (network host)
                 (shell "opam update --depexts || true"))
+ /usr/bin/sudo "apt-get" "update"
- Hit:1 http://deb.debian.org/debian bookworm InRelease
- Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
- Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
- Fetched 103 kB in 0s (342 kB/s)
- Reading package lists...
- 
2025-07-22 13:20.17 ---> using "a2e44423a34c28cd4f374b9db36fd7b84f29ed2d6b6ae9baf94f051eea0a6658" from cache

/home/opam: (run (shell "opam pin add -k version -yn lwt.6.0.0~alpha01 6.0.0~alpha01"))
lwt is now pinned to version 6.0.0~alpha01
2025-07-22 13:20.17 ---> using "6649a62b0acf8cb62c880e844607ac39d10fbc97547c13bc54d3b66679b15b64" from cache

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall lwt.6.0.0~alpha01;\
                        \n        res=$?;\
                        \n        test \"$res\" != 31 && exit \"$res\";\
                        \n        export OPAMCLI=2.0;\
                        \n        build_dir=$(opam var prefix)/.opam-switch/build;\
                        \n        failed=$(ls \"$build_dir\");\
                        \n        partial_fails=\"\";\
                        \n        for pkg in $failed; do\
                        \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-12\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'lwt.6.0.0~alpha01' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
lwt.6.0.0~alpha01 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 9 packages
  - install base-bytes        base                   [required by ocplib-endian]
  - install cppo              1.8.0                  [required by lwt]
  - install csexp             1.5.2                  [required by dune-configurator]
  - install domain_shims      0.1.0                  [required by lwt]
  - install dune              3.19.1                 [required by lwt]
  - install dune-configurator 3.19.1                 [required by lwt]
  - install lwt               6.0.0~alpha01 (pinned)
  - install ocamlfind         1.9.8                  [required by base-bytes]
  - install ocplib-endian     1.2                    [required by lwt]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved cppo.1.8.0  (cached)
-> retrieved csexp.1.5.2  (cached)
-> retrieved domain_shims.0.1.0  (cached)
-> retrieved dune.3.19.1, dune-configurator.3.19.1  (cached)
-> retrieved lwt.6.0.0~alpha01  (cached)
-> retrieved ocamlfind.1.9.8  (cached)
-> retrieved ocplib-endian.1.2  (cached)
-> installed ocamlfind.1.9.8
-> installed base-bytes.base
-> installed dune.3.19.1
-> installed domain_shims.0.1.0
-> installed csexp.1.5.2
-> installed cppo.1.8.0
-> installed ocplib-endian.1.2
-> installed dune-configurator.3.19.1
-> installed lwt.6.0.0~alpha01
Done.
# To update the current shell environment, run: eval $(opam env)
2025-07-22 13:20.17 ---> using "4c36506109ba1383d13519a00a451cda67f7ee8ae93e3ab9f39d50275ebdaf6e" from cache

/home/opam: (run (cache (opam-archives (target /home/opam/.opam/download-cache)))
                 (network host)
                 (shell  "opam reinstall ocurl.0.7.7;\
                        \n        res=$?;\
                        \n        test \"$res\" != 31 && exit \"$res\";\
                        \n        export OPAMCLI=2.0;\
                        \n        build_dir=$(opam var prefix)/.opam-switch/build;\
                        \n        failed=$(ls \"$build_dir\");\
                        \n        partial_fails=\"\";\
                        \n        for pkg in $failed; do\
                        \n          if opam show -f x-ci-accept-failures: \"$pkg\" | grep -qF \"\\\"debian-12\\\"\"; then\
                        \n            echo \"A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.\";\
                        \n          fi;\
                        \n          test \"$pkg\" != 'ocurl.0.7.7' && partial_fails=\"$partial_fails $pkg\";\
                        \n        done;\
                        \n        test \"${partial_fails}\" != \"\" && echo \"opam-repo-ci detected dependencies failing: ${partial_fails}\";\
                        \n        exit 1"))
ocurl.0.7.7 is not installed. Install it? [y/n] y
The following actions will be performed:
=== install 2 packages
  - install conf-libcurl 2     [required by ocurl]
  - install ocurl        0.7.7

The following system packages will first need to be installed:
    libcurl4-gnutls-dev

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>

opam believes some required external dependencies are missing. opam can:
> 1. Run apt-get to install them (may need root/sudo access)
  2. Display the recommended apt-get command and wait while you run it manually (e.g. in another terminal)
  3. Continue anyway, and, upon success, permanently register that this external dependency is present, but not detectable
  4. Abort the installation

[1/2/3/4] 1

+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "libcurl4-gnutls-dev"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libcurl4-gnutls-dev:amd64.
- (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 18747 files and directories currently installed.)
- Preparing to unpack .../libcurl4-gnutls-dev_7.88.1-10+deb12u12_amd64.deb ...
- Unpacking libcurl4-gnutls-dev:amd64 (7.88.1-10+deb12u12) ...
- Setting up libcurl4-gnutls-dev:amd64 (7.88.1-10+deb12u12) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ocurl.0.7.7  (cached)
-> installed conf-libcurl.2
[ERROR] The compilation of ocurl.0.7.7 failed at "make".

#=== ERROR while compiling ocurl.0.7.7 ========================================#
# context              2.3.0 | linux/x86_64 | ocaml-base-compiler.4.14.2 | file:///home/opam/opam-repository
# path                 ~/.opam/4.14/.opam-switch/build/ocurl.0.7.7
# command              ~/.opam/opam-init/hooks/sandbox.sh build make
# exit-code            2
# env-file             ~/.opam/log/ocurl-7-c870c7.env
# output-file          ~/.opam/log/ocurl-7-c870c7.out
### output ###
# make[1]: Entering directory '/home/opam/.opam/4.14/.opam-switch/build/ocurl.0.7.7'
# make[1]: Leaving directory '/home/opam/.opam/4.14/.opam-switch/build/ocurl.0.7.7'
# make[1]: Entering directory '/home/opam/.opam/4.14/.opam-switch/build/ocurl.0.7.7'
# ocamlc.opt -c -g -bin-annot curl.mli -o curl.cmi
# ocamlc.opt -c -g -bin-annot curl.ml -o curl.cmo
# ocamlc.opt -c -ccopt "-g -O2  -DHAVE_CONFIG_H -Wall" curl-helper.c
# curl-helper.c:31:13: warning: "leave_blocking_section" is deprecated: use "caml_leave_blocking_section" instead
#    31 | void leave_blocking_section(void);
#       |             ^~~~~~~~~~~~~~~~~~~~~~                                                                 
# curl-helper.c:32:13: warning: "enter_blocking_section" is deprecated: use "caml_enter_blocking_section" instead
#    32 | void enter_blocking_section(void);
#       |             ^~~~~~~~~~~~~~~~~~~~~~                                                                 
# curl-helper.c: In function 'raiseError':
# curl-helper.c:675:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
#   675 |     exception = caml_named_value("CurlException");
#       |               ^
# curl-helper.c:680:13: warning: "raise_with_arg" is deprecated: use "caml_raise_with_arg" instead
#   680 |     raise_with_arg(*exception, exceptionData);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                     
# curl-helper.c: In function 'allocConnection':
# curl-helper.c:699:13: warning: "register_global_root" is deprecated: use "caml_register_global_root" instead
#   699 |     register_global_root(&connection->ocamlValues);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                            
# curl-helper.c: In function 'removeConnection':
# curl-helper.c:805:13: warning: "enter_blocking_section" is deprecated: use "caml_enter_blocking_section" instead
#   805 |       enter_blocking_section();
#       |             ^~~~~~~~~~~~~~~~~~~                                                                    
# curl-helper.c:807:13: warning: "leave_blocking_section" is deprecated: use "caml_leave_blocking_section" instead
#   807 |       leave_blocking_section();
#       |             ^~~~~~~~~~~~~~~~~~~                                                                    
# curl-helper.c:822:13: warning: "remove_global_root" is deprecated: use "caml_remove_global_root" instead
#   822 |     remove_global_root(&connection->ocamlValues);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                          
# curl-helper.c:838:9: warning: 'curl_formfree' is deprecated: since 7.56.0. Use curl_mime_free() [-Wdeprecated-declarations]
#   838 |         curl_formfree(connection->httpPostFirst);
#       |         ^~~~~~~~~~~~~
# In file included from curl-helper.c:15:
# /usr/include/x86_64-linux-gnu/curl/curl.h:2611:1: note: declared here
#  2611 | curl_formfree(struct curl_httppost *form);
#       | ^~~~~~~~~~~~~
# curl-helper.c: In function 'findConnection':
# curl-helper.c:910:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#   910 |     failwith("Unknown handle");
#       |             ^~~~~~~~~~~~~~~~~~~                                        
# curl-helper.c: In function 'cb_WRITEFUNCTION_nolock':
# curl-helper.c:977:13: warning: "alloc_string" is deprecated: use "caml_alloc_string" instead
#   977 |     str = alloc_string(size*nmemb);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~                                            
# curl-helper.c:982:13: warning: "callback_exn" is deprecated: use "caml_callback_exn" instead
#   982 |     result = callback_exn(Field(conn->ocamlValues, Ocaml_WRITEFUNCTION), str);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
# curl-helper.c: In function 'cb_WRITEFUNCTION':
# curl-helper.c:987:13: warning: "leave_blocking_section" is deprecated: use "caml_leave_blocking_section" instead
#   987 | WRAP_DATA_CALLBACK( WRITEFUNCTION)
#       |             ^~~~~~~~~~~~~~~~~~~~~~                                                                 
# curl-helper.c:987:13: warning: "enter_blocking_section" is deprecated: use "caml_enter_blocking_section" instead
# curl-helper.c: In function 'cb_READFUNCTION_nolock':
# curl-helper.c:998:13: warning: "callback_exn" is deprecated: use "caml_callback_exn" instead
#   998 |     result = callback_exn(Field(conn->ocamlValues, Ocaml_READFUNCTION),
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~        
# curl-helper.c:1006:13: warning: "string_length" is deprecated: use "caml_string_length" instead
#  1006 |     length = string_length(result);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~                                              
# curl-helper.c: In function 'cb_READFUNCTION':
# curl-helper.c:1020:13: warning: "leave_blocking_section" is deprecated: use "caml_leave_blocking_section" instead
#  1020 | WRAP_DATA_CALLBACK( READFUNCTION)
#       |             ^~~~~~~~~~~~~~~~~~~~~                                                                  
# curl-helper.c:1020:13: warning: "enter_blocking_section" is deprecated: use "caml_enter_blocking_section" instead
# curl-helper.c: In function 'cb_HEADERFUNCTION_nolock':
# curl-helper.c:1031:13: warning: "alloc_string" is deprecated: use "caml_alloc_string" instead
#  1031 |     str = alloc_string(size*nmemb);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~                                            
# curl-helper.c:1036:13: warning: "callback_exn" is deprecated: use "caml_callback_exn" instead
#  1036 |     result = callback_exn(Field(conn->ocamlValues, Ocaml_HEADERFUNCTION), str);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# curl-helper.c: In function 'cb_HEADERFUNCTION':
# curl-helper.c:1041:13: warning: "leave_blocking_section" is deprecated: use "caml_leave_blocking_section" instead
#  1041 | WRAP_DATA_CALLBACK( HEADERFUNCTION)
#       |             ^~~~~~~~~~~~~~~~~~~~~~~                                                                
# curl-helper.c:1041:13: warning: "enter_blocking_section" is deprecated: use "caml_enter_blocking_section" instead
# curl-helper.c: In function 'cb_PROGRESSFUNCTION_nolock':
# curl-helper.c:1056:13: warning: "copy_double" is deprecated: use "caml_copy_double" instead
#  1056 |     callbackData[0] = copy_double(dlTotal);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                  
# curl-helper.c:1057:13: warning: "copy_double" is deprecated: use "caml_copy_double" instead
#  1057 |     callbackData[1] = copy_double(dlNow);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                    
# curl-helper.c:1058:13: warning: "copy_double" is deprecated: use "caml_copy_double" instead
#  1058 |     callbackData[2] = copy_double(ulTotal);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                  
# curl-helper.c:1059:13: warning: "copy_double" is deprecated: use "caml_copy_double" instead
#  1059 |     callbackData[3] = copy_double(ulNow);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                    
# curl-helper.c:1061:13: warning: "callbackN_exn" is deprecated: use "caml_callbackN_exn" instead
#  1061 |     result = callbackN_exn(Field(conn->ocamlValues, Ocaml_PROGRESSFUNCTION),
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     
# curl-helper.c: In function 'cb_PROGRESSFUNCTION':
# curl-helper.c:1074:13: warning: "leave_blocking_section" is deprecated: use "caml_leave_blocking_section" instead
#  1074 |   leave_blocking_section();
#       |             ^~~~~~~~~~~~~~~                                                                        
# curl-helper.c:1076:13: warning: "enter_blocking_section" is deprecated: use "caml_enter_blocking_section" instead
#  1076 |   enter_blocking_section();
#       |             ^~~~~~~~~~~~~~~                                                                        
# curl-helper.c: In function 'cb_DEBUGFUNCTION_nolock':
# curl-helper.c:1096:13: warning: "alloc_string" is deprecated: use "caml_alloc_string" instead
#  1096 |     camlMessage = alloc_string(bufferLength);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                  
# curl-helper.c:1101:13: warning: "callback3_exn" is deprecated: use "caml_callback3_exn" instead
#  1101 |     callback3_exn(Field(conn->ocamlValues, Ocaml_DEBUGFUNCTION),
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                 
# curl-helper.c: In function 'cb_DEBUGFUNCTION':
# curl-helper.c:1116:13: warning: "leave_blocking_section" is deprecated: use "caml_leave_blocking_section" instead
#  1116 |   leave_blocking_section();
#       |             ^~~~~~~~~~~~~~~                                                                        
# curl-helper.c:1118:13: warning: "enter_blocking_section" is deprecated: use "caml_enter_blocking_section" instead
#  1118 |   enter_blocking_section();
#       |             ^~~~~~~~~~~~~~~                                                                        
# curl-helper.c: In function 'cb_IOCTLFUNCTION_nolock':
# curl-helper.c:1139:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  1139 |         failwith("Invalid IOCTL Cmd!");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~                                
# curl-helper.c:1143:13: warning: "callback2_exn" is deprecated: use "caml_callback2_exn" instead
#  1143 |     camlResult = callback2_exn(Field(conn->ocamlValues, Ocaml_IOCTLFUNCTION),
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    
# curl-helper.c: In function 'cb_IOCTLFUNCTION':
# curl-helper.c:1179:13: warning: "leave_blocking_section" is deprecated: use "caml_leave_blocking_section" instead
#  1179 |   leave_blocking_section();
#       |             ^~~~~~~~~~~~~~~                                                                        
# curl-helper.c:1181:13: warning: "enter_blocking_section" is deprecated: use "caml_enter_blocking_section" instead
#  1181 |   enter_blocking_section();
#       |             ^~~~~~~~~~~~~~~                                                                        
# curl-helper.c: In function 'cb_SEEKFUNCTION_nolock':
# curl-helper.c:1194:13: warning: "copy_int64" is deprecated: use "caml_copy_int64" instead
#  1194 |     camlOffset = copy_int64(offset);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~                                       
# curl-helper.c:1203:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  1203 |         failwith("Invalid seek code");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~                                 
# curl-helper.c:1205:13: warning: "callback2_exn" is deprecated: use "caml_callback2_exn" instead
#  1205 |     camlResult = callback2_exn(Field(conn->ocamlValues,
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                          
# curl-helper.c:1219:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  1219 |       default: failwith("Invalid seek result");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                        
# curl-helper.c: In function 'cb_SEEKFUNCTION':
# curl-helper.c:1230:13: warning: "leave_blocking_section" is deprecated: use "caml_leave_blocking_section" instead
#  1230 |   leave_blocking_section();
#       |             ^~~~~~~~~~~~~~~                                                                        
# curl-helper.c:1232:13: warning: "enter_blocking_section" is deprecated: use "caml_enter_blocking_section" instead
#  1232 |   enter_blocking_section();
#       |             ^~~~~~~~~~~~~~~                                                                        
# curl-helper.c: In function 'cb_OPENSOCKETFUNCTION_nolock':
# curl-helper.c:1254:13: warning: "callback_exn" is deprecated: use "caml_callback_exn" instead
#  1254 |       result = callback_exn(Field(conn->ocamlValues, Ocaml_OPENSOCKETFUNCTION), Val_int(sock));
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# curl-helper.c: In function 'cb_OPENSOCKETFUNCTION':
# curl-helper.c:1270:13: warning: "leave_blocking_section" is deprecated: use "caml_leave_blocking_section" instead
#  1270 |   leave_blocking_section();
#       |             ^~~~~~~~~~~~~~~                                                                        
# curl-helper.c:1272:13: warning: "enter_blocking_section" is deprecated: use "caml_enter_blocking_section" instead
#  1272 |   enter_blocking_section();
#       |             ^~~~~~~~~~~~~~~                                                                        
# curl-helper.c: In function 'helper_curl_global_init':
# curl-helper.c:1305:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  1305 |         failwith("Invalid Initialization Option");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                     
# In file included from curl-helper.c:18:
# curl-helper.c: In function 'handle_PROGRESSFUNCTION':
# /home/opam/.opam/4.14/lib/ocaml/caml/memory.h:344:10: warning: 'CURLOPT_PROGRESSFUNCTION' is deprecated: since 7.32.0. Use CURLOPT_XFERINFOFUNCTION [-Wdeprecated-declarations]
#   344 |   struct caml__roots_block caml__roots_##x; \
#       |          ^~~~~~~~~~~~~~~~~
# /home/opam/.opam/4.14/lib/ocaml/caml/memory.h:299:3: note: in expansion of macro 'CAMLxparam1'
#   299 |   CAMLxparam1 (x)
#       |   ^~~~~~~~~~~
# curl-helper.c:1358:5: note: in expansion of macro 'CAMLparam1'
#  1358 |     CAMLparam1(option); \
#       |     ^~~~~~~~~~
# curl-helper.c:1371:1: note: in expansion of macro 'SETOPT_FUNCTION'
#  1371 | SETOPT_FUNCTION( PROGRESS)
#       | ^~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:1295:3: note: declared here
#  1295 |   CURLOPTDEPRECATED(CURLOPT_PROGRESSFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 56,
#       |   ^~~~~~~~~~~~~~~~~
# curl-helper.c: In function 'handle_IOCTLFUNCTION':
# /home/opam/.opam/4.14/lib/ocaml/caml/memory.h:344:10: warning: 'CURLOPT_IOCTLFUNCTION' is deprecated: since 7.18.0. Use CURLOPT_SEEKFUNCTION [-Wdeprecated-declarations]
#   344 |   struct caml__roots_block caml__roots_##x; \
#       |          ^~~~~~~~~~~~~~~~~
# /home/opam/.opam/4.14/lib/ocaml/caml/memory.h:299:3: note: in expansion of macro 'CAMLxparam1'
#   299 |   CAMLxparam1 (x)
#       |   ^~~~~~~~~~~
# curl-helper.c:1358:5: note: in expansion of macro 'CAMLparam1'
#  1358 |     CAMLparam1(option); \
#       |     ^~~~~~~~~~
# curl-helper.c:1379:1: note: in expansion of macro 'SETOPT_FUNCTION'
#  1379 | SETOPT_FUNCTION( IOCTL)
#       | ^~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:1580:3: note: declared here
#  1580 |   CURLOPTDEPRECATED(CURLOPT_IOCTLFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 130,
#       |   ^~~~~~~~~~~~~~~~~
# /home/opam/.opam/4.14/lib/ocaml/caml/memory.h:344:10: warning: 'CURLOPT_IOCTLDATA' is deprecated: since 7.18.0. Use CURLOPT_SEEKDATA [-Wdeprecated-declarations]
#   344 |   struct caml__roots_block caml__roots_##x; \
#       |          ^~~~~~~~~~~~~~~~~
# /home/opam/.opam/4.14/lib/ocaml/caml/memory.h:299:3: note: in expansion of macro 'CAMLxparam1'
#   299 |   CAMLxparam1 (x)
#       |   ^~~~~~~~~~~
# curl-helper.c:1358:5: note: in expansion of macro 'CAMLparam1'
#  1358 |     CAMLparam1(option); \
#       |     ^~~~~~~~~~
# curl-helper.c:1379:1: note: in expansion of macro 'SETOPT_FUNCTION'
#  1379 | SETOPT_FUNCTION( IOCTL)
#       | ^~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:1582:3: note: declared here
#  1582 |   CURLOPTDEPRECATED(CURLOPT_IOCTLDATA, CURLOPTTYPE_CBPOINT, 131,
#       |   ^~~~~~~~~~~~~~~~~
# curl-helper.c: In function 'handle_NETRC':
# curl-helper.c:1519:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  1519 |         failwith("Invalid NETRC Option");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~                              
# curl-helper.c: In function 'handle_ENCODING':
# curl-helper.c:1566:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  1566 |         failwith("Invalid Encoding Option");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                           
# curl-helper.c: In function 'handle_PUT':
# /home/opam/.opam/4.14/lib/ocaml/caml/memory.h:344:10: warning: 'CURLOPT_PUT' is deprecated: since 7.12.1. Use CURLOPT_UPLOAD [-Wdeprecated-declarations]
#   344 |   struct caml__roots_block caml__roots_##x; \
#       |          ^~~~~~~~~~~~~~~~~
# /home/opam/.opam/4.14/lib/ocaml/caml/memory.h:299:3: note: in expansion of macro 'CAMLxparam1'
#   299 |   CAMLxparam1 (x)
#       |   ^~~~~~~~~~~
# curl-helper.c:1455:5: note: in expansion of macro 'CAMLparam1'
#  1455 |     CAMLparam1(option); \
#       |     ^~~~~~~~~~
# curl-helper.c:1466:32: note: in expansion of macro 'SETOPT_VAL_'
#  1466 | #define SETOPT_VAL(name, conv) SETOPT_VAL_(handle_##name, CURLOPT_##name, conv)
#       |                                ^~~~~~~~~~~
# curl-helper.c:1467:27: note: in expansion of macro 'SETOPT_VAL'
#  1467 | #define SETOPT_BOOL(name) SETOPT_VAL(name, Bool_val)
#       |                           ^~~~~~~~~~
# curl-helper.c:1580:1: note: in expansion of macro 'SETOPT_BOOL'
#  1580 | SETOPT_BOOL( PUT)
#       | ^~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:1286:3: note: declared here
#  1286 |   CURLOPTDEPRECATED(CURLOPT_PUT, CURLOPTTYPE_LONG, 54,
#       |   ^~~~~~~~~~~~~~~~~
# curl-helper.c: In function 'handle_HTTPPOST':
# curl-helper.c:1654:9: warning: 'curl_formfree' is deprecated: since 7.56.0. Use curl_mime_free() [-Wdeprecated-declarations]
#  1654 |         curl_formfree(conn->httpPostFirst);
#       |         ^~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2611:1: note: declared here
#  2611 | curl_formfree(struct curl_httppost *form);
#       | ^~~~~~~~~~~~~
# curl-helper.c:1669:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  1669 |                 failwith("Incorrect CURLFORM_CONTENT parameters");
#       |             ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     
# curl-helper.c:1675:17: warning: 'curl_formadd' is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
#  1675 |                 curl_formadd(&conn->httpPostFirst,
#       |                 ^~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2575:1: note: declared here
#  2575 | curl_formadd(struct curl_httppost **httppost,
#       | ^~~~~~~~~~~~
# curl-helper.c:1677:30: warning: 'CURLFORM_COPYNAME' is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
#  1677 |                              CURLFORM_COPYNAME,
#       |                              ^~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2500:3: note: declared here
#  2500 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
#       |   ^~~~~~~~~~~~~~~~~
# curl-helper.c:1679:30: warning: 'CURLFORM_NAMELENGTH' is deprecated: since 7.56.0.  [-Wdeprecated-declarations]
#  1679 |                              CURLFORM_NAMELENGTH,
#       |                              ^~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2502:3: note: declared here
#  2502 |   CURLFORM_NAMELENGTH      CURL_DEPRECATED(7.56.0, ""),
#       |   ^~~~~~~~~~~~~~~~~~~
# curl-helper.c:1680:13: warning: "string_length" is deprecated: use "caml_string_length" instead
#  1680 |                              string_length(Field(formItem, 0)),
#       |             ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                  
# curl-helper.c:1681:30: warning: 'CURLFORM_COPYCONTENTS' is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
#  1681 |                              CURLFORM_COPYCONTENTS,
#       |                              ^~~~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2503:3: note: declared here
#  2503 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
#       |   ^~~~~~~~~~~~~~~~~~~~~
# curl-helper.c:1683:30: warning: 'CURLFORM_CONTENTSLENGTH' is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
#  1683 |                              CURLFORM_CONTENTSLENGTH,
#       |                              ^~~~~~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2505:3: note: declared here
#  2505 |   CURLFORM_CONTENTSLENGTH  CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
#       |   ^~~~~~~~~~~~~~~~~~~~~~~
# curl-helper.c:1684:13: warning: "string_length" is deprecated: use "caml_string_length" instead
#  1684 |                              string_length(Field(formItem, 1)),
#       |             ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                  
# curl-helper.c:1691:17: warning: 'curl_formadd' is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
#  1691 |                 curl_formadd(&conn->httpPostFirst,
#       |                 ^~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2575:1: note: declared here
#  2575 | curl_formadd(struct curl_httppost **httppost,
#       | ^~~~~~~~~~~~
# curl-helper.c:1693:30: warning: 'CURLFORM_COPYNAME' is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
#  1693 |                              CURLFORM_COPYNAME,
#       |                              ^~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2500:3: note: declared here
#  2500 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
#       |   ^~~~~~~~~~~~~~~~~
# curl-helper.c:1695:30: warning: 'CURLFORM_NAMELENGTH' is deprecated: since 7.56.0.  [-Wdeprecated-declarations]
#  1695 |                              CURLFORM_NAMELENGTH,
#       |                              ^~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2502:3: note: declared here
#  2502 |   CURLFORM_NAMELENGTH      CURL_DEPRECATED(7.56.0, ""),
#       |   ^~~~~~~~~~~~~~~~~~~
# curl-helper.c:1696:13: warning: "string_length" is deprecated: use "caml_string_length" instead
#  1696 |                              string_length(Field(formItem, 0)),
#       |             ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                  
# curl-helper.c:1697:30: warning: 'CURLFORM_COPYCONTENTS' is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
#  1697 |                              CURLFORM_COPYCONTENTS,
#       |                              ^~~~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2503:3: note: declared here
#  2503 |   CURLFORM_COPYCONTENTS    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
#       |   ^~~~~~~~~~~~~~~~~~~~~
# curl-helper.c:1699:30: warning: 'CURLFORM_CONTENTSLENGTH' is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
#  1699 |                              CURLFORM_CONTENTSLENGTH,
#       |                              ^~~~~~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2505:3: note: declared here
#  2505 |   CURLFORM_CONTENTSLENGTH  CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
#       |   ^~~~~~~~~~~~~~~~~~~~~~~
# curl-helper.c:1700:13: warning: "string_length" is deprecated: use "caml_string_length" instead
#  1700 |                              string_length(Field(formItem, 1)),
#       |             ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                  
# curl-helper.c:1701:30: warning: 'CURLFORM_CONTENTTYPE' is deprecated: since 7.56.0. Use curl_mime_type() [-Wdeprecated-declarations]
#  1701 |                              CURLFORM_CONTENTTYPE,
#       |                              ^~~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2515:3: note: declared here
#  2515 |   CURLFORM_CONTENTTYPE     CURL_DEPRECATED(7.56.0, "Use curl_mime_type()"),
#       |   ^~~~~~~~~~~~~~~~~~~~
# curl-helper.c:1707:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  1707 |                 failwith("Incorrect CURLFORM_CONTENT parameters");
#       |             ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     
# curl-helper.c:1714:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  1714 |                 failwith("Incorrect CURLFORM_FILECONTENT parameters");
#       |             ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
# curl-helper.c:1720:17: warning: 'curl_formadd' is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
#  1720 |                 curl_formadd(&conn->httpPostFirst,
#       |                 ^~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2575:1: note: declared here
#  2575 | curl_formadd(struct curl_httppost **httppost,
#       | ^~~~~~~~~~~~
# curl-helper.c:1722:30: warning: 'CURLFORM_COPYNAME' is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
#  1722 |                              CURLFORM_COPYNAME,
#       |                              ^~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2500:3: note: declared here
#  2500 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
#       |   ^~~~~~~~~~~~~~~~~
# curl-helper.c:1724:30: warning: 'CURLFORM_NAMELENGTH' is deprecated: since 7.56.0.  [-Wdeprecated-declarations]
#  1724 |                              CURLFORM_NAMELENGTH,
#       |                              ^~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2502:3: note: declared here
#  2502 |   CURLFORM_NAMELENGTH      CURL_DEPRECATED(7.56.0, ""),
#       |   ^~~~~~~~~~~~~~~~~~~
# curl-helper.c:1725:13: warning: "string_length" is deprecated: use "caml_string_length" instead
#  1725 |                              string_length(Field(formItem, 0)),
#       |             ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                  
# curl-helper.c:1726:30: warning: 'CURLFORM_FILECONTENT' is deprecated: since 7.56.0. Use curl_mime_data_cb() [-Wdeprecated-declarations]
#  1726 |                              CURLFORM_FILECONTENT,
#       |                              ^~~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2506:3: note: declared here
#  2506 |   CURLFORM_FILECONTENT     CURL_DEPRECATED(7.56.0, "Use curl_mime_data_cb()"),
#       |   ^~~~~~~~~~~~~~~~~~~~
# curl-helper.c:1734:17: warning: 'curl_formadd' is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
#  1734 |                 curl_formadd(&conn->httpPostFirst,
#       |                 ^~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2575:1: note: declared here
#  2575 | curl_formadd(struct curl_httppost **httppost,
#       | ^~~~~~~~~~~~
# curl-helper.c:1736:30: warning: 'CURLFORM_COPYNAME' is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
#  1736 |                              CURLFORM_COPYNAME,
#       |                              ^~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2500:3: note: declared here
#  2500 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
#       |   ^~~~~~~~~~~~~~~~~
# curl-helper.c:1738:30: warning: 'CURLFORM_NAMELENGTH' is deprecated: since 7.56.0.  [-Wdeprecated-declarations]
#  1738 |                              CURLFORM_NAMELENGTH,
#       |                              ^~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2502:3: note: declared here
#  2502 |   CURLFORM_NAMELENGTH      CURL_DEPRECATED(7.56.0, ""),
#       |   ^~~~~~~~~~~~~~~~~~~
# curl-helper.c:1739:13: warning: "string_length" is deprecated: use "caml_string_length" instead
#  1739 |                              string_length(Field(formItem, 0)),
#       |             ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                  
# curl-helper.c:1740:30: warning: 'CURLFORM_FILECONTENT' is deprecated: since 7.56.0. Use curl_mime_data_cb() [-Wdeprecated-declarations]
#  1740 |                              CURLFORM_FILECONTENT,
#       |                              ^~~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2506:3: note: declared here
#  2506 |   CURLFORM_FILECONTENT     CURL_DEPRECATED(7.56.0, "Use curl_mime_data_cb()"),
#       |   ^~~~~~~~~~~~~~~~~~~~
# curl-helper.c:1742:30: warning: 'CURLFORM_CONTENTTYPE' is deprecated: since 7.56.0. Use curl_mime_type() [-Wdeprecated-declarations]
#  1742 |                              CURLFORM_CONTENTTYPE,
#       |                              ^~~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2515:3: note: declared here
#  2515 |   CURLFORM_CONTENTTYPE     CURL_DEPRECATED(7.56.0, "Use curl_mime_type()"),
#       |   ^~~~~~~~~~~~~~~~~~~~
# curl-helper.c:1748:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  1748 |                 failwith("Incorrect CURLFORM_FILECONTENT parameters");
#       |             ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
# curl-helper.c:1755:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  1755 |                 failwith("Incorrect CURLFORM_FILE parameters");
#       |             ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~        
# curl-helper.c:1761:17: warning: 'curl_formadd' is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
#  1761 |                 curl_formadd(&conn->httpPostFirst,
#       |                 ^~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2575:1: note: declared here
#  2575 | curl_formadd(struct curl_httppost **httppost,
#       | ^~~~~~~~~~~~
# curl-helper.c:1763:30: warning: 'CURLFORM_COPYNAME' is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
#  1763 |                              CURLFORM_COPYNAME,
#       |                              ^~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2500:3: note: declared here
#  2500 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
#       |   ^~~~~~~~~~~~~~~~~
# curl-helper.c:1765:30: warning: 'CURLFORM_NAMELENGTH' is deprecated: since 7.56.0.  [-Wdeprecated-declarations]
#  1765 |                              CURLFORM_NAMELENGTH,
#       |                              ^~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2502:3: note: declared here
#  2502 |   CURLFORM_NAMELENGTH      CURL_DEPRECATED(7.56.0, ""),
#       |   ^~~~~~~~~~~~~~~~~~~
# curl-helper.c:1766:13: warning: "string_length" is deprecated: use "caml_string_length" instead
#  1766 |                              string_length(Field(formItem, 0)),
#       |             ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                  
# curl-helper.c:1767:30: warning: 'CURLFORM_FILE' is deprecated: since 7.56.0. Use curl_mime_filedata() [-Wdeprecated-declarations]
#  1767 |                              CURLFORM_FILE,
#       |                              ^~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2509:3: note: declared here
#  2509 |   CURLFORM_FILE            CURL_DEPRECATED(7.56.0, "Use curl_mime_filedata()"),
#       |   ^~~~~~~~~~~~~
# curl-helper.c:1775:17: warning: 'curl_formadd' is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
#  1775 |                 curl_formadd(&conn->httpPostFirst,
#       |                 ^~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2575:1: note: declared here
#  2575 | curl_formadd(struct curl_httppost **httppost,
#       | ^~~~~~~~~~~~
# curl-helper.c:1777:30: warning: 'CURLFORM_COPYNAME' is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
#  1777 |                              CURLFORM_COPYNAME,
#       |                              ^~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2500:3: note: declared here
#  2500 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
#       |   ^~~~~~~~~~~~~~~~~
# curl-helper.c:1779:30: warning: 'CURLFORM_NAMELENGTH' is deprecated: since 7.56.0.  [-Wdeprecated-declarations]
#  1779 |                              CURLFORM_NAMELENGTH,
#       |                              ^~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2502:3: note: declared here
#  2502 |   CURLFORM_NAMELENGTH      CURL_DEPRECATED(7.56.0, ""),
#       |   ^~~~~~~~~~~~~~~~~~~
# curl-helper.c:1780:13: warning: "string_length" is deprecated: use "caml_string_length" instead
#  1780 |                              string_length(Field(formItem, 0)),
#       |             ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                  
# curl-helper.c:1781:30: warning: 'CURLFORM_FILE' is deprecated: since 7.56.0. Use curl_mime_filedata() [-Wdeprecated-declarations]
#  1781 |                              CURLFORM_FILE,
#       |                              ^~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2509:3: note: declared here
#  2509 |   CURLFORM_FILE            CURL_DEPRECATED(7.56.0, "Use curl_mime_filedata()"),
#       |   ^~~~~~~~~~~~~
# curl-helper.c:1783:30: warning: 'CURLFORM_CONTENTTYPE' is deprecated: since 7.56.0. Use curl_mime_type() [-Wdeprecated-declarations]
#  1783 |                              CURLFORM_CONTENTTYPE,
#       |                              ^~~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2515:3: note: declared here
#  2515 |   CURLFORM_CONTENTTYPE     CURL_DEPRECATED(7.56.0, "Use curl_mime_type()"),
#       |   ^~~~~~~~~~~~~~~~~~~~
# curl-helper.c:1789:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  1789 |                 failwith("Incorrect CURLFORM_FILE parameters");
#       |             ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~        
# curl-helper.c:1796:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  1796 |                 failwith("Incorrect CURLFORM_BUFFER parameters");
#       |             ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      
# curl-helper.c:1804:17: warning: 'curl_formadd' is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
#  1804 |                 curl_formadd(&conn->httpPostFirst,
#       |                 ^~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2575:1: note: declared here
#  2575 | curl_formadd(struct curl_httppost **httppost,
#       | ^~~~~~~~~~~~
# curl-helper.c:1806:30: warning: 'CURLFORM_COPYNAME' is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
#  1806 |                              CURLFORM_COPYNAME,
#       |                              ^~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2500:3: note: declared here
#  2500 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
#       |   ^~~~~~~~~~~~~~~~~
# curl-helper.c:1808:30: warning: 'CURLFORM_NAMELENGTH' is deprecated: since 7.56.0.  [-Wdeprecated-declarations]
#  1808 |                              CURLFORM_NAMELENGTH,
#       |                              ^~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2502:3: note: declared here
#  2502 |   CURLFORM_NAMELENGTH      CURL_DEPRECATED(7.56.0, ""),
#       |   ^~~~~~~~~~~~~~~~~~~
# curl-helper.c:1809:13: warning: "string_length" is deprecated: use "caml_string_length" instead
#  1809 |                              string_length(Field(formItem, 0)),
#       |             ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                  
# curl-helper.c:1810:30: warning: 'CURLFORM_BUFFER' is deprecated: since 7.56.0. Use curl_mime_filename() [-Wdeprecated-declarations]
#  1810 |                              CURLFORM_BUFFER,
#       |                              ^~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2511:3: note: declared here
#  2511 |   CURLFORM_BUFFER          CURL_DEPRECATED(7.56.0, "Use curl_mime_filename()"),
#       |   ^~~~~~~~~~~~~~~
# curl-helper.c:1812:30: warning: 'CURLFORM_BUFFERPTR' is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
#  1812 |                              CURLFORM_BUFFERPTR,
#       |                              ^~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2512:3: note: declared here
#  2512 |   CURLFORM_BUFFERPTR       CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
#       |   ^~~~~~~~~~~~~~~~~~
# curl-helper.c:1814:30: warning: 'CURLFORM_BUFFERLENGTH' is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
#  1814 |                              CURLFORM_BUFFERLENGTH,
#       |                              ^~~~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2513:3: note: declared here
#  2513 |   CURLFORM_BUFFERLENGTH    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
#       |   ^~~~~~~~~~~~~~~~~~~~~
# curl-helper.c:1815:13: warning: "string_length" is deprecated: use "caml_string_length" instead
#  1815 |                              string_length(Field(formItem, 2)),
#       |             ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                  
# curl-helper.c:1824:17: warning: 'curl_formadd' is deprecated: since 7.56.0. Use curl_mime_init() [-Wdeprecated-declarations]
#  1824 |                 curl_formadd(&conn->httpPostFirst,
#       |                 ^~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2575:1: note: declared here
#  2575 | curl_formadd(struct curl_httppost **httppost,
#       | ^~~~~~~~~~~~
# curl-helper.c:1826:30: warning: 'CURLFORM_COPYNAME' is deprecated: since 7.56.0. Use curl_mime_name() [-Wdeprecated-declarations]
#  1826 |                              CURLFORM_COPYNAME,
#       |                              ^~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2500:3: note: declared here
#  2500 |   CURLFORM_COPYNAME        CURL_DEPRECATED(7.56.0, "Use curl_mime_name()"),
#       |   ^~~~~~~~~~~~~~~~~
# curl-helper.c:1828:30: warning: 'CURLFORM_NAMELENGTH' is deprecated: since 7.56.0.  [-Wdeprecated-declarations]
#  1828 |                              CURLFORM_NAMELENGTH,
#       |                              ^~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2502:3: note: declared here
#  2502 |   CURLFORM_NAMELENGTH      CURL_DEPRECATED(7.56.0, ""),
#       |   ^~~~~~~~~~~~~~~~~~~
# curl-helper.c:1829:13: warning: "string_length" is deprecated: use "caml_string_length" instead
#  1829 |                              string_length(Field(formItem, 0)),
#       |             ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                  
# curl-helper.c:1830:30: warning: 'CURLFORM_BUFFER' is deprecated: since 7.56.0. Use curl_mime_filename() [-Wdeprecated-declarations]
#  1830 |                              CURLFORM_BUFFER,
#       |                              ^~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2511:3: note: declared here
#  2511 |   CURLFORM_BUFFER          CURL_DEPRECATED(7.56.0, "Use curl_mime_filename()"),
#       |   ^~~~~~~~~~~~~~~
# curl-helper.c:1832:30: warning: 'CURLFORM_BUFFERPTR' is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
#  1832 |                              CURLFORM_BUFFERPTR,
#       |                              ^~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2512:3: note: declared here
#  2512 |   CURLFORM_BUFFERPTR       CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
#       |   ^~~~~~~~~~~~~~~~~~
# curl-helper.c:1834:30: warning: 'CURLFORM_BUFFERLENGTH' is deprecated: since 7.56.0. Use curl_mime_data() [-Wdeprecated-declarations]
#  1834 |                              CURLFORM_BUFFERLENGTH,
#       |                              ^~~~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2513:3: note: declared here
#  2513 |   CURLFORM_BUFFERLENGTH    CURL_DEPRECATED(7.56.0, "Use curl_mime_data()"),
#       |   ^~~~~~~~~~~~~~~~~~~~~
# curl-helper.c:1835:13: warning: "string_length" is deprecated: use "caml_string_length" instead
#  1835 |                              string_length(Field(formItem, 2)),
#       |             ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                  
# curl-helper.c:1836:30: warning: 'CURLFORM_CONTENTTYPE' is deprecated: since 7.56.0. Use curl_mime_type() [-Wdeprecated-declarations]
#  1836 |                              CURLFORM_CONTENTTYPE,
#       |                              ^~~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2515:3: note: declared here
#  2515 |   CURLFORM_CONTENTTYPE     CURL_DEPRECATED(7.56.0, "Use curl_mime_type()"),
#       |   ^~~~~~~~~~~~~~~~~~~~
# curl-helper.c:1842:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  1842 |                 failwith("Incorrect CURLFORM_BUFFER parameters");
#       |             ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      
# curl-helper.c:1850:5: warning: 'CURLOPT_HTTPPOST' is deprecated: since 7.56.0. Use CURLOPT_MIMEPOST [-Wdeprecated-declarations]
#  1850 |     result = curl_easy_setopt(conn->connection,
#       |     ^~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:1195:3: note: declared here
#  1195 |   CURLOPTDEPRECATED(CURLOPT_HTTPPOST, CURLOPTTYPE_OBJECTPOINT, 24,
#       |   ^~~~~~~~~~~~~~~~~
# curl-helper.c: In function 'handle_TIMECONDITION':
# curl-helper.c:1889:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  1889 |         failwith("Invalid TIMECOND Option");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                           
# curl-helper.c: In function 'handle_KRB4LEVEL':
# curl-helper.c:1943:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  1943 |         failwith("Invalid KRB4 Option");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~                               
# curl-helper.c: In function 'handle_CLOSEPOLICY':
# curl-helper.c:1980:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  1980 |         failwith("Invalid CLOSEPOLICY Option");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                        
# curl-helper.c: In function 'handle_RANDOM_FILE':
# /home/opam/.opam/4.14/lib/ocaml/caml/memory.h:344:10: warning: 'CURLOPT_RANDOM_FILE' is deprecated: since 7.84.0. Serves no purpose anymore [-Wdeprecated-declarations]
#   344 |   struct caml__roots_block caml__roots_##x; \
#       |          ^~~~~~~~~~~~~~~~~
# /home/opam/.opam/4.14/lib/ocaml/caml/memory.h:299:3: note: in expansion of macro 'CAMLxparam1'
#   299 |   CAMLxparam1 (x)
#       |   ^~~~~~~~~~~
# curl-helper.c:1434:5: note: in expansion of macro 'CAMLparam1'
#  1434 |     CAMLparam1(option); \
#       |     ^~~~~~~~~~
# curl-helper.c:1992:1: note: in expansion of macro 'SETOPT_STRING'
#  1992 | SETOPT_STRING( RANDOM_FILE)
#       | ^~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:1364:3: note: declared here
#  1364 |   CURLOPTDEPRECATED(CURLOPT_RANDOM_FILE, CURLOPTTYPE_STRINGPOINT, 76,
#       |   ^~~~~~~~~~~~~~~~~
# curl-helper.c: In function 'handle_EGDSOCKET':
# /home/opam/.opam/4.14/lib/ocaml/caml/memory.h:344:10: warning: 'CURLOPT_EGDSOCKET' is deprecated: since 7.84.0. Serves no purpose anymore [-Wdeprecated-declarations]
#   344 |   struct caml__roots_block caml__roots_##x; \
#       |          ^~~~~~~~~~~~~~~~~
# /home/opam/.opam/4.14/lib/ocaml/caml/memory.h:299:3: note: in expansion of macro 'CAMLxparam1'
#   299 |   CAMLxparam1 (x)
#       |   ^~~~~~~~~~~
# curl-helper.c:1434:5: note: in expansion of macro 'CAMLparam1'
#  1434 |     CAMLparam1(option); \
#       |     ^~~~~~~~~~
# curl-helper.c:1993:1: note: in expansion of macro 'SETOPT_STRING'
#  1993 | SETOPT_STRING( EGDSOCKET)
#       | ^~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:1368:3: note: declared here
#  1368 |   CURLOPTDEPRECATED(CURLOPT_EGDSOCKET, CURLOPTTYPE_STRINGPOINT, 77,
#       |   ^~~~~~~~~~~~~~~~~
# curl-helper.c: In function 'handle_SSL_VERIFYHOST':
# curl-helper.c:2014:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  2014 |         failwith("Invalid SSLVERIFYHOST Option");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                      
# curl-helper.c: In function 'handle_HTTP_VERSION':
# curl-helper.c:2053:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  2053 |         failwith("Invalid HTTP_VERSION Option");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                       
# curl-helper.c: In function 'handle_DNS_USE_GLOBAL_CACHE':
# /home/opam/.opam/4.14/lib/ocaml/caml/memory.h:344:10: warning: 'CURLOPT_DNS_USE_GLOBAL_CACHE' is deprecated: since 7.11.1. Use CURLOPT_SHARE [-Wdeprecated-declarations]
#   344 |   struct caml__roots_block caml__roots_##x; \
#       |          ^~~~~~~~~~~~~~~~~
# /home/opam/.opam/4.14/lib/ocaml/caml/memory.h:299:3: note: in expansion of macro 'CAMLxparam1'
#   299 |   CAMLxparam1 (x)
#       |   ^~~~~~~~~~~
# curl-helper.c:1455:5: note: in expansion of macro 'CAMLparam1'
#  1455 |     CAMLparam1(option); \
#       |     ^~~~~~~~~~
# curl-helper.c:1466:32: note: in expansion of macro 'SETOPT_VAL_'
#  1466 | #define SETOPT_VAL(name, conv) SETOPT_VAL_(handle_##name, CURLOPT_##name, conv)
#       |                                ^~~~~~~~~~~
# curl-helper.c:1467:27: note: in expansion of macro 'SETOPT_VAL'
#  1467 | #define SETOPT_BOOL(name) SETOPT_VAL(name, Bool_val)
#       |                           ^~~~~~~~~~
# curl-helper.c:2065:1: note: in expansion of macro 'SETOPT_BOOL'
#  2065 | SETOPT_BOOL( DNS_USE_GLOBAL_CACHE)
#       | ^~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:1424:3: note: declared here
#  1424 |   CURLOPTDEPRECATED(CURLOPT_DNS_USE_GLOBAL_CACHE, CURLOPTTYPE_LONG, 91,
#       |   ^~~~~~~~~~~~~~~~~
# curl-helper.c: In function 'handle_HTTPAUTH':
# curl-helper.c:2122:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  2122 |             failwith("Invalid HTTPAUTH Value");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                        
# curl-helper.c: In function 'handle_PROXYAUTH':
# curl-helper.c:2183:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  2183 |             failwith("Invalid HTTPAUTH Value");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                        
# curl-helper.c: In function 'handle_IPRESOLVE':
# curl-helper.c:2232:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  2232 |         failwith("Invalid IPRESOLVE Value");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                           
# curl-helper.c: In function 'handle_FTP_SSL':
# curl-helper.c:2296:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  2296 |         failwith("Invalid FTP_SSL Value");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                             
# curl-helper.c: In function 'handle_FTPSSLAUTH':
# curl-helper.c:2343:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  2343 |         failwith("Invalid FTPSSLAUTH value");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                          
# curl-helper.c: In function 'handle_FTP_FILEMETHOD':
# curl-helper.c:2402:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  2402 |         failwith("Invalid FTP_FILEMETHOD value");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                      
# curl-helper.c: In function 'handle_SSH_AUTH_TYPES':
# curl-helper.c:2476:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  2476 |             failwith("Invalid CURLSSH_AUTH_TYPES Value");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~              
# curl-helper.c: In function 'handle_FTP_SSL_CCC':
# curl-helper.c:2529:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  2529 |         failwith("Invalid FTPSSL_CCC value");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                          
# curl-helper.c: In function 'handle_PROXYTYPE':
# curl-helper.c:2600:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  2600 |         failwith("Invalid curl proxy type");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                           
# curl-helper.c: In function 'handle_PROTOCOLS':
# curl-helper.c:2712:3: warning: 'CURLOPT_PROTOCOLS' is deprecated: since 7.85.0. Use CURLOPT_PROTOCOLS_STR [-Wdeprecated-declarations]
#  2712 |   handle_PROTOCOLSOPTION(CURLOPT_PROTOCOLS, conn, option);
#       |   ^~~~~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:1749:3: note: declared here
#  1749 |   CURLOPTDEPRECATED(CURLOPT_PROTOCOLS, CURLOPTTYPE_LONG, 181,
#       |   ^~~~~~~~~~~~~~~~~
# curl-helper.c: In function 'handle_REDIR_PROTOCOLS':
# curl-helper.c:2719:3: warning: 'CURLOPT_REDIR_PROTOCOLS' is deprecated: since 7.85.0. Use CURLOPT_REDIR_PROTOCOLS_STR [-Wdeprecated-declarations]
#  2719 |   handle_PROTOCOLSOPTION(CURLOPT_REDIR_PROTOCOLS, conn, option);
#       |   ^~~~~~~~~~~~~~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:1755:3: note: declared here
#  1755 |   CURLOPTDEPRECATED(CURLOPT_REDIR_PROTOCOLS, CURLOPTTYPE_LONG, 182,
#       |   ^~~~~~~~~~~~~~~~~
# curl-helper.c: In function 'helper_curl_easy_setopt':
# curl-helper.c:3163:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
#  3163 |           exception = caml_named_value("Curl.NotImplemented");
#       |                     ^
# curl-helper.c: In function 'helper_curl_easy_perform':
# curl-helper.c:3190:13: warning: "enter_blocking_section" is deprecated: use "caml_enter_blocking_section" instead
#  3190 |     enter_blocking_section();
#       |             ^~~~~~~~~~~~~~~~~                                                                      
# curl-helper.c:3192:13: warning: "leave_blocking_section" is deprecated: use "caml_leave_blocking_section" instead
#  3192 |     leave_blocking_section();
#       |             ^~~~~~~~~~~~~~~~~                                                                      
# curl-helper.c: In function 'convertStringList':
# curl-helper.c:3253:13: warning: "alloc_tuple" is deprecated: use "caml_alloc_tuple" instead
#  3253 |         next = alloc_tuple(2);
#       |             ^~~~~~~~~~~~~~~~~~                                               
# curl-helper.c: In function 'helper_curl_easy_getinfo':
# curl-helper.c:3364:9: warning: 'CURLINFO_SIZE_UPLOAD' is deprecated: since 7.55.0. Use CURLINFO_SIZE_UPLOAD_T [-Wdeprecated-declarations]
#  3364 |         curlResult = curl_easy_getinfo(connection->connection,
#       |         ^~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2838:3: note: declared here
#  2838 |   CURLINFO_SIZE_UPLOAD CURL_DEPRECATED(7.55.0, "Use CURLINFO_SIZE_UPLOAD_T")
#       |   ^~~~~~~~~~~~~~~~~~~~
# curl-helper.c:3374:9: warning: 'CURLINFO_SIZE_DOWNLOAD' is deprecated: since 7.55.0. Use CURLINFO_SIZE_DOWNLOAD_T [-Wdeprecated-declarations]
#  3374 |         curlResult = curl_easy_getinfo(connection->connection,
#       |         ^~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2841:3: note: declared here
#  2841 |   CURLINFO_SIZE_DOWNLOAD
#       |   ^~~~~~~~~~~~~~~~~~~~~~
# curl-helper.c:3384:9: warning: 'CURLINFO_SPEED_DOWNLOAD' is deprecated: since 7.55.0. Use CURLINFO_SPEED_DOWNLOAD_T [-Wdeprecated-declarations]
#  3384 |         curlResult = curl_easy_getinfo(connection->connection,
#       |         ^~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2845:3: note: declared here
#  2845 |   CURLINFO_SPEED_DOWNLOAD
#       |   ^~~~~~~~~~~~~~~~~~~~~~~
# curl-helper.c:3394:9: warning: 'CURLINFO_SPEED_UPLOAD' is deprecated: since 7.55.0. Use CURLINFO_SPEED_UPLOAD_T [-Wdeprecated-declarations]
#  3394 |         curlResult = curl_easy_getinfo(connection->connection,
#       |         ^~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2849:3: note: declared here
#  2849 |   CURLINFO_SPEED_UPLOAD
#       |   ^~~~~~~~~~~~~~~~~~~~~
# curl-helper.c:3447:9: warning: 'CURLINFO_CONTENT_LENGTH_DOWNLOAD' is deprecated: since 7.55.0. Use CURLINFO_CONTENT_LENGTH_DOWNLOAD_T [-Wdeprecated-declarations]
#  3447 |         curlResult = curl_easy_getinfo(connection->connection,
#       |         ^~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2858:3: note: declared here
#  2858 |   CURLINFO_CONTENT_LENGTH_DOWNLOAD
#       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# curl-helper.c:3457:9: warning: 'CURLINFO_CONTENT_LENGTH_UPLOAD' is deprecated: since 7.55.0. Use CURLINFO_CONTENT_LENGTH_UPLOAD_T [-Wdeprecated-declarations]
#  3457 |         curlResult = curl_easy_getinfo(connection->connection,
#       |         ^~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2863:3: note: declared here
#  2863 |   CURLINFO_CONTENT_LENGTH_UPLOAD
#       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# curl-helper.c:3587:9: warning: 'CURLINFO_LASTSOCKET' is deprecated: since 7.45.0. Use CURLINFO_ACTIVESOCKET [-Wdeprecated-declarations]
#  3587 |         curlResult = curl_easy_getinfo(connection->connection,
#       |         ^~~~~~~~~~
# /usr/include/x86_64-linux-gnu/curl/curl.h:2880:3: note: declared here
#  2880 |   CURLINFO_LASTSOCKET  CURL_DEPRECATED(7.45.0, "Use CURLINFO_ACTIVESOCKET")
#       |   ^~~~~~~~~~~~~~~~~~~
# curl-helper.c:3664:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  3664 |         failwith("Invalid CURLINFO Option");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                           
# curl-helper.c:3674:13: warning: "alloc" is deprecated: use "caml_alloc" instead
#  3674 |         result = alloc(1, StringValue);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~                          
# curl-helper.c:3679:13: warning: "alloc" is deprecated: use "caml_alloc" instead
#  3679 |         result = alloc(1, LongValue);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~                            
# curl-helper.c:3684:13: warning: "alloc" is deprecated: use "caml_alloc" instead
#  3684 |         result = alloc(1, DoubleValue);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~                          
# curl-helper.c:3685:13: warning: "copy_double" is deprecated: use "caml_copy_double" instead
#  3685 |         Store_field(result, 0, copy_double(doubleValue));
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                    
# curl-helper.c:3689:13: warning: "alloc" is deprecated: use "caml_alloc" instead
#  3689 |         result = alloc(1, StringListValue);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                      
# curl-helper.c: In function 'helper_curl_escape':
# curl-helper.c:3707:13: warning: "string_length" is deprecated: use "caml_string_length" instead
#  3707 |     curlResult = curl_escape(String_val(str), string_length(str));
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
# curl-helper.c: In function 'helper_curl_unescape':
# curl-helper.c:3724:13: warning: "string_length" is deprecated: use "caml_string_length" instead
#  3724 |     curlResult = curl_unescape(String_val(str), string_length(str));
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~             
# curl-helper.c: In function 'helper_curl_getdate':
# curl-helper.c:3744:13: warning: "copy_double" is deprecated: use "caml_copy_double" instead
#  3744 |     result = copy_double((double)curlResult);
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                
# curl-helper.c: In function 'caml_curl_multi_init':
# curl-helper.c:3917:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  3917 |     failwith("caml_curl_multi_init");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~                                  
# curl-helper.c: In function 'caml_curl_multi_cleanup':
# curl-helper.c:3941:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  3941 |     failwith("caml_curl_multi_cleanup");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~                               
# curl-helper.c: In function 'caml_curl_multi_add_handle':
# curl-helper.c:4064:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  4064 |     failwith("caml_curl_multi_add_handle");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                            
# curl-helper.c: In function 'caml_curl_multi_remove_handle':
# curl-helper.c:4082:13: warning: "failwith" is deprecated: use "caml_failwith" instead
#  4082 |     failwith("caml_curl_multi_remove_handle");
#       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                         
# curl-helper.c: In function 'raise_multi_error':
# curl-helper.c:4136:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
#  4136 |     exception = caml_named_value("Curl.Multi.Error");
#       |               ^
# curl-helper.c: In function 'caml_curl_multi_socket_all':
# curl-helper.c:4212:5: warning: 'curl_multi_socket_all' is deprecated: since 7.19.5. Use curl_multi_socket_action() [-Wdeprecated-declarations]
#  4212 |     rc = curl_multi_socket_all(h, &still_running);
#       |     ^~
# In file included from /usr/include/x86_64-linux-gnu/curl/curl.h:3191:
# /usr/include/x86_64-linux-gnu/curl/multi.h:330:1: note: declared here
#   330 | curl_multi_socket_all(CURLM *multi_handle, int *running_handles);
#       | ^~~~~~~~~~~~~~~~~~~~~
# curl-helper.c: In function 'caml_curl_multi_setopt':
# curl-helper.c:4415:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
#  4415 |           exception = caml_named_value("Curl.NotImplemented");
#       |                     ^
# ocamlmklib -oc curl-helper curl-helper.o -lcurl
# ocamlmklib -o curl curl.cmo -oc curl-helper -lcurl
# make[1]: 'libcurl-helper.a' is up to date.
# make[1]: 'dllcurl-helper.so' is up to date.
# ocamlfind c -package lwt -c -g -bin-annot curl_lwt.mli -o curl_lwt.cmi
# ocamlfind: [WARNING] Package `threads': Linking problems may arise because of the missing -thread or -vmthread switch
# ocamlfind c -package lwt.unix -c -g -bin-annot curl_lwt.ml -o curl_lwt.cmo
# ocamlfind: [WARNING] Package `threads': Linking problems may arise because of the missing -thread or -vmthread switch
# File "curl_lwt.ml", line 20, characters 24-45:
# 20 |   let timer_event = ref Lwt_engine.fake_event in
#                              ^^^^^^^^^^^^^^^^^^^^^
# Error: Unbound value Lwt_engine.fake_event
# make[1]: *** [Makefile:97: curl_lwt.cmo] Error 2
# make[1]: Leaving directory '/home/opam/.opam/4.14/.opam-switch/build/ocurl.0.7.7'
# make: *** [Makefile:61: all] Error 2



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build ocurl 0.7.7
+- 
+- The following changes have been performed
| - install conf-libcurl 2
+- 
# To update the current shell environment, run: eval $(opam env)

The former state can be restored with:
    /usr/bin/opam switch import "/home/opam/.opam/4.14/.opam-switch/backup/state-20250722132018.export"
[WARNING] OPAMCONFIRMLEVEL was ignored because CLI 2.0 was requested and it was introduced in 2.1.
[WARNING] OPAMCONFIRMLEVEL was ignored because CLI 2.0 was requested and it was introduced in 2.1.
"/usr/bin/env" "bash" "-c" "opam reinstall ocurl.0.7.7;
        res=$?;
        test "$res" != 31 && exit "$res";
        export OPAMCLI=2.0;
        build_dir=$(opam var prefix)/.opam-switch/build;
        failed=$(ls "$build_dir");
        partial_fails="";
        for pkg in $failed; do
          if opam show -f x-ci-accept-failures: "$pkg" | grep -qF "\"debian-12\""; then
            echo "A package failed and has been disabled for CI using the 'x-ci-accept-failures' field.";
          fi;
          test "$pkg" != 'ocurl.0.7.7' && partial_fails="$partial_fails $pkg";
        done;
        test "${partial_fails}" != "" && echo "opam-repo-ci detected dependencies failing: ${partial_fails}";
        exit 1" failed with exit status 1
2025-07-22 13:21.33: Job failed: Failed: Build failed
2025-07-22 13:21.33: Log analysis:
2025-07-22 13:21.33: >>> 
[ERROR] The compilation of ocurl.0.7.7 failed at "make".
 (score = 20)
2025-07-22 13:21.33: >>> 
# Error: Unbound value Lwt_engine.fake_event
 (score = 48)
2025-07-22 13:21.33: Unbound value Lwt_engine.fake_event