=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Building for ocaml-mysql-1.2.4
gmake[1]: Entering directory '/tmp/pkgbuild/databases/ocaml-mysql/work.alpha/ocaml-mysql-1.2.4'
ocamldep mysql.ml > ._d/mysql.d
ocamldep mysql.mli > ._bcdi/mysql.di
OCamlMakefile:1141: warning: pattern recipe did not update peer target '._ncdi/mysql.di'.
ocamlc -c -cc "gcc" -ccopt "-fPIC -O2 -mieee -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/mysql -DHAVE_CONFIG_H -Wall -Wextra \
			-DPIC -I/usr/pkg/include/mysql -I/usr/pkg/include/mysql/mysql -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/mysql  \
			    -o mysql_stubs.o " mysql_stubs.c
mysql_stubs.c:108: warning: "Some_val" redefined
  108 | #define Some_val(v) Field(v,0)
      | 
In file included from mysql_stubs.c:12:
/usr/pkg/lib/ocaml/caml/mlvalues.h:404: note: this is the location of the previous definition
  404 | #define Some_val(v) Field(v, 0)
      | 
In file included from /usr/include/string.h:127,
                 from mysql_stubs.c:7:
mysql_stubs.c: In function 'val_str_option':
/usr/pkg/lib/ocaml/caml/mlvalues.h:290:24: warning: passing argument 1 of '__builtin___memcpy_chk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  290 | #define String_val(x) ((const char *) Bp_val(x))
      |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
mysql_stubs.c:150:12: note: in expansion of macro 'String_val'
  150 |     memcpy(String_val(v), s, length);
      |            ^~~~~~~~~~
/usr/pkg/lib/ocaml/caml/mlvalues.h:290:24: note: expected 'void *' but argument is of type 'const char *'
  290 | #define String_val(x) ((const char *) Bp_val(x))
      |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
mysql_stubs.c:150:12: note: in expansion of macro 'String_val'
  150 |     memcpy(String_val(v), s, length);
      |            ^~~~~~~~~~
/usr/pkg/lib/ocaml/caml/mlvalues.h:290:24: warning: passing argument 1 of '__memcpy_ichk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  290 | #define String_val(x) ((const char *) Bp_val(x))
      |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
mysql_stubs.c:150:12: note: in expansion of macro 'String_val'
  150 |     memcpy(String_val(v), s, length);
      |            ^~~~~~~~~~
/usr/include/ssp/string.h:82:1: note: expected 'void * restrict' but argument is of type 'const char *'
   82 | __ssp_bos_icheck3_restrict(memcpy, void *, const void *)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
mysql_stubs.c: In function 'db_library_init':
mysql_stubs.c:290:23: warning: unused parameter 'v_unit' [-Wunused-parameter]
  290 | db_library_init(value v_unit)
      |                 ~~~~~~^~~~~~
mysql_stubs.c: At top level:
mysql_stubs.c:440:1: warning: missing initializer for field 'fixed_length' of 'struct custom_operations' [-Wmissing-field-initializers]
  440 | };
      | ^
In file included from mysql_stubs.c:17:
/usr/pkg/lib/ocaml/caml/custom.h:40:37: note: 'fixed_length' declared here
   40 |   const struct custom_fixed_length* fixed_length;
      |                                     ^~~~~~~~~~~~
mysql_stubs.c: In function 'db_escape':
mysql_stubs.c:581:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  581 |   s = String_val(str);
      |     ^
In file included from /usr/include/string.h:127,
                 from mysql_stubs.c:7:
/usr/pkg/lib/ocaml/caml/mlvalues.h:290:24: warning: passing argument 1 of '__builtin___memcpy_chk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  290 | #define String_val(x) ((const char *) Bp_val(x))
      |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
mysql_stubs.c:587:10: note: in expansion of macro 'String_val'
  587 |   memcpy(String_val(res), buf, esclen);
      |          ^~~~~~~~~~
/usr/pkg/lib/ocaml/caml/mlvalues.h:290:24: note: expected 'void *' but argument is of type 'const char *'
  290 | #define String_val(x) ((const char *) Bp_val(x))
      |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
mysql_stubs.c:587:10: note: in expansion of macro 'String_val'
  587 |   memcpy(String_val(res), buf, esclen);
      |          ^~~~~~~~~~
/usr/pkg/lib/ocaml/caml/mlvalues.h:290:24: warning: passing argument 1 of '__memcpy_ichk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  290 | #define String_val(x) ((const char *) Bp_val(x))
      |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
mysql_stubs.c:587:10: note: in expansion of macro 'String_val'
  587 |   memcpy(String_val(res), buf, esclen);
      |          ^~~~~~~~~~
/usr/include/ssp/string.h:82:1: note: expected 'void * restrict' but argument is of type 'const char *'
   82 | __ssp_bos_icheck3_restrict(memcpy, void *, const void *)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
mysql_stubs.c: In function 'db_real_escape':
mysql_stubs.c:605:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  605 |   s = String_val(str);
      |     ^
In file included from /usr/include/string.h:127,
                 from mysql_stubs.c:7:
/usr/pkg/lib/ocaml/caml/mlvalues.h:290:24: warning: passing argument 1 of '__builtin___memcpy_chk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  290 | #define String_val(x) ((const char *) Bp_val(x))
      |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
mysql_stubs.c:615:10: note: in expansion of macro 'String_val'
  615 |   memcpy(String_val(res), buf, esclen);
      |          ^~~~~~~~~~
/usr/pkg/lib/ocaml/caml/mlvalues.h:290:24: note: expected 'void *' but argument is of type 'const char *'
  290 | #define String_val(x) ((const char *) Bp_val(x))
      |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
mysql_stubs.c:615:10: note: in expansion of macro 'String_val'
  615 |   memcpy(String_val(res), buf, esclen);
      |          ^~~~~~~~~~
/usr/pkg/lib/ocaml/caml/mlvalues.h:290:24: warning: passing argument 1 of '__memcpy_ichk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  290 | #define String_val(x) ((const char *) Bp_val(x))
      |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
mysql_stubs.c:615:10: note: in expansion of macro 'String_val'
  615 |   memcpy(String_val(res), buf, esclen);
      |          ^~~~~~~~~~
/usr/include/ssp/string.h:82:1: note: expected 'void * restrict' but argument is of type 'const char *'
   82 | __ssp_bos_icheck3_restrict(memcpy, void *, const void *)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
mysql_stubs.c: At top level:
mysql_stubs.c:903:1: warning: missing initializer for field 'fixed_length' of 'struct custom_operations' [-Wmissing-field-initializers]
  903 | };
      | ^
In file included from mysql_stubs.c:17:
/usr/pkg/lib/ocaml/caml/custom.h:40:37: note: 'fixed_length' declared here
   40 |   const struct custom_fixed_length* fixed_length;
      |                                     ^~~~~~~~~~~~
mysql_stubs.c: In function 'get_column':
mysql_stubs.c:1037:18: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
 1037 |     bind->buffer = String_val(str);
      |                  ^
mysql_stubs.c: At top level:
mysql_stubs.c:1076:1: warning: missing initializer for field 'fixed_length' of 'struct custom_operations' [-Wmissing-field-initializers]
 1076 | };
      | ^
In file included from mysql_stubs.c:17:
/usr/pkg/lib/ocaml/caml/custom.h:40:37: note: 'fixed_length' declared here
   40 |   const struct custom_fixed_length* fixed_length;
      |                                     ^~~~~~~~~~~~
ar rcs libmysql_stubs.a  mysql_stubs.o
ocamlc -c mysql.mli
ocamlc -c mysql.ml
File "mysql.ml", line 428, characters 35-45:
428 |     if i = String.length str then (String.sub str p_start (String.length str - p_start)) :: acc else
                                         ^^^^^^^^^^
Warning 6 [labels-omitted]: labels pos, len were omitted in the application of this function.
File "mysql.ml", line 430, characters 45-55:
430 |     | ' ' | '\t' | '\n' | '\r' | ',' -> wsp (String.sub str p_start (i - p_start) :: acc) (i+1)
                                                   ^^^^^^^^^^
Warning 6 [labels-omitted]: labels pos, len were omitted in the application of this function.
ocamlmklib         \
			-o mysql_stubs  mysql_stubs.o -lmariadb  \
			-L/usr/pkg/lib/ -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib
ocamlc -a -dllib dllmysql_stubs.so       -ccopt -L/usr/pkg/lib/ -ccopt -L/usr/pkg/lib -ccopt -Wl,-R/usr/pkg/lib -ccopt -L/usr/lib -ccopt -Wl,-R/usr/lib      -cclib -lmysql_stubs -cclib -lmariadb   -o mysql.cma mysql.cmo
gmake[1]: Leaving directory '/tmp/pkgbuild/databases/ocaml-mysql/work.alpha/ocaml-mysql-1.2.4'
mkdir -p doc/mysql/html
rm -rf doc/mysql/html/*
ocamldoc -html -d doc/mysql/html mysql.mli