=> Bootstrap dependency digest>=20211023: found digest-20211023 ===> 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.0nb9 mkdir -p doc/mysql/html gmake[1]: Entering directory '/tmp/databases/ocaml-mysql/work/ocaml-mysql-1.2.0' gmake[1]: Entering directory '/tmp/databases/ocaml-mysql/work/ocaml-mysql-1.2.0' rm -rf doc/mysql/html/* ocamldoc -html -d doc/mysql/html mysql.mli ocamldep mysql.mli > ._bcdi/mysql.di ocamldep -native mysql.mli > ._ncdi/mysql.di ocamldep mysql.ml > ._d/mysql.d ocamldep mysql.ml > ._d/mysql.d ocamlc -c -cc "gcc" -ccopt "-fPIC -O2 -D_FORTIFY_SOURCE=2 -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 ocamlc -c -cc "gcc" -ccopt "-fPIC -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/mysql -DHAVE_CONFIG_H -Wall -Wextra \ -DPIC -DNATIVE_CODE -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 ocamlc -c mysql.mli ocamlc -c mysql.mli ocamlc -c mysql.ml In file included from /usr/include/string.h:127:0, from mysql_stubs.c:7: mysql_stubs.c: In function 'val_str_option': /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 1 of '__builtin___memcpy_chk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define String_val(x) ((const char *) Bp_val(x)) ^ mysql_stubs.c:149:12: note: in expansion of macro 'String_val' memcpy(String_val(v), s, length); ^~~~~~~~~~ /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: note: expected 'void *' but argument is of type 'const char *' #define String_val(x) ((const char *) Bp_val(x)) ^ mysql_stubs.c:149:12: note: in expansion of macro 'String_val' memcpy(String_val(v), s, length); ^~~~~~~~~~ /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 1 of '__memcpy_ichk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define String_val(x) ((const char *) Bp_val(x)) ^ mysql_stubs.c:149:12: note: in expansion of macro 'String_val' memcpy(String_val(v), s, length); ^~~~~~~~~~ /usr/include/ssp/string.h:82:1: note: expected 'void * restrict' but argument is of type 'const char *' __ssp_bos_icheck3_restrict(memcpy, void *, const void *) ^ mysql_stubs.c: At top level: mysql_stubs.c:432:1: warning: missing initializer for field 'fixed_length' of 'struct custom_operations' [-Wmissing-field-initializers] }; ^ In file included from mysql_stubs.c:17:0: /usr/pkg/lib/ocaml/caml/custom.h:40:37: note: 'fixed_length' declared here const struct custom_fixed_length* fixed_length; ^~~~~~~~~~~~ mysql_stubs.c: In function 'db_escape': mysql_stubs.c:572:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] s = String_val(str); ^ In file included from /usr/include/string.h:127:0, from mysql_stubs.c:7: /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 1 of '__builtin___memcpy_chk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define String_val(x) ((const char *) Bp_val(x)) ^ mysql_stubs.c:578:10: note: in expansion of macro 'String_val' memcpy(String_val(res), buf, esclen); ^~~~~~~~~~ /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: note: expected 'void *' but argument is of type 'const char *' #define String_val(x) ((const char *) Bp_val(x)) ^ mysql_stubs.c:578:10: note: in expansion of macro 'String_val' memcpy(String_val(res), buf, esclen); ^~~~~~~~~~ /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 1 of '__memcpy_ichk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define String_val(x) ((const char *) Bp_val(x)) ^ mysql_stubs.c:578:10: note: in expansion of macro 'String_val' memcpy(String_val(res), buf, esclen); ^~~~~~~~~~ /usr/include/ssp/string.h:82:1: note: expected 'void * restrict' but argument is of type 'const char *' __ssp_bos_icheck3_restrict(memcpy, void *, const void *) ^ mysql_stubs.c: In function 'db_real_escape': mysql_stubs.c:596:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] s = String_val(str); ^ In file included from /usr/include/string.h:127:0, from mysql_stubs.c:7: /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 1 of '__builtin___memcpy_chk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define String_val(x) ((const char *) Bp_val(x)) ^ mysql_stubs.c:606:10: note: in expansion of macro 'String_val' memcpy(String_val(res), buf, esclen); ^~~~~~~~~~ /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: note: expected 'void *' but argument is of type 'const char *' #define String_val(x) ((const char *) Bp_val(x)) ^ mysql_stubs.c:606:10: note: in expansion of macro 'String_val' memcpy(String_val(res), buf, esclen); ^~~~~~~~~~ /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 1 of '__memcpy_ichk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define String_val(x) ((const char *) Bp_val(x)) ^ mysql_stubs.c:606:10: note: in expansion of macro 'String_val' memcpy(String_val(res), buf, esclen); ^~~~~~~~~~ In file included from /usr/include/string.h:127:0, from mysql_stubs.c:7: mysql_stubs.c: In function 'val_str_option': /usr/include/ssp/string.h:82:1: note: expected 'void * restrict' but argument is of type 'const char *' __ssp_bos_icheck3_restrict(memcpy, void *, const void *) ^ /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 1 of '__builtin___memcpy_chk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define String_val(x) ((const char *) Bp_val(x)) ^ mysql_stubs.c:149:12: note: in expansion of macro 'String_val' memcpy(String_val(v), s, length); ^~~~~~~~~~ /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: note: expected 'void *' but argument is of type 'const char *' #define String_val(x) ((const char *) Bp_val(x)) ^ mysql_stubs.c:149:12: note: in expansion of macro 'String_val' memcpy(String_val(v), s, length); ^~~~~~~~~~ /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 1 of '__memcpy_ichk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define String_val(x) ((const char *) Bp_val(x)) ^ mysql_stubs.c:149:12: note: in expansion of macro 'String_val' memcpy(String_val(v), s, length); ^~~~~~~~~~ /usr/include/ssp/string.h:82:1: note: expected 'void * restrict' but argument is of type 'const char *' __ssp_bos_icheck3_restrict(memcpy, void *, const void *) ^ mysql_stubs.c: At top level: mysql_stubs.c:891:1: warning: missing initializer for field 'fixed_length' of 'struct custom_operations' [-Wmissing-field-initializers] }; ^ mysql_stubs.c: At top level: In file included from mysql_stubs.c:17:0: /usr/pkg/lib/ocaml/caml/custom.h:40:37: note: 'fixed_length' declared here const struct custom_fixed_length* fixed_length; ^~~~~~~~~~~~ mysql_stubs.c:432:1: warning: missing initializer for field 'fixed_length' of 'struct custom_operations' [-Wmissing-field-initializers] }; ^ In file included from mysql_stubs.c:17:0: /usr/pkg/lib/ocaml/caml/custom.h:40:37: note: 'fixed_length' declared here const struct custom_fixed_length* fixed_length; ^~~~~~~~~~~~ mysql_stubs.c: In function 'get_column': mysql_stubs.c:1023:18: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] bind->buffer = String_val(str); ^ mysql_stubs.c: At top level: mysql_stubs.c: In function 'db_escape': mysql_stubs.c:1062:1: warning: missing initializer for field 'fixed_length' of 'struct custom_operations' [-Wmissing-field-initializers] }; ^ mysql_stubs.c:572:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] s = String_val(str); ^ In file included from mysql_stubs.c:17:0: /usr/pkg/lib/ocaml/caml/custom.h:40:37: note: 'fixed_length' declared here const struct custom_fixed_length* fixed_length; ^~~~~~~~~~~~ In file included from /usr/include/string.h:127:0, from mysql_stubs.c:7: /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 1 of '__builtin___memcpy_chk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define String_val(x) ((const char *) Bp_val(x)) ^ mysql_stubs.c:578:10: note: in expansion of macro 'String_val' memcpy(String_val(res), buf, esclen); ^~~~~~~~~~ /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: note: expected 'void *' but argument is of type 'const char *' #define String_val(x) ((const char *) Bp_val(x)) ^ mysql_stubs.c:578:10: note: in expansion of macro 'String_val' memcpy(String_val(res), buf, esclen); ^~~~~~~~~~ /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 1 of '__memcpy_ichk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define String_val(x) ((const char *) Bp_val(x)) ^ mysql_stubs.c:578:10: note: in expansion of macro 'String_val' memcpy(String_val(res), buf, esclen); ^~~~~~~~~~ /usr/include/ssp/string.h:82:1: note: expected 'void * restrict' but argument is of type 'const char *' __ssp_bos_icheck3_restrict(memcpy, void *, const void *) ^ mysql_stubs.c: In function 'db_real_escape': mysql_stubs.c:596:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] s = String_val(str); ^ In file included from /usr/include/string.h:127:0, from mysql_stubs.c:7: /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 1 of '__builtin___memcpy_chk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define String_val(x) ((const char *) Bp_val(x)) ^ mysql_stubs.c:606:10: note: in expansion of macro 'String_val' memcpy(String_val(res), buf, esclen); ^~~~~~~~~~ /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: note: expected 'void *' but argument is of type 'const char *' #define String_val(x) ((const char *) Bp_val(x)) ^ mysql_stubs.c:606:10: note: in expansion of macro 'String_val' memcpy(String_val(res), buf, esclen); ^~~~~~~~~~ /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 1 of '__memcpy_ichk' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define String_val(x) ((const char *) Bp_val(x)) ^ mysql_stubs.c:606:10: note: in expansion of macro 'String_val' memcpy(String_val(res), buf, esclen); ^~~~~~~~~~ /usr/include/ssp/string.h:82:1: note: expected 'void * restrict' but argument is of type 'const char *' __ssp_bos_icheck3_restrict(memcpy, void *, const void *) ^ mysql_stubs.c: At top level: mysql_stubs.c:891:1: warning: missing initializer for field 'fixed_length' of 'struct custom_operations' [-Wmissing-field-initializers] }; ^ In file included from mysql_stubs.c:17:0: /usr/pkg/lib/ocaml/caml/custom.h:40:37: note: 'fixed_length' declared here const struct custom_fixed_length* fixed_length; ^~~~~~~~~~~~ mysql_stubs.c: In function 'get_column': mysql_stubs.c:1023:18: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] bind->buffer = String_val(str); ^ mysql_stubs.c: At top level: mysql_stubs.c:1062:1: warning: missing initializer for field 'fixed_length' of 'struct custom_operations' [-Wmissing-field-initializers] }; ^ In file included from mysql_stubs.c:17:0: /usr/pkg/lib/ocaml/caml/custom.h:40:37: note: 'fixed_length' declared here const struct custom_fixed_length* fixed_length; ^~~~~~~~~~~~ ocamlopt -c mysql.ml ocamlopt -a -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 -lmysqlclient -o mysql.cmxa mysql.cmx ar rcs libmysql_stubs.a mysql_stubs.o ocamlmklib \ -o mysql_stubs mysql_stubs.o -lmysqlclient \ -L/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib ld: mysql_stubs.o: file not recognized: file truncated gmake[1]: *** [OCamlMakefile:993: dllmysql_stubs.so] Error 2 gmake[1]: Leaving directory '/tmp/databases/ocaml-mysql/work/ocaml-mysql-1.2.0' gmake: *** [OCamlMakefile:781: byte-code-library] Error 2 gmake: *** Waiting for unfinished jobs.... ar rcs libmysql_stubs.a mysql_stubs.o gmake[1]: Leaving directory '/tmp/databases/ocaml-mysql/work/ocaml-mysql-1.2.0' *** Error code 2 Stop. make[1]: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/databases/ocaml-mysql *** Error code 1 Stop. make: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/databases/ocaml-mysql