package mariadb

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

mariadb 1.1.4

Error log

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

[NOTE] Package dune is already installed (current version is 3.17.2).
[NOTE] Package ocamlfind is already installed (current version is 1.9.8).
The following actions will be performed:
=== install 11 packages
  - install bigarray-compat   1.1.0
  - install conf-gcc          1.0
  - install conf-mariadb      2
  - install conf-pkg-config   4
  - install csexp             1.5.2
  - install ctypes            0.23.0
  - install dune-configurator 3.17.2
  - install integers          0.7.0
  - install mariadb           1.1.4
  - install ocamlbuild        0.15.0
  - install stdlib-shims      0.3.0

The following system packages will first need to be installed:
    libmariadb-dev pkg-config

<><> 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" "libmariadb-dev" "pkg-config"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package mysql-common.
- (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 ... 18745 files and directories currently installed.)
- Preparing to unpack .../0-mysql-common_5.8+1.1.0_all.deb ...
- Unpacking mysql-common (5.8+1.1.0) ...
- Selecting previously unselected package mariadb-common.
- Preparing to unpack .../1-mariadb-common_1%3a10.11.6-0+deb12u1_all.deb ...
- Unpacking mariadb-common (1:10.11.6-0+deb12u1) ...
- Selecting previously unselected package libmariadb3:amd64.
- Preparing to unpack .../2-libmariadb3_1%3a10.11.6-0+deb12u1_amd64.deb ...
- Unpacking libmariadb3:amd64 (1:10.11.6-0+deb12u1) ...
- Selecting previously unselected package libssl-dev:amd64.
- Preparing to unpack .../3-libssl-dev_3.0.15-1~deb12u1_amd64.deb ...
- Unpacking libssl-dev:amd64 (3.0.15-1~deb12u1) ...
- Selecting previously unselected package zlib1g-dev:amd64.
- Preparing to unpack .../4-zlib1g-dev_1%3a1.2.13.dfsg-1_amd64.deb ...
- Unpacking zlib1g-dev:amd64 (1:1.2.13.dfsg-1) ...
- Selecting previously unselected package libmariadb-dev.
- Preparing to unpack .../5-libmariadb-dev_1%3a10.11.6-0+deb12u1_amd64.deb ...
- Unpacking libmariadb-dev (1:10.11.6-0+deb12u1) ...
- Selecting previously unselected package libpkgconf3:amd64.
- Preparing to unpack .../6-libpkgconf3_1.8.1-1_amd64.deb ...
- Unpacking libpkgconf3:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../7-pkgconf-bin_1.8.1-1_amd64.deb ...
- Unpacking pkgconf-bin (1.8.1-1) ...
- Selecting previously unselected package pkgconf:amd64.
- Preparing to unpack .../8-pkgconf_1.8.1-1_amd64.deb ...
- Unpacking pkgconf:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkg-config:amd64.
- Preparing to unpack .../9-pkg-config_1.8.1-1_amd64.deb ...
- Unpacking pkg-config:amd64 (1.8.1-1) ...
- Setting up mysql-common (5.8+1.1.0) ...
- update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
- Setting up mariadb-common (1:10.11.6-0+deb12u1) ...
- update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
- Setting up libpkgconf3:amd64 (1.8.1-1) ...
- Setting up libssl-dev:amd64 (3.0.15-1~deb12u1) ...
- Setting up libmariadb3:amd64 (1:10.11.6-0+deb12u1) ...
- Setting up pkgconf-bin (1.8.1-1) ...
- Setting up zlib1g-dev:amd64 (1:1.2.13.dfsg-1) ...
- Setting up pkgconf:amd64 (1.8.1-1) ...
- Setting up pkg-config:amd64 (1.8.1-1) ...
- Setting up libmariadb-dev (1:10.11.6-0+deb12u1) ...
- Processing triggers for libc-bin (2.36-9+deb12u9) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved bigarray-compat.1.1.0  (cached)
-> retrieved csexp.1.5.2  (cached)
-> retrieved ctypes.0.23.0  (cached)
-> installed conf-gcc.1.0
-> installed conf-pkg-config.4
-> retrieved integers.0.7.0  (cached)
-> installed conf-mariadb.2
-> retrieved mariadb.1.1.4  (cached)
-> retrieved ocamlbuild.0.15.0  (cached)
-> installed bigarray-compat.1.1.0
-> installed csexp.1.5.2
-> retrieved stdlib-shims.0.3.0  (cached)
-> installed stdlib-shims.0.3.0
-> retrieved dune-configurator.3.17.2  (cached)
-> installed integers.0.7.0
-> installed dune-configurator.3.17.2
-> installed ocamlbuild.0.15.0
-> installed ctypes.0.23.0
[ERROR] The compilation of mariadb.1.1.4 failed at "make".

#=== ERROR while compiling mariadb.1.1.4 ======================================#
# context              2.3.0 | linux/x86_64 | ocaml-base-compiler.4.13.1 | file:///src
# path                 ~/.opam/4.13/.opam-switch/build/mariadb.1.1.4
# command              /usr/bin/make
# exit-code            2
# env-file             ~/.opam/log/mariadb-113-861222.env
# output-file          ~/.opam/log/mariadb-113-861222.out
### output ###
# ocaml setup.ml -build 
# File "./setup.ml", line 1775, characters 22-40:
# 1775 |         let compare = Pervasives.compare
#                              ^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Stdlib.Pervasives
# Use Stdlib instead.
# 
# If you need to stay compatible with OCaml < 4.07, you can use the 
# stdlib-shims library: https://github.com/ocaml/stdlib-shims
# File "setup.ml", line 3467, characters 16-34:
# Alert deprecated: module Stdlib.Pervasives
# Use Stdlib instead.
# 
# If you need to stay compatible with OCaml < 4.07, you can use the 
# stdlib-shims library: https://github.com/ocaml/stdlib-shims
# W: Cannot find source file matching module 'Ffi_generated' in library mariadb.
# W: Use InterfacePatterns or ImplementationPatterns to define this file with feature "source_patterns".
# W: Cannot find source file matching module 'Ffi_generated_types' in library mariadb.
# W: Use InterfacePatterns or ImplementationPatterns to define this file with feature "source_patterns".
# + ocamlfind ocamlopt unix.cmxa -I /home/opam/.opam/4.13/lib/ocamlbuild /home/opam/.opam/4.13/lib/ocamlbuild/ocamlbuildlib.cmxa -linkpkg myocamlbuild.ml /home/opam/.opam/4.13/lib/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
# + /home/opam/.opam/4.13/bin/ocamlfind ocamldep -package ctypes.stubs -modules bindings/ffi_bindings.ml > bindings/ffi_bindings.ml.depends
# + /home/opam/.opam/4.13/bin/ocamlfind ocamlc -c -g -annot -bin-annot -warn-error +1..45 -package ctypes.stubs -I bindings -o bindings/ffi_bindings.cmo bindings/ffi_bindings.ml
# + /home/opam/.opam/4.13/bin/ocamlfind ocamlc -a -warn-error +1..45 -I bindings bindings/ffi_bindings.cmo -o bindings/mariadb_bindings.cma
# + /home/opam/.opam/4.13/bin/ocamlfind ocamlopt -c -g -annot -bin-annot -warn-error +1..45 -package ctypes.stubs -I bindings -o bindings/ffi_bindings.cmx bindings/ffi_bindings.ml
# + /home/opam/.opam/4.13/bin/ocamlfind ocamlopt -a -warn-error +1..45 -I bindings bindings/ffi_bindings.cmx -o bindings/mariadb_bindings.cmxa
# + /home/opam/.opam/4.13/bin/ocamlfind ocamlopt -shared -I bindings bindings/mariadb_bindings.cmxa bindings/ffi_bindings.cmx -o bindings/mariadb_bindings.cmxs
# + /home/opam/.opam/4.13/bin/ocamlfind ocamldep -package ctypes.stubs -modules stubgen/ffi_stubgen.ml > stubgen/ffi_stubgen.ml.depends
# + /home/opam/.opam/4.13/bin/ocamlfind ocamlc -c -g -annot -bin-annot -I bindings -warn-error +1..45 -warn-error +1..45 -package ctypes.stubs -I stubgen -I bindings -o stubgen/ffi_stubgen.cmo stubgen/ffi_stubgen.ml
# + /home/opam/.opam/4.13/bin/ocamlfind ocamlc -linkpkg -g -warn-error +1..45 -linkpkg -package ctypes.stubs -I bindings -I stubgen bindings/mariadb_bindings.cma stubgen/ffi_stubgen.cmo -o stubgen/ffi_stubgen.byte
# + stubgen/ffi_stubgen.byte -c > lib/ffi_generated_stubs.c
# + /home/opam/.opam/4.13/bin/ocamlfind ocamlc -g -I lib -package ctypes -ccopt -I -ccopt /home/opam/.opam/4.13/lib/ctypes/stubs -package unix -package ctypes.stubs -c lib/ffi_generated_stubs.c
# + /home/opam/.opam/4.13/bin/ocamlfind ocamlc -g -I lib -package ctypes -ccopt -I -ccopt /home/opam/.opam/4.13/lib/ctypes/stubs -package unix -package ctypes.stubs -c lib/ffi_generated_stubs.c
# lib/ffi_generated_stubs.c: In function 'mariadb_stub_39_mysql_real_connect_start':
# lib/ffi_generated_stubs.c:294:29: warning: passing argument 1 of 'mysql_real_connect_start' from incompatible pointer type [-Wincompatible-pointer-types]
#   294 |    mysql_real_connect_start(x211, x212, x213, x214, x215, x216, x217,
#       |                             ^~~~
#       |                             |
#       |                             void **
# In file included from lib/ffi_generated_stubs.c:1:
# /usr/include/mariadb/mysql.h:661:54: note: expected 'MYSQL **' {aka 'struct st_mysql **'} but argument is of type 'void **'
#   661 | int         STDCALL mysql_real_connect_start(MYSQL **ret, MYSQL *mysql,
#       |                                              ~~~~~~~~^~~
# lib/ffi_generated_stubs.c: In function 'mariadb_stub_40_mysql_real_connect_cont':
# lib/ffi_generated_stubs.c:320:39: warning: passing argument 1 of 'mysql_real_connect_cont' from incompatible pointer type [-Wincompatible-pointer-types]
#   320 |    int x242 = mysql_real_connect_cont(x237, x238, x239);
#       |                                       ^~~~
#       |                                       |
#       |                                       void **
# /usr/include/mariadb/mysql.h:669:53: note: expected 'MYSQL **' {aka 'struct st_mysql **'} but argument is of type 'void **'
#   669 | int         STDCALL mysql_real_connect_cont(MYSQL **ret, MYSQL *mysql,
#       |                                             ~~~~~~~~^~~
# + mv ffi_generated_stubs.o lib/ffi_generated_stubs.o
# + /home/opam/.opam/4.13/bin/ocamlfind ocamlmklib -o lib/mariadb_stubs -g -lmariadb lib/ffi_generated_stubs.o
# + /home/opam/.opam/4.13/bin/ocamlfind ocamldep -package unix -package ctypes.stubs -modules lib/mariadb.mli > lib/mariadb.mli.depends
# + /home/opam/.opam/4.13/bin/ocamlfind ocamlc -c -g -annot -bin-annot -I bindings -ccopt -I -ccopt /home/opam/.opam/4.13/lib/ctypes/stubs -warn-error +1..45 -package unix -package ctypes.stubs -I lib -I bindings -o lib/mariadb.cmi lib/mariadb.mli
# + /home/opam/.opam/4.13/bin/ocamlfind ocamldep -package unix -package ctypes.stubs -modules lib/mariadb.ml > lib/mariadb.ml.depends
# + /home/opam/.opam/4.13/bin/ocamlfind ocamldep -package unix -package ctypes.stubs -modules lib/binding_wrappers.ml > lib/binding_wrappers.ml.depends
# + stubgen/ffi_stubgen.byte -ml > lib/ffi_generated.ml
# + /home/opam/.opam/4.13/bin/ocamlfind ocamldep -package unix -package ctypes.stubs -modules lib/ffi_generated.ml > lib/ffi_generated.ml.depends
# + /home/opam/.opam/4.13/bin/ocamlfind ocamldep -package ctypes.stubs -modules stubgen/ffi_types_stubgen.ml > stubgen/ffi_types_stubgen.ml.depends
# + /home/opam/.opam/4.13/bin/ocamlfind ocamlc -c -g -annot -bin-annot -I bindings -warn-error +1..45 -warn-error +1..45 -package ctypes.stubs -I stubgen -I bindings -o stubgen/ffi_types_stubgen.cmo stubgen/ffi_types_stubgen.ml
# + /home/opam/.opam/4.13/bin/ocamlfind ocamlc -linkpkg -g -warn-error +1..45 -linkpkg -package ctypes.stubs -I bindings -I stubgen bindings/mariadb_bindings.cma stubgen/ffi_types_stubgen.cmo -o stubgen/ffi_types_stubgen.byte
# + stubgen/ffi_types_stubgen.byte > stubgen/ffi_ml_types_stubgen.c
# + gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC  -D_FILE_OFFSET_BITS=64  stubgen/ffi_ml_types_stubgen.c -I /home/opam/.opam/4.13/lib/ctypes/stubs -I /home/opam/.opam/4.13/lib/ocaml -o stubgen/ffi_ml_types_subgen
# + gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC  -D_FILE_OFFSET_BITS=64  stubgen/ffi_ml_types_stubgen.c -I /home/opam/.opam/4.13/lib/ctypes/stubs -I /home/opam/.opam/4.13/lib/ocaml -o stubgen/ffi_ml_types_subgen
# stubgen/ffi_ml_types_stubgen.c:4:10: fatal error: ctypes_cstubs_internals.h: No such file or directory
#     4 | #include "ctypes_cstubs_internals.h"
#       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
# compilation terminated.
# Command exited with code 1.
# E: Failure("Command ''/home/opam/.opam/4.13/bin/ocamlbuild' bindings/mariadb_bindings.cma bindings/mariadb_bindings.cmxa bindings/mariadb_bindings.a bindings/mariadb_bindings.cmxs lib/libmariadb_stubs.a lib/dllmariadb_stubs.so lib/mariadb.cma lib/mariadb.cmxa lib/mariadb.a lib/mariadb.cmxs stubgen/ffi_stubgen.byte stubgen/ffi_types_stubgen.byte examples/select/nonblocking_select_example.native examples/select/nonblocking_select_stress_test.native examples/blocking/blocking_example.native examples/blocking/blocking_stress_test.native -use-ocamlfind -tag debug' terminated with error code 10")
# make: *** [Makefile:7: build] Error 1



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build mariadb 1.1.4
+- 
+- The following changes have been performed
| - install bigarray-compat   1.1.0
| - install conf-gcc          1.0
| - install conf-mariadb      2
| - install conf-pkg-config   4
| - install csexp             1.5.2
| - install ctypes            0.23.0
| - install dune-configurator 3.17.2
| - install integers          0.7.0
| - install ocamlbuild        0.15.0
| - install stdlib-shims      0.3.0
+- 
# 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.13/.opam-switch/backup/state-20250206040623.export"
OCaml

Innovation. Community. Security.