+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent MYSQL_VERSION_REQD=mariadb106 WRKLOG=/tmp/bulklog/ocaml-mysql-1.2.4/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent MYSQL_VERSION_REQD=mariadb106 WRKLOG=/tmp/bulklog/ocaml-mysql-1.2.4/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for ocaml-mysql-1.2.4 gmake[1]: Entering directory '/home/pbulk/build/databases/ocaml-mysql/work/ocaml-mysql-1.2.4' ocamldep mysql.mli > ._bcdi/mysql.di ocamldep mysql.ml > ._d/mysql.d ocamlc -c -cc "gcc" -ccopt "-fPIC -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/mysql -DHAVE_CONFIG_H -Wall -Wextra \ -DPIC -I/opt/pkg/include/mysql -I/opt/pkg/include/mysql/mysql -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/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: /opt/pkg/lib/ocaml/caml/mlvalues.h:404: note: this is the location of the previous definition 404 | #define Some_val(v) Field(v, 0) | mysql_stubs.c: In function 'val_str_option': /opt/pkg/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:34, 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/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 mysql_stubs.c:12: /opt/pkg/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); | ^~~~~~~~~~ In file included from /usr/include/string.h:34, 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_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 mysql_stubs.c:12: /opt/pkg/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); | ^~~~~~~~~~ In file included from /usr/include/string.h:34, 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: 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: /opt/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: /opt/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/opt/pkg/lib/ -L/opt/pkg/lib -Wl,-R/opt/pkg/lib ocamlc -a -dllib dllmysql_stubs.so -ccopt -L/opt/pkg/lib/ -ccopt -L/opt/pkg/lib -ccopt -Wl,-R/opt/pkg/lib -cclib -lmysql_stubs -cclib -lmariadb -o mysql.cma mysql.cmo gmake[1]: Leaving directory '/home/pbulk/build/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 '/home/pbulk/build/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/pkg/lib/ -ccopt -L/opt/pkg/lib -ccopt -Wl,-R/opt/pkg/lib -cclib -lmysql_stubs -cclib -lmariadb -o mysql.cmxa mysql.cmx gmake[1]: Leaving directory '/home/pbulk/build/databases/ocaml-mysql/work/ocaml-mysql-1.2.4' ocamlopt -shared -ccopt -L/opt/pkg/lib/ -ccopt -L/opt/pkg/lib -ccopt -Wl,-R/opt/pkg/lib mysql_stubs.o -cclib -lmariadb -o mysql.cmxs mysql.cmx