=> Bootstrap dependency digest>=20010302: found digest-20190127 ===> 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 camlimages-4.0.1nb94 cd /scratch/work/graphics/camlimages/work/camlspotter-camlimages-c803efa9d5d3 && /usr/pkg/bin/omake --configure --verbose *** omake: reading OMakefiles --- Checking for ocamlfind... (found /usr/pkg/bin/ocamlfind) --- Checking for ocamlc.opt... (found /scratch/work/graphics/camlimages/work/.buildlink/bin/ocamlc.opt) --- Checking for ocamlopt.opt... (found /scratch/work/graphics/camlimages/work/.buildlink/bin/ocamlopt.opt) --- Checking for ocamldep.opt... (found /usr/pkg/bin/ocamldep.opt) --- Checking for ocamllex.opt... (found /usr/pkg/bin/ocamllex.opt) --- Checking whether ocamlc understands the "z" warnings... (yes) --- Checking whether ocamlopt can create cmxs plugins... (yes) File OMyMakeroot: line 169, characters 18-85: Warning: old-style fun expression. This expression should use a => binding. File src/OMakefile: line 73, characters 2-34: Warning: old-style foreach expression. This expression should use a => binding. File src/OMakefile: line 77, characters 2-24: Warning: old-style foreach expression. This expression should use a => binding. File src/OMakefile: line 143, characters 2-34: Warning: old-style foreach expression. This expression should use a => binding. File src/OMakefile: line 147, characters 2-24: Warning: old-style foreach expression. This expression should use a => binding. File src/OMakefile: line 171, characters 2-34: Warning: old-style foreach expression. This expression should use a => binding. File src/OMakefile: line 178, characters 2-24: Warning: old-style foreach expression. This expression should use a => binding. File src/OMakefile: line 237, characters 70-136: Warning: old-style foreach expression. This expression should use a => binding. --- Checking for ocamlmklib... (found /scratch/work/graphics/camlimages/work/.buildlink/bin/ocamlmklib) --- Checking for gif_lib.h... --- Checking for gcc... (found /scratch/work/graphics/camlimages/work/.cwrapper/bin/gcc) --- Checking for g++... (found /scratch/work/graphics/camlimages/work/.cwrapper/bin/g++) --- Checking for gcc... (found /scratch/work/graphics/camlimages/work/.cwrapper/bin/gcc) --- Checking for g++... (found /scratch/work/graphics/camlimages/work/.cwrapper/bin/g++) --- Checking for gcc... (found /scratch/work/graphics/camlimages/work/.cwrapper/bin/gcc) --- Checking for ld... (found /scratch/work/graphics/camlimages/work/.cwrapper/bin/ld) --- Checking for as... (found /scratch/work/graphics/camlimages/work/.cwrapper/bin/as) (found) --- Checking for function DGifOpenFileName in library gif... (found) --- Checking for zlib.h... (found) --- Checking for function zlibVersion in library z... (found) --- Checking for png.h... (found) --- Checking for function png_create_read_struct in library png15... (NOT found) --- Checking for jpeglib.h... (found) --- Checking for function jpeg_read_header in library jpeg... (found) --- Checking for tiff.h... (found) --- Checking for function TIFFOpen in library tiff... (found) --- Checking for xpm.h... (NOT found) --- Checking for gs... (found /usr/pkg/bin/gs) --- Checking lablgtk2... /usr/pkg/lib/ocaml/site-lib/lablgtk2 (found) --- Checking graphics compilability: open Graphics... (yes) --- Checking for freetype-config... (found /scratch/work/graphics/camlimages/work/.buildlink/bin/freetype-config) SUPPORT_FREETYPE=true! --- Checking for rgb.txt... (found /usr/X11R7/lib/X11/rgb.txt) --- Configuring wordsize 4 --- C libraries libgif: true libpng: false libjpeg: true libtiff: true libxpm: false libz: true --- Subpackages gif: true (-lgif) png: false () jpeg: true (-ljpeg) tiff: true (-ltiff -ljpeg -lz ) xpm: false () freetype: true (/scratch/work/graphics/camlimages/work/.buildlink/bin/freetype-config) (-L/usr/X11R7/lib -lfreetype) ps: true (/usr/pkg/bin/gs) rgb.txt: true (/etc/X11 /usr/share/X11 /usr/X11R7/lib/X11) lablgtk2: true graphics: true --- Summary supported subpackages: gif jpeg tiff ps lablgtk2 graphics freetype supported formats: gif jpeg tiff ps supported non-formats: lablgtk2 graphics freetype CFLAGS: LDFLAGS: -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib/nspr -Wl,-R/usr/pkg/lib/nspr -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib --- --- Checking if ocamldep understands -modules... (yes) *** omake: finished reading OMakefiles (1.65 sec) - scan src scan-ocaml-png.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules png.mli - scan src scan-ocaml-png.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules png.ml - scan src scan-ocaml-tiff.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules tiff.mli - scan src scan-ocaml-tiff.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules tiff.ml - exit src scan-ocaml-png.mli, 0.05 sec, code 0 - scan src scan-ocaml-jpeg.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules jpeg.mli - exit src scan-ocaml-tiff.mli, 0.05 sec, code 0 - scan src scan-ocaml-jpeg.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules jpeg.ml - exit src scan-ocaml-tiff.ml, 0.06 sec, code 0 - scan src scan-ocaml-oGif.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules oGif.ml - exit src scan-ocaml-png.ml, 0.10 sec, code 0 - scan src scan-ocaml-oJpeg.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules oJpeg.ml - exit src scan-ocaml-jpeg.mli, 0.06 sec, code 0 - scan src scan-ocaml-oJpeg.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules oJpeg.mli - exit src scan-ocaml-jpeg.ml, 0.05 sec, code 0 - scan src scan-ocaml-oXpm.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules oXpm.ml - exit src scan-ocaml-oGif.ml, 0.06 sec, code 0 - scan src scan-ocaml-ps.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules ps.ml - exit src scan-ocaml-oJpeg.mli, 0.06 sec, code 0 - scan src scan-ocaml-ps.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules ps.mli - exit src scan-ocaml-oJpeg.ml, 0.06 sec, code 0 - scan src scan-ocaml-oPs.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules oPs.ml - exit src scan-ocaml-oXpm.ml, 0.05 sec, code 0 - scan src scan-ocaml-gif.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules gif.mli - exit src scan-ocaml-ps.mli, 0.05 sec, code 0 - scan src scan-ocaml-gif.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules gif.ml - exit src scan-ocaml-oPs.ml, 0.05 sec, code 0 - build src oPs.cmi + ocamlfind ocamlc -package lablgtk2,graphics -g -I . -c oPs.ml - exit src scan-ocaml-ps.ml, 0.08 sec, code 0 - scan src scan-ocaml-oPng.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules oPng.ml - exit src scan-ocaml-gif.mli, 0.07 sec, code 0 - scan src scan-ocaml-oPng.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules oPng.mli - exit src scan-ocaml-gif.ml, 0.06 sec, code 0 - scan src scan-ocaml-oTiff.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules oTiff.ml - build src oPs.cmi + ocamlfind ocamlopt -package lablgtk2,graphics -I . -c oPs.ml - exit src scan-ocaml-oPng.mli, 0.05 sec, code 0 - scan src scan-ocaml-xpm.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules xpm.mli - exit src scan-ocaml-oPng.ml, 0.07 sec, code 0 - scan src scan-ocaml-xpm.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules xpm.ml - exit src scan-ocaml-oTiff.ml, 0.05 sec, code 0 - scan examples/normalize scan-ocaml-normalize.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules normalize.ml - exit src scan-ocaml-xpm.mli, 0.06 sec, code 0 - build . config.h + public.stdout = $(public.fopen $(public.file), "w") public.fsubst(, ($(public.file), ".in")) public.close($(public.stdout)) - exit src scan-ocaml-xpm.ml, 0.06 sec, code 0 - scan src scan-ocaml-oPpm.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules oPpm.ml - exit examples/normalize scan-ocaml-normalize.ml, 0.06 sec, code 0 - scan src scan-ocaml-info.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules info.mli - exit . config.h, 0.07 sec, code 0 - scan src scan-c-png_na.c + gcc -I /usr/include/X11 -I /usr/local/include -I /usr/pkg/include -I/usr/X11R7/include/freetype2 -fPIC -I /usr/pkg/lib/ocaml -I/usr/include/X11 -I/usr/local/include -I/usr/pkg/include -MM png_na.c - exit src oPs.cmi, 0.23 sec, code 0 - scan src scan-c-gifread.c + gcc -I /usr/include/X11 -I /usr/local/include -I /usr/pkg/include -I/usr/X11R7/include/freetype2 -fPIC -I /usr/pkg/lib/ocaml -I/usr/include/X11 -I/usr/local/include -I/usr/pkg/include -MM gifread.c - exit src scan-ocaml-oPpm.ml, 0.05 sec, code 0 - scan src scan-c-jpegwrite.c + gcc -I /usr/include/X11 -I /usr/local/include -I /usr/pkg/include -I/usr/X11R7/include/freetype2 -fPIC -I /usr/pkg/lib/ocaml -I/usr/include/X11 -I/usr/local/include -I/usr/pkg/include -MM jpegwrite.c - exit src scan-ocaml-info.mli, 0.06 sec, code 0 - build src info.cmi + ocamlfind ocamlc -package lablgtk2,graphics -g -I . -c info.mli - exit src scan-c-png_na.c, 0.09 sec, code 0 - build src png_na.o + gcc -I /usr/include/X11 -I /usr/local/include -I /usr/pkg/include -I/usr/X11R7/include/freetype2 -fPIC -I /usr/pkg/lib/ocaml -I/usr/include/X11 -I/usr/local/include -I/usr/pkg/include -c -o png_na.o png_na.c - exit src scan-c-jpegwrite.c, 0.10 sec, code 0 - build src jpegwrite.o + gcc -I /usr/include/X11 -I /usr/local/include -I /usr/pkg/include -I/usr/X11R7/include/freetype2 -fPIC -I /usr/pkg/lib/ocaml -I/usr/include/X11 -I/usr/local/include -I/usr/pkg/include -c -o jpegwrite.o jpegwrite.c - exit src scan-c-gifread.c, 0.11 sec, code 0 - build src gifread.o + gcc -I /usr/include/X11 -I /usr/local/include -I /usr/pkg/include -I/usr/X11R7/include/freetype2 -fPIC -I /usr/pkg/lib/ocaml -I/usr/include/X11 -I/usr/local/include -I/usr/pkg/include -c -o gifread.o gifread.c - exit src info.cmi, 0.07 sec, code 0 - scan src scan-c-gifwrite.c + gcc -I /usr/include/X11 -I /usr/local/include -I /usr/pkg/include -I/usr/X11R7/include/freetype2 -fPIC -I /usr/pkg/lib/ocaml -I/usr/include/X11 -I/usr/local/include -I/usr/pkg/include -MM gifwrite.c - exit src scan-c-gifwrite.c, 0.09 sec, code 0 - build src gifwrite.o + gcc -I /usr/include/X11 -I /usr/local/include -I /usr/pkg/include -I/usr/X11R7/include/freetype2 -fPIC -I /usr/pkg/lib/ocaml -I/usr/include/X11 -I/usr/local/include -I/usr/pkg/include -c -o gifwrite.o gifwrite.c In file included from gifread.c:18:0: gifread.c: In function 'dGifGetLine': /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 2 of 'DGifGetLine' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define String_val(x) ((const char *) Bp_val(x)) ^ gifread.c:201:28: note: in expansion of macro 'String_val' if( DGifGetLine(GifFile, String_val(buf), GifFile->Image.Width ) ^~~~~~~~~~ In file included from gifread.c:28:0: /scratch/work/graphics/camlimages/work/.buildlink/include/gif_lib.h:207:5: note: expected 'GifPixelType * {aka unsigned char *}' but argument is of type 'const char *' int DGifGetLine(GifFileType *GifFile, GifPixelType *GifLine, int GifLineLen); ^~~~~~~~~~~ jpegwrite.c: In function 'write_JPEG_file': jpegwrite.c:84:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] image_buffer = String_val(buffer); ^ In file included from gifread.c:18:0: gifread.c: In function 'dGifGetExtension': /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define String_val(x) ((const char *) Bp_val(x)) ^ gifread.c:226:12: note: in expansion of macro 'String_val' memcpy(String_val(ext), &extData[1], extData[0]); ^~~~~~~~~~ In file included from gifread.c:26:0: /usr/include/string.h:51:7: note: expected 'void * restrict' but argument is of type 'const char *' void *memcpy(void * __restrict, const void * __restrict, size_t); ^~~~~~ jpegwrite.c:87:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] filename = String_val(file); ^ jpegwrite.c: In function 'open_jpeg_file_for_write_colorspace': jpegwrite.c:223:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] filename= String_val( name ); ^ jpegwrite.c: In function 'write_jpeg_scanline': jpegwrite.c:297:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] row[0] = String_val( buf ); ^ - exit src png_na.o, 0.18 sec, code 0 - build src libcamlimages_png.a + ocamlmklib -o camlimages_png -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib/nspr -Wl,-R/usr/pkg/lib/nspr -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib png_na.o - exit src jpegwrite.o, 0.22 sec, code 0 - scan src scan-c-tiffwrite.c + gcc -I /usr/include/X11 -I /usr/local/include -I /usr/pkg/include -I/usr/X11R7/include/freetype2 -fPIC -I /usr/pkg/lib/ocaml -I/usr/include/X11 -I/usr/local/include -I/usr/pkg/include -MM tiffwrite.c In file included from gifwrite.c:20:0: gifwrite.c: In function 'ColorMapObject_val': /usr/pkg/lib/ocaml/caml/memory.h:476:28: warning: initialization makes integer from pointer without a cast [-Wint-conversion] type caml__temp_result = (result); \ ^ /usr/pkg/lib/ocaml/caml/memory.h:481:28: note: in expansion of macro 'CAMLreturnT' #define CAMLreturn(result) CAMLreturnT(value, result) ^~~~~~~~~~~ gifwrite.c:47:26: note: in expansion of macro 'CAMLreturn' if( cmap == Atom(0) ){ CAMLreturn(NULL); } ^~~~~~~~~~ /usr/pkg/lib/ocaml/caml/memory.h:478:10: warning: return makes pointer from integer without a cast [-Wint-conversion] return caml__temp_result; \ ^ /usr/pkg/lib/ocaml/caml/memory.h:481:28: note: in expansion of macro 'CAMLreturnT' #define CAMLreturn(result) CAMLreturnT(value, result) ^~~~~~~~~~~ gifwrite.c:47:26: note: in expansion of macro 'CAMLreturn' if( cmap == Atom(0) ){ CAMLreturn(NULL); } ^~~~~~~~~~ /usr/pkg/lib/ocaml/caml/memory.h:476:28: warning: initialization makes integer from pointer without a cast [-Wint-conversion] type caml__temp_result = (result); \ ^ /usr/pkg/lib/ocaml/caml/memory.h:481:28: note: in expansion of macro 'CAMLreturnT' #define CAMLreturn(result) CAMLreturnT(value, result) ^~~~~~~~~~~ gifwrite.c:61:3: note: in expansion of macro 'CAMLreturn' CAMLreturn(cmapobj); ^~~~~~~~~~ /usr/pkg/lib/ocaml/caml/memory.h:478:10: warning: return makes pointer from integer without a cast [-Wint-conversion] return caml__temp_result; \ ^ /usr/pkg/lib/ocaml/caml/memory.h:481:28: note: in expansion of macro 'CAMLreturnT' #define CAMLreturn(result) CAMLreturnT(value, result) ^~~~~~~~~~~ gifwrite.c:61:3: note: in expansion of macro 'CAMLreturn' CAMLreturn(cmapobj); ^~~~~~~~~~ In file included from gifwrite.c:18:0: gifwrite.c: In function 'eGifPutLine': /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 2 of 'EGifPutLine' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define String_val(x) ((const char *) Bp_val(x)) ^ gifwrite.c:134:32: note: in expansion of macro 'String_val' if ( EGifPutLine(GifFileOut, String_val(buf), GifFileOut->Image.Width) ^~~~~~~~~~ In file included from gifwrite.c:26:0: /scratch/work/graphics/camlimages/work/.buildlink/include/gif_lib.h:160:5: note: expected 'GifPixelType * {aka unsigned char *}' but argument is of type 'const char *' int EGifPutLine(GifFileType *GifFile, GifPixelType *GifLine, ^~~~~~~~~~~ - exit src gifread.o, 0.25 sec, code 0 - scan src scan-c-jpegread.c + gcc -I /usr/include/X11 -I /usr/local/include -I /usr/pkg/include -I/usr/X11R7/include/freetype2 -fPIC -I /usr/pkg/lib/ocaml -I/usr/include/X11 -I/usr/local/include -I/usr/pkg/include -MM jpegread.c - exit src libcamlimages_png.a, 0.11 sec, code 0 - scan src scan-c-tiffread.c + gcc -I /usr/include/X11 -I /usr/local/include -I /usr/pkg/include -I/usr/X11R7/include/freetype2 -fPIC -I /usr/pkg/lib/ocaml -I/usr/include/X11 -I/usr/local/include -I/usr/pkg/include -MM tiffread.c - exit src scan-c-tiffwrite.c, 0.10 sec, code 0 - build src tiffwrite.o + gcc -I /usr/include/X11 -I /usr/local/include -I /usr/pkg/include -I/usr/X11R7/include/freetype2 -fPIC -I /usr/pkg/lib/ocaml -I/usr/include/X11 -I/usr/local/include -I/usr/pkg/include -c -o tiffwrite.o tiffwrite.c - exit src gifwrite.o, 0.23 sec, code 0 - build src dllcamlimages_gif.so + ocamlmklib -o camlimages_gif -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib/nspr -Wl,-R/usr/pkg/lib/nspr -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -lgif gifread.o gifwrite.o - exit src scan-c-jpegread.c, 0.09 sec, code 0 - build src jpegread.o + gcc -I /usr/include/X11 -I /usr/local/include -I /usr/pkg/include -I/usr/X11R7/include/freetype2 -fPIC -I /usr/pkg/lib/ocaml -I/usr/include/X11 -I/usr/local/include -I/usr/pkg/include -c -o jpegread.o jpegread.c - exit src scan-c-tiffread.c, 0.09 sec, code 0 - build src tiffread.o + gcc -I /usr/include/X11 -I /usr/local/include -I /usr/pkg/include -I/usr/X11R7/include/freetype2 -fPIC -I /usr/pkg/lib/ocaml -I/usr/include/X11 -I/usr/local/include -I/usr/pkg/include -c -o tiffread.o tiffread.c - exit src dllcamlimages_gif.so, 0.11 sec, code 0 - scan src scan-c-xpm_na.c + gcc -I /usr/include/X11 -I /usr/local/include -I /usr/pkg/include -I/usr/X11R7/include/freetype2 -fPIC -I /usr/pkg/lib/ocaml -I/usr/include/X11 -I/usr/local/include -I/usr/pkg/include -MM xpm_na.c tiffwrite.c:24:0: warning: "int16" redefined #define int16 int16tiff In file included from /usr/pkg/lib/ocaml/caml/mlvalues.h:20:0, from tiffwrite.c:18: /usr/pkg/lib/ocaml/caml/compatibility.h:313:0: note: this is the location of the previous definition #define int16 caml_ba_int16 tiffwrite.c:25:0: warning: "uint16" redefined #define uint16 uint16tiff In file included from /usr/pkg/lib/ocaml/caml/mlvalues.h:20:0, from tiffwrite.c:18: /usr/pkg/lib/ocaml/caml/compatibility.h:314:0: note: this is the location of the previous definition #define uint16 caml_ba_uint16 In file included from tiffwrite.c:18:0: tiffwrite.c: In function 'write_tiff_scanline': /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 2 of 'TIFFWriteScanline' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define String_val(x) ((const char *) Bp_val(x)) ^ tiffwrite.c:90:35: note: in expansion of macro 'String_val' TIFFWriteScanline((TIFF*)tiffh, String_val(buf), Int_val(row), 0); ^~~~~~~~~~ In file included from tiffwrite.c:31:0: /scratch/work/graphics/camlimages/work/.buildlink/include/tiffio.h:433:12: note: expected 'void *' but argument is of type 'const char *' extern int TIFFWriteScanline(TIFF* tif, void* buf, uint32_t row, uint16_t sample); ^~~~~~~~~~~~~~~~~ jpegread.c: In function 'read_JPEG_file': jpegread.c:95:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] filename= String_val( name ); ^ In file included from jpegread.c:21:0: /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 1 of 'memcpy' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define String_val(x) ((const char *) Bp_val(x)) ^ jpegread.c:203:15: note: in expansion of macro 'String_val' memcpy( String_val(r[2]) + i * row_stride, ^~~~~~~~~~ In file included from jpegread.c:29:0: /usr/include/string.h:51:7: note: expected 'void * restrict' but argument is of type 'const char *' void *memcpy(void * __restrict, const void * __restrict, size_t); ^~~~~~ jpegread.c: In function 'open_jpeg_file_for_read': jpegread.c:270:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] filename= String_val( name ); ^ jpegread.c: In function 'read_jpeg_scanline': jpegread.c:398:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] row[0] = String_val( buf ) + Int_val( offset ); ^ jpegread.c: In function 'read_jpeg_scanlines': jpegread.c:412:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] row[0] = String_val(buf) + Int_val(offset); ^ tiffread.c:27:0: warning: "int16" redefined #define int16 int16tiff In file included from /usr/pkg/lib/ocaml/caml/mlvalues.h:20:0, from tiffread.c:19: /usr/pkg/lib/ocaml/caml/compatibility.h:313:0: note: this is the location of the previous definition #define int16 caml_ba_int16 tiffread.c:28:0: warning: "uint16" redefined #define uint16 uint16tiff In file included from /usr/pkg/lib/ocaml/caml/mlvalues.h:20:0, from tiffread.c:19: /usr/pkg/lib/ocaml/caml/compatibility.h:314:0: note: this is the location of the previous definition #define uint16 caml_ba_uint16 - exit src scan-c-xpm_na.c, 0.08 sec, code 0 - build src xpm_na.o + gcc -I /usr/include/X11 -I /usr/local/include -I /usr/pkg/include -I/usr/X11R7/include/freetype2 -fPIC -I /usr/pkg/lib/ocaml -I/usr/include/X11 -I/usr/local/include -I/usr/pkg/include -c -o xpm_na.o xpm_na.c tiffread.c: In function 'open_tiff_file_for_read': tiffread.c:57:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] filename = String_val( name ); ^ In file included from tiffread.c:19:0: tiffread.c: In function 'read_tiff_scanline': /usr/pkg/lib/ocaml/caml/mlvalues.h:265:23: warning: passing argument 2 of 'TIFFReadScanline' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define String_val(x) ((const char *) Bp_val(x)) ^ tiffread.c:128:34: note: in expansion of macro 'String_val' TIFFReadScanline((TIFF*)tiffh, String_val(buf), Int_val(row), 0); ^~~~~~~~~~ In file included from tiffread.c:34:0: /scratch/work/graphics/camlimages/work/.buildlink/include/tiffio.h:432:12: note: expected 'void *' but argument is of type 'const char *' extern int TIFFReadScanline(TIFF* tif, void* buf, uint32_t row, uint16_t sample); ^~~~~~~~~~~~~~~~ - exit src tiffwrite.o, 0.21 sec, code 0 - scan src scan-ocaml-bmp.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules bmp.ml - exit src tiffread.o, 0.22 sec, code 0 - build src dllcamlimages_tiff.so + ocamlmklib -o camlimages_tiff -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib/nspr -Wl,-R/usr/pkg/lib/nspr -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -ltiff -ljpeg -lz tiffread.o tiffwrite.o - exit src scan-ocaml-bmp.ml, 0.07 sec, code 0 - scan src scan-ocaml-bmp.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules bmp.mli - exit src jpegread.o, 0.26 sec, code 0 - build src dllcamlimages_supported.so + ocamlmklib -o camlimages_supported -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib/nspr -Wl,-R/usr/pkg/lib/nspr -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -lgif -ljpeg -ltiff -ljpeg -lz gifread.o gifwrite.o jpegread.o jpegwrite.o tiffread.o tiffwrite.o - exit src scan-ocaml-bmp.mli, 0.05 sec, code 0 - build src libcamlimages_jpeg.a + ocamlmklib -o camlimages_jpeg -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib/nspr -Wl,-R/usr/pkg/lib/nspr -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -ljpeg jpegread.o jpegwrite.o - exit src xpm_na.o, 0.18 sec, code 0 - build src dllcamlimages_all.so + ocamlmklib -o camlimages_all -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib/nspr -Wl,-R/usr/pkg/lib/nspr -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -lgif -ljpeg -ltiff -ljpeg -lz gifread.o gifwrite.o png_na.o jpegread.o jpegwrite.o tiffread.o tiffwrite.o xpm_na.o - exit src dllcamlimages_tiff.so, 0.14 sec, code 0 - build src libcamlimages_xpm.a + ocamlmklib -o camlimages_xpm -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib/nspr -Wl,-R/usr/pkg/lib/nspr -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib xpm_na.o - exit src dllcamlimages_supported.so, 0.14 sec, code 0 - scan src scan-ocaml-colorhist.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules colorhist.ml - exit src libcamlimages_jpeg.a, 0.12 sec, code 0 - scan src scan-ocaml-colorhist.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules colorhist.mli - exit src scan-ocaml-colorhist.ml, 0.05 sec, code 0 - scan src scan-ocaml-rgba32.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules rgba32.mli - exit src scan-ocaml-colorhist.mli, 0.05 sec, code 0 - scan src scan-ocaml-rgba32.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules rgba32.ml - exit src libcamlimages_xpm.a, 0.12 sec, code 0 - scan src scan-ocaml-images.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules images.mli - exit src dllcamlimages_all.so, 0.15 sec, code 0 - scan src scan-ocaml-images.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules images.ml - exit src scan-ocaml-rgba32.mli, 0.05 sec, code 0 - scan src scan-ocaml-ppm.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules ppm.mli - exit src scan-ocaml-rgba32.ml, 0.06 sec, code 0 - scan src scan-ocaml-ppm.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules ppm.ml - exit src scan-ocaml-images.mli, 0.06 sec, code 0 - scan src scan-ocaml-bitmap.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules bitmap.mli - exit src scan-ocaml-images.ml, 0.06 sec, code 0 - scan src scan-ocaml-bitmap.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules bitmap.ml - exit src scan-ocaml-ppm.ml, 0.05 sec, code 0 - scan src scan-ocaml-color.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules color.ml - exit src scan-ocaml-bitmap.mli, 0.06 sec, code 0 - build src bitmap.cmi + ocamlfind ocamlc -package lablgtk2,graphics -g -I . -c bitmap.mli - exit src scan-ocaml-ppm.mli, 0.09 sec, code 0 - scan src scan-ocaml-color.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules color.mli - exit src scan-ocaml-bitmap.ml, 0.06 sec, code 0 - scan src scan-ocaml-oBmp.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules oBmp.ml - exit src scan-ocaml-color.ml, 0.06 sec, code 0 - scan src scan-ocaml-genimage.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules genimage.ml - exit src scan-ocaml-color.mli, 0.06 sec, code 0 - build src color.cmi + ocamlfind ocamlc -package lablgtk2,graphics -g -I . -c color.mli - exit src bitmap.cmi, 0.09 sec, code 0 - scan src scan-ocaml-genimage.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules genimage.mli - exit src scan-ocaml-oBmp.ml, 0.06 sec, code 0 - scan src scan-ocaml-reduce.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules reduce.mli - exit src scan-ocaml-genimage.ml, 0.07 sec, code 0 - scan src scan-ocaml-image_intf.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules image_intf.mli - exit src scan-ocaml-genimage.mli, 0.05 sec, code 0 - scan src scan-ocaml-reduce.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules reduce.ml - exit src color.cmi, 0.08 sec, code 0 - build src rgba32.cmi + ocamlfind ocamlc -package lablgtk2,graphics -g -I . -c rgba32.mli - exit src scan-ocaml-reduce.mli, 0.05 sec, code 0 - scan src scan-ocaml-tmpfile.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules tmpfile.ml - exit src scan-ocaml-reduce.ml, 0.05 sec, code 0 - scan src scan-ocaml-tmpfile.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules tmpfile.mli - exit src scan-ocaml-image_intf.mli, 0.07 sec, code 0 - build src image_intf.cmi + ocamlfind ocamlc -package lablgtk2,graphics -g -I . -c image_intf.mli - exit src scan-ocaml-tmpfile.ml, 0.05 sec, code 0 - scan src scan-ocaml-index8.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules index8.mli - exit src rgba32.cmi, 0.08 sec, code 0 - scan src scan-ocaml-index8.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules index8.ml - exit src scan-ocaml-tmpfile.mli, 0.05 sec, code 0 - build src tmpfile.cmi + ocamlfind ocamlc -package lablgtk2,graphics -g -I . -c tmpfile.mli - exit src scan-ocaml-index8.mli, 0.05 sec, code 0 - scan src scan-ocaml-oColor.mli + ocamlfind ocamldep -package lablgtk2,graphics -modules oColor.mli - exit src scan-ocaml-index8.ml, 0.05 sec, code 0 - scan src scan-ocaml-oColor.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules oColor.ml - exit src image_intf.cmi, 0.11 sec, code 0 - build src genimage.cmi + ocamlfind ocamlc -package lablgtk2,graphics -g -I . -c genimage.mli - exit src scan-ocaml-oColor.mli, 0.05 sec, code 0 - build src oColor.cmi + ocamlfind ocamlc -package lablgtk2,graphics -g -I . -c oColor.mli - exit src scan-ocaml-oColor.ml, 0.05 sec, code 0 - scan src scan-ocaml-jis_table.ml + ocamlfind ocamldep -package lablgtk2,graphics -modules jis_table.ml - exit src tmpfile.cmi, 0.12 sec, code 0 - build src tmpfile.cmx + ocamlfind ocamlopt -package lablgtk2,graphics -I . -c tmpfile.ml - exit src genimage.cmi, 0.09 sec, code 0 - build src rgba32.cmo + ocamlfind ocamlc -package lablgtk2,graphics -g -I . -c rgba32.ml - exit src oColor.cmi, 0.08 sec, code 0 - build src oColor.cmo + ocamlfind ocamlc -package lablgtk2,graphics -g -I . -c oColor.ml - exit src scan-ocaml-jis_table.ml, 0.07 sec, code 0 - build src jis_table.cmx + ocamlfind ocamlc -package lablgtk2,graphics -g -I . -c jis_table.ml File "rgba32.ml", line 28, characters 4-42: 28 | str.[pos ] <- char_of_int t.color.r; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Alert deprecated: Stdlib.String.set Use Bytes.set instead. File "rgba32.ml", line 29, characters 4-42: 29 | str.[pos + 1] <- char_of_int t.color.g; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Alert deprecated: Stdlib.String.set Use Bytes.set instead. File "rgba32.ml", line 30, characters 4-42: 30 | str.[pos + 2] <- char_of_int t.color.b; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Alert deprecated: Stdlib.String.set Use Bytes.set instead. File "rgba32.ml", line 31, characters 4-40: 31 | str.[pos + 3] <- char_of_int t.alpha ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Alert deprecated: Stdlib.String.set Use Bytes.set instead. File "rgba32.ml", line 33, characters 14-27: 33 | let str = String.create bytes_per_pixel in ^^^^^^^^^^^^^ Alert deprecated: Stdlib.String.create Use Bytes.create instead. File "rgba32.ml", line 38, characters 34-35: 38 | module RI = Genimage.MakeRawImage(E);; ^ Error: Signature mismatch: ... Values do not match: val set : bytes -> int -> Color.rgba -> unit is not included in val set : string -> int -> t -> unit File "image_intf.mli", line 23, characters 4-40: Expected declaration File "rgba32.ml", line 27, characters 6-9: Actual declaration - exit src rgba32.cmo, 0.12 sec, code 2 - exit src tmpfile.cmx, 0.15 sec, code 0 - exit src oColor.cmo, 0.11 sec, code 0 - build src jis_table.cmx + ocamlfind ocamlopt -package lablgtk2,graphics -I . -c jis_table.ml - exit src jis_table.cmx, 0.19 sec, code 0 *** omake: 246/820 targets are up to date *** omake: failed (4.01 sec, 58/58 scans, 29/39 rules, 149/206 digests) *** omake: targets were not rebuilt because of errors: src/rgba32.cmo depends on: src/rgba32.ml *** Error code 2 Stop. make[1]: stopped in /tree/pkgsrc/graphics/camlimages *** Error code 1 Stop. make: stopped in /tree/pkgsrc/graphics/camlimages