Processing: [default: loading data] The following system packages will first need to be installed: autoconf automake freetds-dev <><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><> + /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "autoconf" "automake" "freetds-dev" - Selecting previously unselected package m4. - (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 20123 files and directories currently installed.) - Preparing to unpack .../0-m4_1.4.19-8_amd64.deb ... - Unpacking m4 (1.4.19-8) ... - Selecting previously unselected package autoconf. - Preparing to unpack .../1-autoconf_2.72-3.1_all.deb ... - Unpacking autoconf (2.72-3.1) ... - Selecting previously unselected package autotools-dev. - Preparing to unpack .../2-autotools-dev_20240727.1_all.deb ... - Unpacking autotools-dev (20240727.1) ... - Selecting previously unselected package automake. - Preparing to unpack .../3-automake_1%3a1.17-4_all.deb ... - Unpacking automake (1:1.17-4) ... - Selecting previously unselected package freetds-common. - Preparing to unpack .../4-freetds-common_1.3.17+ds-2+deb13u1_all.deb ... - Unpacking freetds-common (1.3.17+ds-2+deb13u1) ... - Selecting previously unselected package libct4:amd64. - Preparing to unpack .../5-libct4_1.3.17+ds-2+deb13u1_amd64.deb ... - Unpacking libct4:amd64 (1.3.17+ds-2+deb13u1) ... - Selecting previously unselected package libsybdb5:amd64. - Preparing to unpack .../6-libsybdb5_1.3.17+ds-2+deb13u1_amd64.deb ... - Unpacking libsybdb5:amd64 (1.3.17+ds-2+deb13u1) ... - Selecting previously unselected package freetds-dev. - Preparing to unpack .../7-freetds-dev_1.3.17+ds-2+deb13u1_amd64.deb ... - Unpacking freetds-dev (1.3.17+ds-2+deb13u1) ... - Selecting previously unselected package freetds-doc. - Preparing to unpack .../8-freetds-doc_1.3.17+ds-2+deb13u1_all.deb ... - Unpacking freetds-doc (1.3.17+ds-2+deb13u1) ... - Setting up freetds-doc (1.3.17+ds-2+deb13u1) ... - Setting up m4 (1.4.19-8) ... - Setting up autotools-dev (20240727.1) ... - Setting up autoconf (2.72-3.1) ... - Setting up freetds-common (1.3.17+ds-2+deb13u1) ... - Setting up automake (1:1.17-4) ... - update-alternatives: using /usr/bin/automake-1.17 to provide /usr/bin/automake (automake) in auto mode - Setting up libsybdb5:amd64 (1.3.17+ds-2+deb13u1) ... - Setting up libct4:amd64 (1.3.17+ds-2+deb13u1) ... - Setting up freetds-dev (1.3.17+ds-2+deb13u1) ... - Processing triggers for libc-bin (2.41-12+deb13u4) ... [freetds.0.5.1: dl] [freetds.0.5.1: extract] -> retrieved freetds.0.5.1 (https://opam.ocaml.org/cache) [freetds: ./configure] + /home/opam/.opam/default/.opam-switch/build/freetds.0.5.1/./configure "--prefix" "/home/opam/.opam/default" "--sbindir=/home/opam/.opam/default/lib/freetds/sbin" "--libexecdir=/home/opam/.opam/default/lib/freetds/libexec" "--sysconfdir=/home/opam/.opam/default/lib/freetds/etc" "--sharedstatedir=/home/opam/.opam/default/lib/freetds/com" "--localstatedir=/home/opam/.opam/default/lib/freetds/var" "--libdir=/home/opam/.opam/default/lib/freetds/lib" "--includedir=/home/opam/.opam/default/lib/freetds/include" "--datarootdir=/home/opam/.opam/default/lib/freetds/share" (CWD=/home/opam/.opam/default/.opam-switch/build/freetds.0.5.1) - configuring freetds 0.5.1 - checking for ocamlc... ocamlc - OCaml version is 5.4.1 - OCaml library path is /home/opam/.opam/default/lib/ocaml - checking for ocamlopt... ocamlopt - checking for ocamlc.opt... ocamlc.opt - checking for ocamlopt.opt... ocamlopt.opt - checking for ocaml... ocaml - checking for ocamldep... ocamldep - checking for ocamlmktop... ocamlmktop - checking for ocamlmklib... ocamlmklib - checking for ocamldoc... ocamldoc - checking for ocamlbuild... no - checking for ocamlfind... ocamlfind - checking for OCaml compiler word size... 64 - checking for gcc... gcc - checking whether the C compiler works... yes - checking for C compiler default output file name... a.out - checking for suffix of executables... - checking whether we are cross compiling... no - checking for suffix of object files... o - checking whether we are using the GNU C compiler... yes - checking whether gcc accepts -g... yes - checking for gcc option to accept ISO C89... none needed - checking for dbopen in -lsybdb... yes - checking for ct_init in -lct... yes - configure: creating ./config.status - config.status: creating Makefile.ocaml - config.status: creating src/META - config.status: creating Makefile - config.status: creating src/Makefile [freetds: make] + /usr/bin/make (CWD=/home/opam/.opam/default/.opam-switch/build/freetds.0.5.1) - /usr/bin/make -C src byte - make[1]: Entering directory '/home/opam/.opam/default/.opam-switch/build/freetds.0.5.1/src' - Building .depend.ocaml ... - ocamlc.opt -dtypes -g -c ct.mli - ocamlc.opt -dtypes -g -c ct.ml - File "ct.ml", line 153, characters 38-46: - 153 | let bind comm ?(maxlen = 256) index = bind_col comm maxlen index - ^^^^^^^^ - Warning 6 [labels-omitted]: label maxlen was omitted in the application of - this function. - ocamlc.opt -dtypes -g -c dblib.mli - ocamlc.opt -dtypes -g -c dblib.ml - File "dblib.ml", line 61, characters 10-14: - 61 | dbopen ?user ?password ?charset ?language ?application ~server - ^^^^ - Warning 43 [nonoptional-label]: the label user is not optional. - - File "dblib.ml", line 61, characters 16-24: - 61 | dbopen ?user ?password ?charset ?language ?application ~server - ^^^^^^^^ - Warning 43 [nonoptional-label]: the label password is not optional. - - File "dblib.ml", line 61, characters 26-33: - 61 | dbopen ?user ?password ?charset ?language ?application ~server - ^^^^^^^ - Warning 43 [nonoptional-label]: the label charset is not optional. - - File "dblib.ml", line 61, characters 35-43: - 61 | dbopen ?user ?password ?charset ?language ?application ~server - ^^^^^^^^ - Warning 43 [nonoptional-label]: the label language is not optional. - - File "dblib.ml", line 61, characters 45-56: - 61 | dbopen ?user ?password ?charset ?language ?application ~server - ^^^^^^^^^^^ - Warning 43 [nonoptional-label]: the label application is not optional. - - File "dblib.ml", line 76, characters 0-71: - 76 | external numcols : dbprocess -> int = "ocaml_freetds_numcols" "noalloc" - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Alert deprecated: [@@noalloc] should be used instead of "noalloc" - ocamlc.opt -pack -o freetds.cmo ct.cmo dblib.cmo - cc -Wall -fPIC -DOCAML_WORD_SIZE=64 -I'/home/opam/.opam/default/lib/ocaml' -c -o ct_c.o ct_c.c - ct_c.c: In function 'retval_inspect': - ct_c.c:72:9: error: implicit declaration of function 'failwith'; did you mean 'caml_failwith'? [-Wimplicit-function-declaration] - 72 | failwith(whichfunc); - | ^~~~~~~~ - | caml_failwith - ct_c.c:81:9: error: implicit declaration of function 'raise_constant'; did you mean 'caml_raise_constant'? [-Wimplicit-function-declaration] - 81 | raise_constant(*caml_named_value("cs_end_results")); - | ^~~~~~~~~~~~~~ - | caml_raise_constant - ct_c.c: In function 'conprop_of_value': - ct_c.c:99:18: error: implicit declaration of function 'hash_variant'; did you mean 'caml_hash_variant'? [-Wimplicit-function-declaration] - 99 | if (field == hash_variant("Username")) CAMLreturn(CS_USERNAME); - | ^~~~~~~~~~~~ - | caml_hash_variant - ct_c.c: In function 'cons': - ct_c.c:279:14: error: implicit declaration of function 'alloc'; did you mean 'valloc'? [-Wimplicit-function-declaration] - 279 | result = alloc(2, Tag_cons); - | ^~~~~ - | valloc - ct_c.c: In function 'column_of_buffer': - ct_c.c:385:14: error: implicit declaration of function 'alloc_custom'; did you mean 'caml_alloc_custom'? [-Wimplicit-function-declaration] - 385 | buffer = alloc_custom(&binding_buffer_operations, - | ^~~~~~~~~~~~ - | caml_alloc_custom - In file included from /home/opam/.opam/default/lib/ocaml/caml/callback.h:22, - from ct_c.c:25: - ct_c.c:390:35: error: implicit declaration of function 'copy_string'; did you mean 'caml_copy_string'? [-Wimplicit-function-declaration] - 390 | Store_field(result, COL_NAME, copy_string(buf->fmt.name)); - | ^~~~~~~~~~~ - /home/opam/.opam/default/lib/ocaml/caml/memory.h:470:27: note: in definition of macro 'Store_field' - 470 | value caml__temp_val = (val); \ - | ^~~ - ct_c.c: In function 'mltds_ct_con_setstring': - ct_c.c:461:34: error: implicit declaration of function 'string_length'; did you mean 'caml_string_length'? [-Wimplicit-function-declaration] - 461 | string_length(newval), - | ^~~~~~~~~~~~~ - | caml_string_length - In file included from /home/opam/.opam/default/lib/ocaml/caml/alloc.h:20, - from ct_c.c:24: - /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 4 of 'ct_con_props' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 366 | #define String_val(x) ((const char *) Bp_val(x)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - ct_c.c:460:34: note: in expansion of macro 'String_val' - 460 | String_val(newval), - | ^~~~~~~~~~ - In file included from ct_c.c:20: - /usr/include/ctpublic.h:98:88: note: expected 'CS_VOID *' {aka 'void *'} but argument is of type 'const char *' - 98 | CS_RETCODE ct_con_props(CS_CONNECTION * con, CS_INT action, CS_INT property, CS_VOID * buffer, CS_INT buflen, CS_INT * out_len); - | ~~~~~~~~~~^~~~~~ - ct_c.c: In function 'mltds_ct_connect': - /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 2 of 'ct_connect' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 366 | #define String_val(x) ((const char *) Bp_val(x)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - ct_c.c:473:32: note: in expansion of macro 'String_val' - 473 | String_val(servername), - | ^~~~~~~~~~ - /usr/include/ctpublic.h:99:54: note: expected 'CS_CHAR *' {aka 'char *'} but argument is of type 'const char *' - 99 | CS_RETCODE ct_connect(CS_CONNECTION * con, CS_CHAR * servername, CS_INT snamelen); - | ~~~~~~~~~~^~~~~~~~~~ - ct_c.c: In function 'mltds_ct_bind': - ct_c.c:529:22: warning: missing braces around initializer [-Wmissing-braces] - 529 | CS_DATAFMT fmt = {0,0,0,0,0,0,0,0,0,0,0}; - | ^ - | { } - ct_c.c: In function 'mltds_buffer_contents': - ct_c.c:634:32: error: implicit declaration of function 'copy_int32'; did you mean 'caml_copy_int32'? [-Wimplicit-function-declaration] - 634 | Store_field(result, 1, copy_int32((int) BUFFER_CONTENTS(buf, CS_INT))); - | ^~~~~~~~~~ - /home/opam/.opam/default/lib/ocaml/caml/memory.h:470:27: note: in definition of macro 'Store_field' - 470 | value caml__temp_val = (val); \ - | ^~~ - ct_c.c:640:32: error: implicit declaration of function 'copy_double'; did you mean 'caml_copy_double'? [-Wimplicit-function-declaration] - 640 | Store_field(result, 1, copy_double((double) BUFFER_CONTENTS(buf, CS_FLOAT))); - | ^~~~~~~~~~~ - /home/opam/.opam/default/lib/ocaml/caml/memory.h:470:27: note: in definition of macro 'Store_field' - 470 | value caml__temp_val = (val); \ - | ^~~ - ct_c.c:660:19: error: implicit declaration of function 'alloc_string'; did you mean 'caml_alloc_string'? [-Wimplicit-function-declaration] - 660 | str = alloc_string(buf->copied); - | ^~~~~~~~~~~~ - | caml_alloc_string - /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'strncpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 366 | #define String_val(x) ((const char *) Bp_val(x)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - ct_c.c:661:21: note: in expansion of macro 'String_val' - 661 | strncpy(String_val(str), (char*)(buf->data), buf->copied); - | ^~~~~~~~~~ - In file included from ct_c.c:22: - /usr/include/string.h:144:40: note: expected 'char * restrict' but argument is of type 'const char *' - 144 | extern char *strncpy (char *__restrict __dest, - | ~~~~~~~~~~~~~~~~~^~~~~~ - /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'strncpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 366 | #define String_val(x) ((const char *) Bp_val(x)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - ct_c.c:673:21: note: in expansion of macro 'String_val' - 673 | strncpy(String_val(str), (char*)(buf->data), buf->copied); - | ^~~~~~~~~~ - /usr/include/string.h:144:40: note: expected 'char * restrict' but argument is of type 'const char *' - 144 | extern char *strncpy (char *__restrict __dest, - | ~~~~~~~~~~~~~~~~~^~~~~~ - /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'strncpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 366 | #define String_val(x) ((const char *) Bp_val(x)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - ct_c.c:694:17: note: in expansion of macro 'String_val' - 694 | strncpy(String_val(str), (char*)(buf->data), buf->copied); - | ^~~~~~~~~~ - /usr/include/string.h:144:40: note: expected 'char * restrict' but argument is of type 'const char *' - 144 | extern char *strncpy (char *__restrict __dest, - | ~~~~~~~~~~~~~~~~~^~~~~~ - ct_c.c: In function 'get_client_message': - /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'strncpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 366 | #define String_val(x) ((const char *) Bp_val(x)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - ct_c.c:744:13: note: in expansion of macro 'String_val' - 744 | strncpy(String_val(str), msg.msgstring, msg.msgstringlen ); - | ^~~~~~~~~~ - /usr/include/string.h:144:40: note: expected 'char * restrict' but argument is of type 'const char *' - 144 | extern char *strncpy (char *__restrict __dest, - | ~~~~~~~~~~~~~~~~~^~~~~~ - ct_c.c: In function 'get_server_message': - /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'strncpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 366 | #define String_val(x) ((const char *) Bp_val(x)) - | ~^~~~~~~~~~~~~~~~~~~~~~~~~ - ct_c.c:763:13: note: in expansion of macro 'String_val' - 763 | strncpy(String_val(str), msg.text, strnlen(msg.text, CS_MAX_MSG)); - | ^~~~~~~~~~ - /usr/include/string.h:144:40: note: expected 'char * restrict' but argument is of type 'const char *' - 144 | extern char *strncpy (char *__restrict __dest, - | ~~~~~~~~~~~~~~~~~^~~~~~ - make[1]: *** [: ct_c.o] Error 1 - make[1]: Leaving directory '/home/opam/.opam/default/.opam-switch/build/freetds.0.5.1/src' - make: *** [Makefile:22: byte] Error 2 [ERROR] The compilation of freetds.0.5.1 failed at "make". #=== ERROR while compiling freetds.0.5.1 ======================================# # context 2.4.1 | linux/x86_64 | ocaml-compiler.5.4.1+letrec | file:///home/opam/opam-repository # path ~/.opam/default/.opam-switch/build/freetds.0.5.1 # command /usr/bin/make # exit-code 2 # env-file /tmp/opam-root-7/freetds-7-faaa3b.env # output-file /tmp/opam-root-7/freetds-7-faaa3b.out ### output ### # /usr/bin/make -C src byte # make[1]: Entering directory '/home/opam/.opam/default/.opam-switch/build/freetds.0.5.1/src' # Building .depend.ocaml ... # ocamlc.opt -dtypes -g -c ct.mli # ocamlc.opt -dtypes -g -c ct.ml # File "ct.ml", line 153, characters 38-46: # 153 | let bind comm ?(maxlen = 256) index = bind_col comm maxlen index # ^^^^^^^^ # Warning 6 [labels-omitted]: label maxlen was omitted in the application of # this function. # ocamlc.opt -dtypes -g -c dblib.mli # ocamlc.opt -dtypes -g -c dblib.ml # File "dblib.ml", line 61, characters 10-14: # 61 | dbopen ?user ?password ?charset ?language ?application ~server # ^^^^ # Warning 43 [nonoptional-label]: the label user is not optional. # # File "dblib.ml", line 61, characters 16-24: # 61 | dbopen ?user ?password ?charset ?language ?application ~server # ^^^^^^^^ # Warning 43 [nonoptional-label]: the label password is not optional. # # File "dblib.ml", line 61, characters 26-33: # 61 | dbopen ?user ?password ?charset ?language ?application ~server # ^^^^^^^ # Warning 43 [nonoptional-label]: the label charset is not optional. # # File "dblib.ml", line 61, characters 35-43: # 61 | dbopen ?user ?password ?charset ?language ?application ~server # ^^^^^^^^ # Warning 43 [nonoptional-label]: the label language is not optional. # # File "dblib.ml", line 61, characters 45-56: # 61 | dbopen ?user ?password ?charset ?language ?application ~server # ^^^^^^^^^^^ # Warning 43 [nonoptional-label]: the label application is not optional. # # File "dblib.ml", line 76, characters 0-71: # 76 | external numcols : dbprocess -> int = "ocaml_freetds_numcols" "noalloc" # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ # Alert deprecated: [@@noalloc] should be used instead of "noalloc" # ocamlc.opt -pack -o freetds.cmo ct.cmo dblib.cmo # cc -Wall -fPIC -DOCAML_WORD_SIZE=64 -I'/home/opam/.opam/default/lib/ocaml' -c -o ct_c.o ct_c.c # ct_c.c: In function 'retval_inspect': # ct_c.c:72:9: error: implicit declaration of function 'failwith'; did you mean 'caml_failwith'? [-Wimplicit-function-declaration] # 72 | failwith(whichfunc); # | ^~~~~~~~ # | caml_failwith # ct_c.c:81:9: error: implicit declaration of function 'raise_constant'; did you mean 'caml_raise_constant'? [-Wimplicit-function-declaration] # 81 | raise_constant(*caml_named_value("cs_end_results")); # | ^~~~~~~~~~~~~~ # | caml_raise_constant # ct_c.c: In function 'conprop_of_value': # ct_c.c:99:18: error: implicit declaration of function 'hash_variant'; did you mean 'caml_hash_variant'? [-Wimplicit-function-declaration] # 99 | if (field == hash_variant("Username")) CAMLreturn(CS_USERNAME); # | ^~~~~~~~~~~~ # | caml_hash_variant # ct_c.c: In function 'cons': # ct_c.c:279:14: error: implicit declaration of function 'alloc'; did you mean 'valloc'? [-Wimplicit-function-declaration] # 279 | result = alloc(2, Tag_cons); # | ^~~~~ # | valloc # ct_c.c: In function 'column_of_buffer': # ct_c.c:385:14: error: implicit declaration of function 'alloc_custom'; did you mean 'caml_alloc_custom'? [-Wimplicit-function-declaration] # 385 | buffer = alloc_custom(&binding_buffer_operations, # | ^~~~~~~~~~~~ # | caml_alloc_custom # In file included from /home/opam/.opam/default/lib/ocaml/caml/callback.h:22, # from ct_c.c:25: # ct_c.c:390:35: error: implicit declaration of function 'copy_string'; did you mean 'caml_copy_string'? [-Wimplicit-function-declaration] # 390 | Store_field(result, COL_NAME, copy_string(buf->fmt.name)); # | ^~~~~~~~~~~ # /home/opam/.opam/default/lib/ocaml/caml/memory.h:470:27: note: in definition of macro 'Store_field' # 470 | value caml__temp_val = (val); \ # | ^~~ # ct_c.c: In function 'mltds_ct_con_setstring': # ct_c.c:461:34: error: implicit declaration of function 'string_length'; did you mean 'caml_string_length'? [-Wimplicit-function-declaration] # 461 | string_length(newval), # | ^~~~~~~~~~~~~ # | caml_string_length # In file included from /home/opam/.opam/default/lib/ocaml/caml/alloc.h:20, # from ct_c.c:24: # /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 4 of 'ct_con_props' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] # 366 | #define String_val(x) ((const char *) Bp_val(x)) # | ~^~~~~~~~~~~~~~~~~~~~~~~~~ # ct_c.c:460:34: note: in expansion of macro 'String_val' # 460 | String_val(newval), # | ^~~~~~~~~~ # In file included from ct_c.c:20: # /usr/include/ctpublic.h:98:88: note: expected 'CS_VOID *' {aka 'void *'} but argument is of type 'const char *' # 98 | CS_RETCODE ct_con_props(CS_CONNECTION * con, CS_INT action, CS_INT property, CS_VOID * buffer, CS_INT buflen, CS_INT * out_len); # | ~~~~~~~~~~^~~~~~ # ct_c.c: In function 'mltds_ct_connect': # /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 2 of 'ct_connect' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] # 366 | #define String_val(x) ((const char *) Bp_val(x)) # | ~^~~~~~~~~~~~~~~~~~~~~~~~~ # ct_c.c:473:32: note: in expansion of macro 'String_val' # 473 | String_val(servername), # | ^~~~~~~~~~ # /usr/include/ctpublic.h:99:54: note: expected 'CS_CHAR *' {aka 'char *'} but argument is of type 'const char *' # 99 | CS_RETCODE ct_connect(CS_CONNECTION * con, CS_CHAR * servername, CS_INT snamelen); # | ~~~~~~~~~~^~~~~~~~~~ # ct_c.c: In function 'mltds_ct_bind': # ct_c.c:529:22: warning: missing braces around initializer [-Wmissing-braces] # 529 | CS_DATAFMT fmt = {0,0,0,0,0,0,0,0,0,0,0}; # | ^ # | { } # ct_c.c: In function 'mltds_buffer_contents': # ct_c.c:634:32: error: implicit declaration of function 'copy_int32'; did you mean 'caml_copy_int32'? [-Wimplicit-function-declaration] # 634 | Store_field(result, 1, copy_int32((int) BUFFER_CONTENTS(buf, CS_INT))); # | ^~~~~~~~~~ # /home/opam/.opam/default/lib/ocaml/caml/memory.h:470:27: note: in definition of macro 'Store_field' # 470 | value caml__temp_val = (val); \ # | ^~~ # ct_c.c:640:32: error: implicit declaration of function 'copy_double'; did you mean 'caml_copy_double'? [-Wimplicit-function-declaration] # 640 | Store_field(result, 1, copy_double((double) BUFFER_CONTENTS(buf, CS_FLOAT))); # | ^~~~~~~~~~~ # /home/opam/.opam/default/lib/ocaml/caml/memory.h:470:27: note: in definition of macro 'Store_field' # 470 | value caml__temp_val = (val); \ # | ^~~ # ct_c.c:660:19: error: implicit declaration of function 'alloc_string'; did you mean 'caml_alloc_string'? [-Wimplicit-function-declaration] # 660 | str = alloc_string(buf->copied); # | ^~~~~~~~~~~~ # | caml_alloc_string # /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'strncpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] # 366 | #define String_val(x) ((const char *) Bp_val(x)) # | ~^~~~~~~~~~~~~~~~~~~~~~~~~ # ct_c.c:661:21: note: in expansion of macro 'String_val' # 661 | strncpy(String_val(str), (char*)(buf->data), buf->copied); # | ^~~~~~~~~~ # In file included from ct_c.c:22: # /usr/include/string.h:144:40: note: expected 'char * restrict' but argument is of type 'const char *' # 144 | extern char *strncpy (char *__restrict __dest, # | ~~~~~~~~~~~~~~~~~^~~~~~ # /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'strncpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] # 366 | #define String_val(x) ((const char *) Bp_val(x)) # | ~^~~~~~~~~~~~~~~~~~~~~~~~~ # ct_c.c:673:21: note: in expansion of macro 'String_val' # 673 | strncpy(String_val(str), (char*)(buf->data), buf->copied); # | ^~~~~~~~~~ # /usr/include/string.h:144:40: note: expected 'char * restrict' but argument is of type 'const char *' # 144 | extern char *strncpy (char *__restrict __dest, # | ~~~~~~~~~~~~~~~~~^~~~~~ # /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'strncpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] # 366 | #define String_val(x) ((const char *) Bp_val(x)) # | ~^~~~~~~~~~~~~~~~~~~~~~~~~ # ct_c.c:694:17: note: in expansion of macro 'String_val' # 694 | strncpy(String_val(str), (char*)(buf->data), buf->copied); # | ^~~~~~~~~~ # /usr/include/string.h:144:40: note: expected 'char * restrict' but argument is of type 'const char *' # 144 | extern char *strncpy (char *__restrict __dest, # | ~~~~~~~~~~~~~~~~~^~~~~~ # ct_c.c: In function 'get_client_message': # /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'strncpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] # 366 | #define String_val(x) ((const char *) Bp_val(x)) # | ~^~~~~~~~~~~~~~~~~~~~~~~~~ # ct_c.c:744:13: note: in expansion of macro 'String_val' # 744 | strncpy(String_val(str), msg.msgstring, msg.msgstringlen ); # | ^~~~~~~~~~ # /usr/include/string.h:144:40: note: expected 'char * restrict' but argument is of type 'const char *' # 144 | extern char *strncpy (char *__restrict __dest, # | ~~~~~~~~~~~~~~~~~^~~~~~ # ct_c.c: In function 'get_server_message': # /home/opam/.opam/default/lib/ocaml/caml/mlvalues.h:366:24: warning: passing argument 1 of 'strncpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] # 366 | #define String_val(x) ((const char *) Bp_val(x)) # | ~^~~~~~~~~~~~~~~~~~~~~~~~~ # ct_c.c:763:13: note: in expansion of macro 'String_val' # 763 | strncpy(String_val(str), msg.text, strnlen(msg.text, CS_MAX_MSG)); # | ^~~~~~~~~~ # /usr/include/string.h:144:40: note: expected 'char * restrict' but argument is of type 'const char *' # 144 | extern char *strncpy (char *__restrict __dest, # | ~~~~~~~~~~~~~~~~~^~~~~~ # make[1]: *** [: ct_c.o] Error 1 # make[1]: Leaving directory '/home/opam/.opam/default/.opam-switch/build/freetds.0.5.1/src' # make: *** [Makefile:22: byte] Error 2