=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Building for labltk-8.06.3nb7
cd support; /usr/pkg/bin/gmake
gmake[1]: Entering directory '/scratch/work/x11/labltk/work/labltk-8.06.3/support'
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3  support.mli
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3  support.ml
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3  rawwidget.mli
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3  rawwidget.ml
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3  widget.mli
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3  widget.ml
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3  protocol.mli
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3  protocol.ml
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3  textvariable.mli
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3  textvariable.ml
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3  timer.mli
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3  timer.ml
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3  fileevent.mli
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3  fileevent.ml
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3  camltkwrap.mli
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3  camltkwrap.ml
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3  -I +threads -I vmthreads tkthread.mli
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3  -I +threads -I vmthreads tkthread.ml
cc  -fPIC  -I/usr/pkg/lib/ocaml/caml   -c cltkCaml.c
In file included from cltkCaml.c:21:0:
cltkCaml.c: In function 'camltk_return':
/usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 2 of 'Tcl_SetResult' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
 #define String_val(x) ((const char *) Bp_val(x))
                       ^
cltkCaml.c:61:30: note: in expansion of macro 'String_val'
   Tcl_SetResult(cltclinterp, String_val(v), TCL_VOLATILE);
                              ^
In file included from /scratch/work/x11/labltk/work/.buildlink/include/tcl.h:2418:0,
                 from cltkCaml.c:19:
/scratch/work/x11/labltk/work/.buildlink/include/tclDecls.h:693:14: note: expected 'char *' but argument is of type 'const char *'
 EXTERN void  Tcl_SetResult(Tcl_Interp *interp, char *result,
              ^
cltkCaml.c: In function 'camltk_init':
cltkCaml.c:81:17: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     tkerror_exn = caml_named_value("tkerror");
                 ^
cltkCaml.c:83:18: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     handler_code = caml_named_value("camlcb");
                  ^
cc  -fPIC  -I/usr/pkg/lib/ocaml/caml   -c cltkUtf.c
cc  -fPIC  -I/usr/pkg/lib/ocaml/caml   -c cltkEval.c
cc  -fPIC  -I/usr/pkg/lib/ocaml/caml   -c cltkEvent.c
cc  -fPIC  -I/usr/pkg/lib/ocaml/caml   -c cltkFile.c
cc  -fPIC  -I/usr/pkg/lib/ocaml/caml   -c cltkMain.c
cltkMain.c: In function 'camltk_opentk':
cltkMain.c:82:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   argv0 = String_val( Field( argv, 0 ) );
         ^
cltkMain.c:92:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
       value *interp = caml_named_value("cltclinterp");
                       ^
cltkMain.c:121:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
           tkargv[i] = String_val(Field(tmp, 0));
                     ^
cc  -fPIC  -I/usr/pkg/lib/ocaml/caml   -c cltkMisc.c
cc  -fPIC  -I/usr/pkg/lib/ocaml/caml   -c cltkTimer.c
cc  -fPIC  -I/usr/pkg/lib/ocaml/caml   -c cltkVar.c
cc  -fPIC  -I/usr/pkg/lib/ocaml/caml   -c cltkWait.c
cc  -fPIC  -I/usr/pkg/lib/ocaml/caml   -c cltkImg.c
/usr/pkg/bin/ocamlmklib -o labltk cltkCaml.o cltkUtf.o cltkEval.o cltkEvent.o cltkFile.o cltkMain.o cltkMisc.o cltkTimer.o cltkVar.o cltkWait.o cltkImg.o 
gmake[1]: Leaving directory '/scratch/work/x11/labltk/work/labltk-8.06.3/support'
cd compiler; /usr/pkg/bin/gmake
gmake[1]: Entering directory '/scratch/work/x11/labltk/work/labltk-8.06.3/compiler'
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3 -g -I ../support flags.ml
(echo "let copyright=\"\\"; \
sed -e 's/$/\\n\\/' copyright; \
echo "\""; \
echo "let write ~w = w copyright;;") > copyright.ml
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3 -g -I ../support copyright.ml
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3 -g -I ../support tsort.ml
/usr/pkg/bin/ocamlc.opt -c -warn-error A-3 -g -I ../support tables.ml
File "tables.ml", line 121, characters 12-23:
121 |     let s = String.copy s in
                  ^^^^^^^^^^^
Alert deprecated: Stdlib.StdLabels.String.copy
File "tables.ml", line 130, characters 12-78:
130 |             s.[0] <- Char.chr (Char.code cd + (Char.code 'A' - Char.code 'a'))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Alert deprecated: Stdlib.StdLabels.String.set
Use BytesLabels.set instead.
File "tables.ml", line 130, characters 12-13:
130 |             s.[0] <- Char.chr (Char.code cd + (Char.code 'A' - Char.code 'a'))
                  ^
Error: This expression has type string but an expression was expected of type
         bytes
gmake[1]: *** [Makefile:74: tables.cmo] Error 2
gmake[1]: Leaving directory '/scratch/work/x11/labltk/work/labltk-8.06.3/compiler'
gmake: *** [Makefile:26: all] Error 2
*** Error code 2

Stop.
make[1]: stopped in /tree/pkgsrc/x11/labltk
*** Error code 1

Stop.
make: stopped in /tree/pkgsrc/x11/labltk