=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/archivers/ocaml-bz2", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for ocaml-bz2-0.7.0nb2 ocamlc.opt -ccopt "-D BZ_PREFIX -I/opt/pkg/include -I/opt/pkg/include/ncurses -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/ncurses" -c c_bz.c c_bz.c:49:7: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead [-W#pragma-messages] 49 | invalid_argument(msg) ; break ; | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:112:26: note: expanded from macro 'invalid_argument' 112 | #define invalid_argument CAML_DEPRECATED("invalid_argument", "caml_invalid_argument") caml_invalid_argument | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :36:6: note: expanded from here 36 | GCC warning "\"invalid_argument\" is deprecated: use \"caml_invalid_argument\" instead" | ^ c_bz.c:51:7: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead [-W#pragma-messages] 51 | raise_out_of_memory() ; break ; | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:114:29: note: expanded from macro 'raise_out_of_memory' 114 | #define raise_out_of_memory CAML_DEPRECATED("raise_out_of_memory", "caml_raise_out_of_memory") caml_raise_out_of_memory | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :40:6: note: expanded from here 40 | GCC warning "\"raise_out_of_memory\" is deprecated: use \"caml_raise_out_of_memory\" instead" | ^ c_bz.c:54:7: warning: "raise_constant" is deprecated: use "caml_raise_constant" instead [-W#pragma-messages] 54 | raise_constant(*caml_named_value("mlbz_data_exn")) ; break ; | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:108:24: note: expanded from macro 'raise_constant' 108 | #define raise_constant CAML_DEPRECATED("raise_constant", "caml_raise_constant") caml_raise_constant | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :44:6: note: expanded from here 44 | GCC warning "\"raise_constant\" is deprecated: use \"caml_raise_constant\" instead" | ^ c_bz.c:56:7: warning: "raise_with_string" is deprecated: use "caml_raise_with_string" instead [-W#pragma-messages] 56 | raise_with_string(*caml_named_value("mlbz_io_exn"), | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:110:27: note: expanded from macro 'raise_with_string' 110 | #define raise_with_string CAML_DEPRECATED("raise_with_string", "caml_raise_with_string") caml_raise_with_string | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :48:6: note: expanded from here 48 | GCC warning "\"raise_with_string\" is deprecated: use \"caml_raise_with_string\" instead" | ^ c_bz.c:59:7: warning: "raise_constant" is deprecated: use "caml_raise_constant" instead [-W#pragma-messages] 59 | raise_constant(*caml_named_value("mlbz_eof_exn")) ; break ; | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:108:24: note: expanded from macro 'raise_constant' 108 | #define raise_constant CAML_DEPRECATED("raise_constant", "caml_raise_constant") caml_raise_constant | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :52:6: note: expanded from here 52 | GCC warning "\"raise_constant\" is deprecated: use \"caml_raise_constant\" instead" | ^ c_bz.c:61:7: warning: "failwith" is deprecated: use "caml_failwith" instead [-W#pragma-messages] 61 | failwith(msg) ; | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:111:18: note: expanded from macro 'failwith' 111 | #define failwith CAML_DEPRECATED("failwith", "caml_failwith") caml_failwith | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :56:6: note: expanded from here 56 | GCC warning "\"failwith\" is deprecated: use \"caml_failwith\" instead" | ^ c_bz.c:74:11: warning: "alloc_small" is deprecated: use "caml_alloc_small" instead [-W#pragma-messages] 74 | result= alloc_small(3, Abstract_tag); | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:47:21: note: expanded from macro 'alloc_small' 47 | #define alloc_small CAML_DEPRECATED("alloc_small", "caml_alloc_small") caml_alloc_small | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :60:6: note: expanded from here 60 | GCC warning "\"alloc_small\" is deprecated: use \"caml_alloc_small\" instead" | ^ c_bz.c:105:10: warning: "copy_string" is deprecated: use "caml_copy_string" instead [-W#pragma-messages] 105 | return copy_string(BZ_P(bzlibVersion())) ; | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:51:21: note: expanded from macro 'copy_string' 51 | #define copy_string CAML_DEPRECATED("copy_string", "caml_copy_string") caml_copy_string | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :64:6: note: expanded from here 64 | GCC warning "\"copy_string\" is deprecated: use \"caml_copy_string\" instead" | ^ c_bz.c:121:15: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 121 | c_unused = String_val(Field(unused, 0)) ; | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:122:17: warning: "string_length" is deprecated: use "caml_string_length" instead [-W#pragma-messages] 122 | c_nunused = string_length(Field(unused, 0)); | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:289:23: note: expanded from macro 'string_length' 289 | #define string_length CAML_DEPRECATED("string_length", "caml_string_length") caml_string_length | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :69:6: note: expanded from here 69 | GCC warning "\"string_length\" is deprecated: use \"caml_string_length\" instead" | ^ c_bz.c:139:5: warning: "raise_end_of_file" is deprecated: use "caml_raise_end_of_file" instead [-W#pragma-messages] 139 | raise_end_of_file() ; | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:117:27: note: expanded from macro 'raise_end_of_file' 117 | #define raise_end_of_file CAML_DEPRECATED("raise_end_of_file", "caml_raise_end_of_file") caml_raise_end_of_file | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :74:6: note: expanded from here 74 | GCC warning "\"raise_end_of_file\" is deprecated: use \"caml_raise_end_of_file\" instead" | ^ c_bz.c:140:23: warning: "string_length" is deprecated: use "caml_string_length" instead [-W#pragma-messages] 140 | if((c_len + c_pos > string_length(buf)) | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:289:23: note: expanded from macro 'string_length' 289 | #define string_length CAML_DEPRECATED("string_length", "caml_string_length") caml_string_length | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :78:6: note: expanded from here 78 | GCC warning "\"string_length\" is deprecated: use \"caml_string_length\" instead" | ^ c_bz.c:142:5: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead [-W#pragma-messages] 142 | invalid_argument("Bz.read") ; | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:112:26: note: expanded from macro 'invalid_argument' 112 | #define invalid_argument CAML_DEPRECATED("invalid_argument", "caml_invalid_argument") caml_invalid_argument | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :82:6: note: expanded from here 82 | GCC warning "\"invalid_argument\" is deprecated: use \"caml_invalid_argument\" instead" | ^ c_bz.c:143:9: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 143 | c_buf = String_val(buf) + c_pos ; | ^ ~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:173:12: warning: "alloc_string" is deprecated: use "caml_alloc_string" instead [-W#pragma-messages] 173 | result = alloc_string(nunused) ; | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:49:22: note: expanded from macro 'alloc_string' 49 | #define alloc_string CAML_DEPRECATED("alloc_string", "caml_alloc_string") caml_alloc_string | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :89:6: note: expanded from here 89 | GCC warning "\"alloc_string\" is deprecated: use \"caml_alloc_string\" instead" | ^ c_bz.c:174:10: warning: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 174 | memcpy(String_val(result), unused, nunused) ; | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/pkg/lib/ocaml/caml/mlvalues.h:290:23: note: expanded from macro 'String_val' 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_string.h:63:27: note: expanded from macro 'memcpy' 63 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest)) | ^~~~ c_bz.c:201:23: warning: "string_length" is deprecated: use "caml_string_length" instead [-W#pragma-messages] 201 | if((c_len + c_pos > string_length(buf)) | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:289:23: note: expanded from macro 'string_length' 289 | #define string_length CAML_DEPRECATED("string_length", "caml_string_length") caml_string_length | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :4:6: note: expanded from here 4 | GCC warning "\"string_length\" is deprecated: use \"caml_string_length\" instead" | ^ c_bz.c:203:5: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead [-W#pragma-messages] 203 | invalid_argument("Bz.write") ; | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:112:26: note: expanded from macro 'invalid_argument' 112 | #define invalid_argument CAML_DEPRECATED("invalid_argument", "caml_invalid_argument") caml_invalid_argument | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :8:6: note: expanded from here 8 | GCC warning "\"invalid_argument\" is deprecated: use \"caml_invalid_argument\" instead" | ^ c_bz.c:204:9: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 204 | c_buf = String_val(buf) + c_pos ; | ^ ~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:240:25: warning: "string_length" is deprecated: use "caml_string_length" instead [-W#pragma-messages] 240 | || c_pos + c_len > string_length(src)) | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:289:23: note: expanded from macro 'string_length' 289 | #define string_length CAML_DEPRECATED("string_length", "caml_string_length") caml_string_length | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :14:6: note: expanded from here 14 | GCC warning "\"string_length\" is deprecated: use \"caml_string_length\" instead" | ^ c_bz.c:241:5: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead [-W#pragma-messages] 241 | invalid_argument("Bz.compress") ; | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:112:26: note: expanded from macro 'invalid_argument' 112 | #define invalid_argument CAML_DEPRECATED("invalid_argument", "caml_invalid_argument") caml_invalid_argument | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :18:6: note: expanded from here 18 | GCC warning "\"invalid_argument\" is deprecated: use \"caml_invalid_argument\" instead" | ^ c_bz.c:242:11: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 242 | src_buf = String_val(src) + c_pos; | ^ ~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:246:5: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead [-W#pragma-messages] 246 | raise_out_of_memory(); | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:114:29: note: expanded from macro 'raise_out_of_memory' 114 | #define raise_out_of_memory CAML_DEPRECATED("raise_out_of_memory", "caml_raise_out_of_memory") caml_raise_out_of_memory | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :22:6: note: expanded from here 22 | GCC warning "\"raise_out_of_memory\" is deprecated: use \"caml_raise_out_of_memory\" instead" | ^ c_bz.c:258:2: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead [-W#pragma-messages] 258 | raise_out_of_memory(); | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:114:29: note: expanded from macro 'raise_out_of_memory' 114 | #define raise_out_of_memory CAML_DEPRECATED("raise_out_of_memory", "caml_raise_out_of_memory") caml_raise_out_of_memory | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :27:6: note: expanded from here 27 | GCC warning "\"raise_out_of_memory\" is deprecated: use \"caml_raise_out_of_memory\" instead" | ^ c_bz.c:263:7: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead [-W#pragma-messages] 263 | raise_out_of_memory(); | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:114:29: note: expanded from macro 'raise_out_of_memory' 114 | #define raise_out_of_memory CAML_DEPRECATED("raise_out_of_memory", "caml_raise_out_of_memory") caml_raise_out_of_memory | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :31:6: note: expanded from here 31 | GCC warning "\"raise_out_of_memory\" is deprecated: use \"caml_raise_out_of_memory\" instead" | ^ c_bz.c:266:12: warning: "alloc_string" is deprecated: use "caml_alloc_string" instead [-W#pragma-messages] 266 | result = alloc_string(dst_len); | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:49:22: note: expanded from macro 'alloc_string' 49 | #define alloc_string CAML_DEPRECATED("alloc_string", "caml_alloc_string") caml_alloc_string | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :35:6: note: expanded from here 35 | GCC warning "\"alloc_string\" is deprecated: use \"caml_alloc_string\" instead" | ^ c_bz.c:267:10: warning: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 267 | memcpy(String_val(result), dst_buf, dst_len); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/pkg/lib/ocaml/caml/mlvalues.h:290:23: note: expanded from macro 'String_val' 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_string.h:63:27: note: expanded from macro 'memcpy' 63 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest)) | ^~~~ c_bz.c:285:25: warning: "string_length" is deprecated: use "caml_string_length" instead [-W#pragma-messages] 285 | || c_pos + c_len > string_length(src)) | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:289:23: note: expanded from macro 'string_length' 289 | #define string_length CAML_DEPRECATED("string_length", "caml_string_length") caml_string_length | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :39:6: note: expanded from here 39 | GCC warning "\"string_length\" is deprecated: use \"caml_string_length\" instead" | ^ c_bz.c:286:5: warning: "invalid_argument" is deprecated: use "caml_invalid_argument" instead [-W#pragma-messages] 286 | invalid_argument("Bz.uncompress") ; | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:112:26: note: expanded from macro 'invalid_argument' 112 | #define invalid_argument CAML_DEPRECATED("invalid_argument", "caml_invalid_argument") caml_invalid_argument | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :43:6: note: expanded from here 43 | GCC warning "\"invalid_argument\" is deprecated: use \"caml_invalid_argument\" instead" | ^ c_bz.c:287:11: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 287 | src_buf = String_val(src) + c_pos; | ^ ~~~~~~~~~~~~~~~~~~~~~~~ c_bz.c:291:5: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead [-W#pragma-messages] 291 | raise_out_of_memory(); | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:114:29: note: expanded from macro 'raise_out_of_memory' 114 | #define raise_out_of_memory CAML_DEPRECATED("raise_out_of_memory", "caml_raise_out_of_memory") caml_raise_out_of_memory | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :47:6: note: expanded from here 47 | GCC warning "\"raise_out_of_memory\" is deprecated: use \"caml_raise_out_of_memory\" instead" | ^ c_bz.c:305:4: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead [-W#pragma-messages] 305 | raise_out_of_memory(); | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:114:29: note: expanded from macro 'raise_out_of_memory' 114 | #define raise_out_of_memory CAML_DEPRECATED("raise_out_of_memory", "caml_raise_out_of_memory") caml_raise_out_of_memory | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :52:6: note: expanded from here 52 | GCC warning "\"raise_out_of_memory\" is deprecated: use \"caml_raise_out_of_memory\" instead" | ^ c_bz.c:311:2: warning: "raise_out_of_memory" is deprecated: use "caml_raise_out_of_memory" instead [-W#pragma-messages] 311 | raise_out_of_memory() ; | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:114:29: note: expanded from macro 'raise_out_of_memory' 114 | #define raise_out_of_memory CAML_DEPRECATED("raise_out_of_memory", "caml_raise_out_of_memory") caml_raise_out_of_memory | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :56:6: note: expanded from here 56 | GCC warning "\"raise_out_of_memory\" is deprecated: use \"caml_raise_out_of_memory\" instead" | ^ c_bz.c:314:2: warning: "raise_constant" is deprecated: use "caml_raise_constant" instead [-W#pragma-messages] 314 | raise_constant(*caml_named_value("mlbz_data_exn")) ; | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:108:24: note: expanded from macro 'raise_constant' 108 | #define raise_constant CAML_DEPRECATED("raise_constant", "caml_raise_constant") caml_raise_constant | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :60:6: note: expanded from here 60 | GCC warning "\"raise_constant\" is deprecated: use \"caml_raise_constant\" instead" | ^ c_bz.c:316:2: warning: "raise_constant" is deprecated: use "caml_raise_constant" instead [-W#pragma-messages] 316 | raise_constant(*caml_named_value("mlbz_eof_exn")) ; | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:108:24: note: expanded from macro 'raise_constant' 108 | #define raise_constant CAML_DEPRECATED("raise_constant", "caml_raise_constant") caml_raise_constant | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :2:6: note: expanded from here 2 | GCC warning "\"raise_constant\" is deprecated: use \"caml_raise_constant\" instead" | ^ c_bz.c:319:12: warning: "alloc_string" is deprecated: use "caml_alloc_string" instead [-W#pragma-messages] 319 | result = alloc_string(dst_len); | ^ /opt/pkg/lib/ocaml/caml/compatibility.h:49:22: note: expanded from macro 'alloc_string' 49 | #define alloc_string CAML_DEPRECATED("alloc_string", "caml_alloc_string") caml_alloc_string | ^ /opt/pkg/lib/ocaml/caml/misc.h:58:3: note: expanded from macro 'CAML_DEPRECATED' 58 | CAML_PREPROWARNING(name1 is deprecated: use name2 instead) | ^ /opt/pkg/lib/ocaml/caml/misc.h:56:31: note: expanded from macro 'CAML_PREPROWARNING' 56 | #define CAML_PREPROWARNING(x) _Pragma(CAML_MAKEWARNING2(x)) | ^ :6:6: note: expanded from here 6 | GCC warning "\"alloc_string\" is deprecated: use \"caml_alloc_string\" instead" | ^ c_bz.c:320:10: warning: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 320 | memcpy(String_val(result), dst_buf, dst_len); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/pkg/lib/ocaml/caml/mlvalues.h:290:23: note: expanded from macro 'String_val' 290 | #define String_val(x) ((const char *) Bp_val(x)) | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_string.h:63:27: note: expanded from macro 'memcpy' 63 | __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest)) | ^~~~ 37 warnings generated. ocamlmklib -oc camlbz2 c_bz.o -lbz2 ocamlc.opt -c bz2.mli File "bz2.mli", line 54, characters 46-67: 54 | val open_in : ?small:bool -> ?unused:bytes -> Pervasives.in_channel -> ^^^^^^^^^^^^^^^^^^^^^ Alert deprecated: module Stdlib.Pervasives Use Stdlib instead. If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims File "bz2.mli", line 84, characters 29-51: 84 | val open_out : ?block:int -> Pervasives.out_channel -> out_channel ^^^^^^^^^^^^^^^^^^^^^^ Alert deprecated: module Stdlib.Pervasives Use Stdlib instead. If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims ocamlc.opt -c bz2.ml File "bz2.ml", line 31, characters 51-72: 31 | external open_in : ?small:bool -> ?unused:bytes -> Pervasives.in_channel -> ^^^^^^^^^^^^^^^^^^^^^ Alert deprecated: module Stdlib.Pervasives Use Stdlib instead. If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims File "bz2.ml", line 44, characters 34-56: 44 | external open_out : ?block:int -> Pervasives.out_channel -> out_channel ^^^^^^^^^^^^^^^^^^^^^^ Alert deprecated: module Stdlib.Pervasives Use Stdlib instead. If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims ocamlmklib -oc camlbz2 -o bz2 bz2.cmo -lbz2 ocamlopt.opt -c bz2.ml File "bz2.ml", line 31, characters 51-72: 31 | external open_in : ?small:bool -> ?unused:bytes -> Pervasives.in_channel -> ^^^^^^^^^^^^^^^^^^^^^ Alert deprecated: module Stdlib.Pervasives Use Stdlib instead. If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims File "bz2.ml", line 44, characters 34-56: 44 | external open_out : ?block:int -> Pervasives.out_channel -> out_channel ^^^^^^^^^^^^^^^^^^^^^^ Alert deprecated: module Stdlib.Pervasives Use Stdlib instead. If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims ocamlmklib -oc camlbz2 -o bz2 bz2.cmx -lbz2