+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent MYSQL_VERSION_REQD=mariadb106 WRKLOG=/tmp/bulklog/ocaml-mysql-1.2.0nb9/work.log + su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent MYSQL_VERSION_REQD=mariadb106 WRKLOG=/tmp/bulklog/ocaml-mysql-1.2.0nb9/work.log => Bootstrap dependency digest>=20211023: found digest-20211023 ===> Building for ocaml-mysql-1.2.0nb9 gmake[1]: Entering directory '/home/pbulk/build/databases/ocaml-mysql/work/ocaml-mysql-1.2.0' 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/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 In file included from mysql_stubs.c:12: mysql_stubs.c: In function 'val_str_option': /opt/local/lib/ocaml/caml/mlvalues.h:265:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ mysql_stubs.c:149:12: note: in expansion of macro 'String_val' 149 | 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: At top level: mysql_stubs.c:432:1: warning: missing initializer for field 'fixed_length' of 'struct custom_operations' [-Wmissing-field-initializers] 432 | }; | ^ 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:572:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 572 | s = String_val(str); | ^ In file included from mysql_stubs.c:12: /opt/local/lib/ocaml/caml/mlvalues.h:265:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ mysql_stubs.c:578:10: note: in expansion of macro 'String_val' 578 | 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:596:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 596 | s = String_val(str); | ^ In file included from mysql_stubs.c:12: /opt/local/lib/ocaml/caml/mlvalues.h:265:24: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 265 | #define String_val(x) ((const char *) Bp_val(x)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ mysql_stubs.c:606:10: note: in expansion of macro 'String_val' 606 | 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:891:1: warning: missing initializer for field 'fixed_length' of 'struct custom_operations' [-Wmissing-field-initializers] 891 | }; | ^ 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 'get_column': mysql_stubs.c:1023:18: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1023 | 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] 1062 | }; | ^ 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; | ^~~~~~~~~~~~ ar rcs libmysql_stubs.a mysql_stubs.o ocamlc -c mysql.mli ocamlc -c mysql.ml ocamlmklib \ -o mysql_stubs mysql_stubs.o -lmysqlclient \ -L/opt/local/lib -L/opt/local/gcc10/lib/gcc/x86_64-sun-solaris2.11/10.3.0 -Wl,-R/opt/local/gcc10/lib/gcc/x86_64-sun-solaris2.11/10.3.0 -L/opt/local/lib -Wl,-R/opt/local/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 ld: fatal: file rpath: open failed: No such file or directory ld: fatal: file /opt/local/lib:/opt/local/gcc10/lib/gcc/x86_64-sun-solaris2.11/10.3.0:/usr/lib/amd64: open failed: No such file or directory ld: fatal: file processing errors. No output written to ./dllmysql_stubs.so collect2: error: ld returned 1 exit status gmake[1]: *** [OCamlMakefile:993: dllmysql_stubs.so] Error 2 gmake[1]: Leaving directory '/home/pbulk/build/databases/ocaml-mysql/work/ocaml-mysql-1.2.0' gmake: *** [OCamlMakefile:781: byte-code-library] Error 2 *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-2021Q4-x86_64/databases/ocaml-mysql *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-2021Q4-x86_64/databases/ocaml-mysql