package statsd-client

  1. Overview
  2. Docs
On This Page
  1. Error log

statsd-client 1.0.1

Error log

The package failed to build. The error log from opam follows.

Opam plugin "depext" may require upgrading/reinstalling. Reinstall the plugin on the current switch? [Y/n] y
The following actions will be performed:
  - recompile opam-depext 1.2.3

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved opam-depext.1.2.3  (cached)
-> removed   opam-depext.1.2.3
-> installed opam-depext.1.2.3
Done.

<><> opam-depext.1.2.3 installed successfully <><><><><><><><><><><><><><><><><>
=> opam-depext is unnecessary when used with opam >= 2.1. Please use opam install directly instead
# Run eval $(opam env) to update the current shell environment

<><> Carrying on to "opam depext -viy statsd-client.1.0.1 seq.0.3.1 result.1.5 ocplib-endian.1.2 ocamlfind.1.9.6 ocaml-syntax-shims.1.0.0 mmap.1.2.0 lwt.5.5.0 dune-configurator.3.16.0 dune.3.16.0 csexp.1.5.2 cppo.1.7.0 bigarray-compat.1.1.0 base-bytes.base" 

Since version 2.1, opam now handles external dependencies alongside OCaml ones, and the `depext` plugin interface is provided for backwards compatibility only. Consider using your usual `opam install` command to install both OCaml and system dependencies, or `opam install <pkg> --depext-only` if you want to only install external dependencies.
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
[NOTE] Package dune is already installed (current version is 3.16.0).
[NOTE] Package ocamlfind is already installed (current version is 1.9.6).
The following actions will be performed:
  - install bigarray-compat    1.1.0
  - install result             1.5
  - install csexp              1.5.2
  - install seq                0.3.1
  - install base-bytes         base
  - install ocaml-syntax-shims 1.0.0
  - install cppo               1.7.0
  - install mmap               1.2.0
  - install dune-configurator  3.16.0
  - install ocplib-endian      1.2
  - install lwt                5.5.0
  - install statsd-client      1.0.1
===== 12 to install =====

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  2/36:
Processing  3/36:
Processing  4/36:
Processing  5/36:
-> installed base-bytes.base
Processing  6/36:
-> retrieved bigarray-compat.1.1.0  (cached)
Processing  7/36:
Processing  8/36: [bigarray-compat: dune build]
-> retrieved cppo.1.7.0  (cached)
Processing  9/36: [bigarray-compat: dune build]
Processing 10/36: [bigarray-compat: dune build] [cppo: dune build]
-> retrieved csexp.1.5.2  (cached)
Processing 11/36: [bigarray-compat: dune build] [cppo: dune build]
Processing 12/36: [bigarray-compat: dune build] [cppo: dune build] [csexp: dune build]
-> retrieved lwt.5.5.0  (cached)
Processing 13/36: [bigarray-compat: dune build] [cppo: dune build] [csexp: dune build]
-> retrieved mmap.1.2.0  (cached)
Processing 14/36: [bigarray-compat: dune build] [cppo: dune build] [csexp: dune build]
-> retrieved ocaml-syntax-shims.1.0.0  (cached)
Processing 15/36: [bigarray-compat: dune build] [cppo: dune build] [csexp: dune build]
Processing 16/36: [bigarray-compat: dune build] [cppo: dune build] [csexp: dune build] [ocaml-syntax-shims: dune build]
-> retrieved ocplib-endian.1.2  (cached)
Processing 17/36: [bigarray-compat: dune build] [cppo: dune build] [csexp: dune build] [ocaml-syntax-shims: dune build]
-> retrieved result.1.5  (cached)
Processing 18/36: [statsd-client.1.0.1: http] [bigarray-compat: dune build] [cppo: dune build] [csexp: dune build] [ocaml-syntax-shims: dune build]
Processing 19/36: [statsd-client.1.0.1: http] [bigarray-compat: dune build] [cppo: dune build] [csexp: dune build] [ocaml-syntax-shims: dune build] [result: dune build]
-> retrieved seq.0.3.1  (cached)
Processing 20/36: [statsd-client.1.0.1: http] [bigarray-compat: dune build] [cppo: dune build] [csexp: dune build] [ocaml-syntax-shims: dune build] [result: dune build] [seq: dune build]
-> compiled  bigarray-compat.1.1.0
Processing 20/36: [statsd-client.1.0.1: http] [cppo: dune build] [csexp: dune build] [ocaml-syntax-shims: dune build] [result: dune build] [seq: dune build]
-> installed bigarray-compat.1.1.0
Processing 21/36: [statsd-client.1.0.1: http] [cppo: dune build] [csexp: dune build] [ocaml-syntax-shims: dune build] [result: dune build] [seq: dune build]
Processing 22/36: [statsd-client.1.0.1: http] [cppo: dune build] [csexp: dune build] [mmap: dune build] [ocaml-syntax-shims: dune build] [result: dune build] [seq: dune build]
-> compiled  csexp.1.5.2
Processing 22/36: [statsd-client.1.0.1: http] [cppo: dune build] [mmap: dune build] [ocaml-syntax-shims: dune build] [result: dune build] [seq: dune build]
-> installed csexp.1.5.2
Processing 23/36: [statsd-client.1.0.1: http] [cppo: dune build] [mmap: dune build] [ocaml-syntax-shims: dune build] [result: dune build] [seq: dune build]
-> compiled  seq.0.3.1
Processing 23/36: [statsd-client.1.0.1: http] [cppo: dune build] [mmap: dune build] [ocaml-syntax-shims: dune build] [result: dune build]
-> installed seq.0.3.1
Processing 24/36: [statsd-client.1.0.1: http] [cppo: dune build] [mmap: dune build] [ocaml-syntax-shims: dune build] [result: dune build]
-> compiled  result.1.5
Processing 24/36: [statsd-client.1.0.1: http] [cppo: dune build] [mmap: dune build] [ocaml-syntax-shims: dune build]
-> installed result.1.5
Processing 25/36: [statsd-client.1.0.1: http] [cppo: dune build] [mmap: dune build] [ocaml-syntax-shims: dune build]
-> compiled  mmap.1.2.0
Processing 25/36: [statsd-client.1.0.1: http] [cppo: dune build] [ocaml-syntax-shims: dune build]
-> installed mmap.1.2.0
Processing 26/36: [statsd-client.1.0.1: http] [cppo: dune build] [ocaml-syntax-shims: dune build]
-> retrieved dune-configurator.3.16.0  (cached)
Processing 27/36: [statsd-client.1.0.1: http] [cppo: dune build] [dune-configurator: rm] [ocaml-syntax-shims: dune build]
-> compiled  cppo.1.7.0
Processing 27/36: [statsd-client.1.0.1: http] [dune-configurator: rm] [ocaml-syntax-shims: dune build]
-> installed cppo.1.7.0
Processing 28/36: [statsd-client.1.0.1: http] [dune-configurator: rm] [ocaml-syntax-shims: dune build]
Processing 29/36: [statsd-client.1.0.1: http] [dune-configurator: rm] [ocaml-syntax-shims: dune build] [ocplib-endian: dune build]
-> compiled  ocaml-syntax-shims.1.0.0
Processing 29/36: [statsd-client.1.0.1: http] [dune-configurator: rm] [ocplib-endian: dune build]
-> installed ocaml-syntax-shims.1.0.0
Processing 30/36: [statsd-client.1.0.1: http] [dune-configurator: rm] [ocplib-endian: dune build]
Processing 30/36: [dune-configurator: rm] [ocplib-endian: dune build]
-> retrieved statsd-client.1.0.1  (https://github.com/mfp/ocaml-statsd-client/archive/1.0.1.tar.gz)
Processing 30/36: [dune-configurator: dune build] [ocplib-endian: dune build]
-> compiled  ocplib-endian.1.2
Processing 30/36: [dune-configurator: dune build]
-> installed ocplib-endian.1.2
Processing 31/36: [dune-configurator: dune build]
+ /home/opam/.opam/4.04/bin/dune "build" "-p" "dune-configurator" "-j" "39" "@install" (CWD=/home/opam/.opam/4.04/.opam-switch/build/dune-configurator.3.16.0)
-> compiled  dune-configurator.3.16.0
-> installed dune-configurator.3.16.0
Processing 33/36: [lwt: dune exec]
+ /home/opam/.opam/4.04/bin/dune "exec" "-p" "lwt" "src/unix/config/discover.exe" "--" "--save" "--use-libev" "false" (CWD=/home/opam/.opam/4.04/.opam-switch/build/lwt.5.5.0)
Processing 33/36: [lwt: dune build]
+ /home/opam/.opam/4.04/bin/dune "build" "-p" "lwt" "-j" "39" (CWD=/home/opam/.opam/4.04/.opam-switch/build/lwt.5.5.0)
- (cd _build/default/src/unix && /usr/bin/gcc -std=gnu99 -O2 -fno-strict-aliasing -fwrapv -fcommon -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -fPIC -I. -g -I /home/opam/.opam/4.04/lib/ocaml -I /home/opam/.opam/4.04/lib/bigarray-compat -I /home/opam/.opam/4.04/lib/bytes -I /home/opam/.opam/4.04/lib/mmap -I /home/opam/.opam/4.04/lib/ocaml/threads -I /home/opam/.opam/4.04/lib/ocplib-endian -I /home/opam/.opam/4.04/lib/ocplib-endian/bigstring -I /home/opam/.opam/4.04/lib/result -I /home/opam/.opam/4.04/lib/seq -I ../core -o lwt_unix_stubs.o -c lwt_unix_stubs.c)
- lwt_unix_stubs.c: In function 'pipe_notification_send':
- lwt_unix_stubs.c:694:10: warning: 'buf' is used uninitialized [-Wuninitialized]
-   694 |   return write(notification_fds[1], &buf, 1);
-       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24,
-                  from /usr/include/signal.h:328,
-                  from lwt_unix_stubs.c:25:
- /usr/include/unistd.h:378:16: note: in a call to 'write' declared with attribute 'access (read_only, 2, 3)' here
-   378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
-       |                ^~~~~
- lwt_unix_stubs.c:693:8: note: 'buf' declared here
-   693 |   char buf;
-       |        ^~~
-> compiled  lwt.5.5.0
-> installed lwt.5.5.0
Processing 35/36: [statsd-client: make all]
+ /usr/bin/make "all" (CWD=/home/opam/.opam/4.04/.opam-switch/build/statsd-client.1.0.1)
- ocamlfind ocamlc -c statsd_client.mli -package lwt.unix
- ocamlfind: [WARNING] Package `threads': Linking problems may arise because of the missing -thread or -vmthread switch
- ocamlfind ocamlc -a -g statsd_client.ml \
-           -o statsd_client.cma -package lwt.unix
- ocamlfind: [WARNING] Package `threads': Linking problems may arise because of the missing -thread or -vmthread switch
- File "statsd_client.ml", line 141, characters 2-232:
- Error: Signature mismatch:
-        ...
-        Values do not match:
-          val socket :
-            ?cloexec:bool -> socket_domain -> socket_type -> int -> file_descr
-        is not included in
-          val socket :
-            Unix.socket_domain -> Unix.socket_type -> int -> file_descr
-        File "statsd_client.ml", line 22, characters 2-74:
-          Expected declaration
- make: *** [Makefile:7: all] Error 2
[ERROR] The compilation of statsd-client.1.0.1 failed at "make all".

#=== ERROR while compiling statsd-client.1.0.1 ================================#
# context              2.1.6 | linux/x86_64 | ocaml-base-compiler.4.04.2 | file:///src
# path                 ~/.opam/4.04/.opam-switch/build/statsd-client.1.0.1
# command              /usr/bin/make all
# exit-code            2
# env-file             ~/.opam/log/statsd-client-115-dd7ee9.env
# output-file          ~/.opam/log/statsd-client-115-dd7ee9.out
### output ###
# ocamlfind ocamlc -c statsd_client.mli -package lwt.unix
# ocamlfind: [WARNING] Package `threads': Linking problems may arise because of the missing -thread or -vmthread switch
# ocamlfind ocamlc -a -g statsd_client.ml \
#           -o statsd_client.cma -package lwt.unix
# ocamlfind: [WARNING] Package `threads': Linking problems may arise because of the missing -thread or -vmthread switch
# File "statsd_client.ml", line 141, characters 2-232:
# Error: Signature mismatch:
#        ...
#        Values do not match:
#          val socket :
#            ?cloexec:bool -> socket_domain -> socket_type -> int -> file_descr
#        is not included in
#          val socket :
#            Unix.socket_domain -> Unix.socket_type -> int -> file_descr
#        File "statsd_client.ml", line 22, characters 2-74:
#          Expected declaration
# make: *** [Makefile:7: all] Error 2



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build statsd-client 1.0.1
+- 
+- The following changes have been performed
| - install base-bytes         base
| - install bigarray-compat    1.1.0
| - install cppo               1.7.0
| - install csexp              1.5.2
| - install dune-configurator  3.16.0
| - install lwt                5.5.0
| - install mmap               1.2.0
| - install ocaml-syntax-shims 1.0.0
| - install ocplib-endian      1.2
| - install result             1.5
| - install seq                0.3.1
+- 
# Run eval $(opam env) to update the current shell environment

The former state can be restored with:
    /usr/bin/opam switch import "/home/opam/.opam/4.04/.opam-switch/backup/state-20240912201914.export"
'opam --cli=2.1 install statsd-client.1.0.1 seq.0.3.1 result.1.5 ocplib-endian.1.2 ocamlfind.1.9.6 ocaml-syntax-shims.1.0.0 mmap.1.2.0 lwt.5.5.0 dune-configurator.3.16.0 dune.3.16.0 csexp.1.5.2 cppo.1.7.0 bigarray-compat.1.1.0 base-bytes.base --verbose --yes --confirm-level=unsafe-yes' failed.
OCaml

Innovation. Community. Security.