=> "/opt/local/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-trunk-x86_64/databases/ocaml-mysql", "all", "MYSQL_VERSION_REQD=mariadb114", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for ocaml-mysql-1.2.4nb2 gmake[1]: Entering directory '/tmp/work/databases/ocaml-mysql/work/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 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/opt/local/include/ncurses -I/opt/local/include/mysql -I/usr/include -DHAVE_CONFIG_H -Wall -Wextra \ -DPIC -I/opt/local/include/mysql -I/opt/local/include/mysql/mysql -I/opt/local/include -I/opt/local/include/ncurses -I/opt/local/include/mysql -I/usr/include \ -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: /opt/local/lib/ocaml/caml/mlvalues.h:408: note: this is the location of the previous definition 408 | #define Some_val(v) Field(v, 0) | mysql_stubs.c: In function 'val_str_option': /opt/local/lib/ocaml/caml/mlvalues.h:290:24: warning: passing argument 1 of 'memcpy' 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); | ^~~~~~~~~~ In file included from /usr/include/string.h:35, from mysql_stubs.c:7: /usr/include/iso/string_iso.h:70:21: note: expected 'void * restrict' but argument is of type 'const char *' 70 | extern void *memcpy(void *_RESTRICT_KYWD, const void *_RESTRICT_KYWD, size_t); | ^ 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: /opt/local/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); | ^ /opt/local/lib/ocaml/caml/mlvalues.h:290:24: warning: passing argument 1 of 'memcpy' 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/iso/string_iso.h:70:21: note: expected 'void * restrict' but argument is of type 'const char *' 70 | extern void *memcpy(void *_RESTRICT_KYWD, const void *_RESTRICT_KYWD, size_t); | ^ 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); | ^ /opt/local/lib/ocaml/caml/mlvalues.h:290:24: warning: passing argument 1 of 'memcpy' 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/iso/string_iso.h:70:21: note: expected 'void * restrict' but argument is of type 'const char *' 70 | extern void *memcpy(void *_RESTRICT_KYWD, const void *_RESTRICT_KYWD, size_t); | ^ 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 | }; | ^ /opt/local/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 | }; | ^ /opt/local/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/opt/local/lib/ -L/opt/local/lib -Wl,-R/opt/local/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 ocamlc -a -dllib dllmysql_stubs.so -ccopt -L/opt/local/lib/ -ccopt -L/opt/local/lib -ccopt -Wl,-R/opt/local/lib -ccopt -L/usr/lib/amd64 -ccopt -Wl,-R/usr/lib/amd64 -cclib -lmysql_stubs -cclib -lmariadb -o mysql.cma mysql.cmo gmake[1]: Leaving directory '/tmp/work/databases/ocaml-mysql/work/ocaml-mysql-1.2.4' mkdir -p doc/mysql/html rm -rf doc/mysql/html/* ocamldoc -html -d doc/mysql/html mysql.mli gmake[1]: Entering directory '/tmp/work/databases/ocaml-mysql/work/ocaml-mysql-1.2.4' ocamldep -native mysql.mli > ._ncdi/mysql.di gmake[1]: 'libmysql_stubs.a' is up to date. ocamlopt -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. ocamlopt -a -ccopt -L/opt/local/lib/ -ccopt -L/opt/local/lib -ccopt -Wl,-R/opt/local/lib -ccopt -L/usr/lib/amd64 -ccopt -Wl,-R/usr/lib/amd64 -cclib -lmysql_stubs -cclib -lmariadb -o mysql.cmxa mysql.cmx gmake[1]: Leaving directory '/tmp/work/databases/ocaml-mysql/work/ocaml-mysql-1.2.4' ocamlopt -shared -ccopt -L/opt/local/lib/ -ccopt -L/opt/local/lib -ccopt -Wl,-R/opt/local/lib -ccopt -L/usr/lib/amd64 -ccopt -Wl,-R/usr/lib/amd64 mysql_stubs.o -cclib -lmariadb -o mysql.cmxs mysql.cmx