[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1078409: marked as done (camlimages: FTBFS: gifread.c:46:9: error: implicit declaration of function ‘alloc_small’; did you mean ‘caml_alloc_small’? [-Wimplicit-function-declaration])



Your message dated Sat, 10 Aug 2024 09:44:50 +0200
with message-id <8af54c4b-d681-41af-a50b-07f138678491@debian.org>
and subject line Re: Bug#1078409: camlimages: FTBFS: gifread.c:46:9: error: implicit declaration of function ‘alloc_small’; did you mean ‘caml_alloc_small’? [-Wimplicit-function-declaration]
has caused the Debian Bug report #1078409,
regarding camlimages: FTBFS: gifread.c:46:9: error: implicit declaration of function ‘alloc_small’; did you mean ‘caml_alloc_small’? [-Wimplicit-function-declaration]
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1078409: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1078409
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: camlimages
Version: 1:5.0.4-4
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20240809 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary --with ocaml --buildsystem ocaml_dune
>    dh_update_autotools_config -O--buildsystem=ocaml_dune
>    dh_autoreconf -O--buildsystem=ocaml_dune
>    dh_ocamlinit -O--buildsystem=ocaml_dune
>    dh_auto_configure -O--buildsystem=ocaml_dune
>    dh_auto_build -O--buildsystem=ocaml_dune
> 	dune build -j 8 -p camlimages
> (cd _build/default && /usr/bin/ocamlc.opt -w -3 -g -bin-annot -bin-annot-occurrences -I core/.camlimages.objs/byte -no-alias-deps -o core/.camlimages.objs/byte/units.cmo -c -impl core/units.ml)
> File "core/units.ml", line 33, characters 19-35:
> 33 |       (List.assoc (String.lowercase unit) units) *. float_of_string digit
>                         ^^^^^^^^^^^^^^^^
> Error: Unbound value "String.lowercase"
> (cd _build/default && /usr/bin/ocamlc.opt -w -3 -g -bin-annot -bin-annot-occurrences -I core/.camlimages.objs/byte -intf-suffix .ml -no-alias-deps -o core/.camlimages.objs/byte/images.cmo -c -impl core/images.ml)
> File "core/images.ml", line 105, characters 10-26:
> 105 |   let s = String.lowercase s in
>                 ^^^^^^^^^^^^^^^^
> Error: Unbound value "String.lowercase"
> (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -w -3-6 -g -I config/.ciconfig.eobjs/byte -I config/.ciconfig.eobjs/native -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/base -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/base/base_internalhash_types -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/base/caml -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/base/shadow_stdlib -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/dune-configurator -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/findlib -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/sexplib0 -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/stdio -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/stdune/csexp -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/unix -intf-suffix .ml -no-alias-deps -o config/.ciconfig.eobjs/native/xConfigurator.cmx -c -impl config/xConfigurator.ml)
> File "_none_", line 1:
> Warning 58 [no-cmx-file]: no cmx file was found in path for module Findlib, and its interface was not compiled with -opaque
> (cd _build/default/config && ./ciconfig.exe)
> Checking pkg-config in $PATH... (found)
> Checking OCaml library lablgtk2... (not found)
> Checking OCaml library graphics... (found : /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/graphics)
> Checking program gs in $PATH... (found : /usr/bin/gs)
> Checking pkg-config package libgif... (found : -lgif)
> Checking pkg-config package libjpeg... (found : -ljpeg)
> Checking pkg-config package libpng... (found : -lpng16 -I/usr/include/libpng16)
> Checking pkg-config package libtiff-4... (found : -ltiff -I/usr/include/x86_64-linux-gnu -I/usr/include/webp)
> Checking pkg-config package freetype2... (found : -lfreetype -I/usr/include/freetype2 -I/usr/include/libpng16)
> Checking pkg-config package libexif... (found : -lexif)
> Checking pkg-config package xpm... (found : -lXpm -lX11)
> Checking file rgb.txt...(found : /etc/X11/rgb.txt)
> File "gif/dune", line 5, characters 19-26:
> 5 |  (c_names gifwrite gifread)
>                        ^^^^^^^
> (cd _build/default/gif && /usr/bin/x86_64-linux-gnu-gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pthread -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -g -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0 -I ../core -o gifread.o -c gifread.c)
> gifread.c: In function ‘Val_GifColorType’:
> gifread.c:46:9: error: implicit declaration of function ‘alloc_small’; did you mean ‘caml_alloc_small’? [-Wimplicit-function-declaration]
>    46 |   res = alloc_small(3,0);
>       |         ^~~~~~~~~~~
>       |         caml_alloc_small
> gifread.c: In function ‘Val_ColorMapObject’:
> gifread.c:67:12: error: implicit declaration of function ‘alloc_tuple’; did you mean ‘caml_alloc_tuple’? [-Wimplicit-function-declaration]
>    67 |     cmap = alloc_tuple(colorMap->ColorCount);
>       |            ^~~~~~~~~~~
>       |            caml_alloc_tuple
> gifread.c: In function ‘dGifOpenFileName’:
> gifread.c:156:5: error: implicit declaration of function ‘failwith’; did you mean ‘caml_failwith’? [-Wimplicit-function-declaration]
>   156 |     failwith("DGifOpenFileName");
>       |     ^~~~~~~~
>       |     caml_failwith
> gifread.c: In function ‘dGifGetLine’:
> gifread.c:215:9: error: implicit declaration of function ‘alloc_string’; did you mean ‘caml_alloc_string’? [-Wimplicit-function-declaration]
>   215 |   buf = alloc_string( GifFile->Image.Width * sizeof(GifPixelType) );
>       |         ^~~~~~~~~~~~
>       |         caml_alloc_string
> In file included from gifread.c:19:
> gifread.c: In function ‘dGifGetExtension’:
> /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/caml/mlvalues.h:332:24: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   332 | #define String_val(x) ((const char *) Bp_val(x))
>       |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
> gifread.c:243:12: note: in expansion of macro ‘String_val’
>   243 |     memcpy(String_val(ext), &extData[1], extData[0]);
>       |            ^~~~~~~~~~
> In file included from /usr/include/features.h:502,
>                  from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
>                  from /usr/include/stdint.h:26,
>                  from /usr/lib/gcc/x86_64-linux-gnu/14/include/stdint.h:9,
>                  from /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/caml/config.h:58,
>                  from /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/caml/mlvalues.h:19:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:26:1: note: expected ‘void *’ but argument is of type ‘const char *’
>    26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
>       | ^~~~~
> File "gif/dune", line 5, characters 10-18:
> 5 |  (c_names gifwrite gifread)
>               ^^^^^^^^
> (cd _build/default/gif && /usr/bin/x86_64-linux-gnu-gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pthread -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -g -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0 -I ../core -o gifwrite.o -c gifwrite.c)
> gifwrite.c: In function ‘eGifOpenFileName’:
> gifwrite.c:88:5: error: implicit declaration of function ‘failwith’; did you mean ‘caml_failwith’? [-Wimplicit-function-declaration]
>    88 |     failwith("EGifOpenFileName");
>       |     ^~~~~~~~
>       |     caml_failwith
> gifwrite.c: In function ‘eGifPutExtension’:
> gifwrite.c:181:11: error: implicit declaration of function ‘string_length’; did you mean ‘list_length’? [-Wimplicit-function-declaration]
>   181 |     len = string_length( Field(l,0) );
>       |           ^~~~~~~~~~~~~
>       |           list_length
> File "exif/dune", line 5, characters 10-16:
> 5 |  (c_names exif_c)
>               ^^^^^^
> (cd _build/default/exif && /usr/bin/x86_64-linux-gnu-gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pthread -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -g -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0 -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/unix -I ../core -o exif_c.o -c exif_c.c)
> exif_c.c: In function ‘Val_ExifBytes’:
> exif_c.c:40:11: error: implicit declaration of function ‘alloc’; did you mean ‘valloc’? [-Wimplicit-function-declaration]
>    40 |     res = alloc(Int_val(vsize),0);
>       |           ^~~~~
>       |           valloc
> exif_c.c: In function ‘caml_val_exif_data’:
> exif_c.c:176:18: error: implicit declaration of function ‘failwith’; did you mean ‘caml_failwith’? [-Wimplicit-function-declaration]
>   176 |     if( !data ){ failwith("exif_data_new_from_data"); }
>       |                  ^~~~~~~~
>       |                  caml_failwith
> exif_c.c:181:11: error: implicit declaration of function ‘alloc_small’; did you mean ‘caml_alloc_small’? [-Wimplicit-function-declaration]
>   181 |     res = alloc_small(1,0);
>       |           ^~~~~~~~~~~
>       |           caml_alloc_small
> exif_c.c: In function ‘caml_exif_data_contents’:
> exif_c.c:220:11: error: implicit declaration of function ‘alloc_tuple’; did you mean ‘caml_alloc_tuple’? [-Wimplicit-function-declaration]
>   220 |     res = alloc_tuple(EXIF_IFD_COUNT);
>       |           ^~~~~~~~~~~
>       |           caml_alloc_tuple
> In file included from exif_c.c:22:
> exif_c.c: In function ‘caml_exif_decode_entry’:
> exif_c.c:289:23: error: implicit declaration of function ‘alloc_string’; did you mean ‘caml_alloc_string’? [-Wimplicit-function-declaration]
>   289 |     Store_field(tpl,3,alloc_string(p->size));
>       |                       ^~~~~~~~~~~~
> /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/caml/memory.h:428:27: note: in definition of macro ‘Store_field’
>   428 |   value caml__temp_val = (val); \
>       |                           ^~~
> In file included from exif_c.c:20:
> /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/caml/mlvalues.h:332:24: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   332 | #define String_val(x) ((const char *) Bp_val(x))
>       |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
> exif_c.c:290:12: note: in expansion of macro ‘String_val’
>   290 |     memcpy(String_val(Field(tpl,3)), p->data, p->size);
>       |            ^~~~~~~~~~
> In file included from /usr/include/features.h:502,
>                  from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
>                  from /usr/include/stdio.h:28,
>                  from exif_c.c:17:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:26:1: note: expected ‘void *’ but argument is of type ‘const char *’
>    26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
>       | ^~~~~
> File "jpeg/dune", line 5, characters 10-18:
> 5 |  (c_names jpegread jpegwrite)
>               ^^^^^^^^
> (cd _build/default/jpeg && /usr/bin/x86_64-linux-gnu-gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pthread -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -g -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0 -I ../core -o jpegread.o -c jpegread.c)
> In file included from jpegread.c:21:
> jpegread.c: In function ‘caml_val_jpeg_marker’:
> /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/caml/mlvalues.h:332:24: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   332 | #define String_val(x) ((const char *) Bp_val(x))
>       |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
> jpegread.c:98:13: note: in expansion of macro ‘String_val’
>    98 |     memcpy( String_val(tmp), p->data, p->data_length);
>       |             ^~~~~~~~~~
> In file included from /usr/include/features.h:502,
>                  from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
>                  from /usr/include/stdint.h:26,
>                  from /usr/lib/gcc/x86_64-linux-gnu/14/include/stdint.h:9,
>                  from /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/caml/config.h:58,
>                  from /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/caml/mlvalues.h:19:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:26:1: note: expected ‘void *’ but argument is of type ‘const char *’
>    26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
>       | ^~~~~
> jpegread.c:100:11: error: implicit declaration of function ‘alloc_small’; did you mean ‘caml_alloc_small’? [-Wimplicit-function-declaration]
>   100 |     res = alloc_small(2,0);
>       |           ^~~~~~~~~~~
>       |           caml_alloc_small
> jpegread.c: In function ‘open_jpeg_file_for_read’:
> jpegread.c:149:11: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   149 |   filename= String_val( name );
>       |           ^
> jpegread.c:152:5: error: implicit declaration of function ‘failwith’; did you mean ‘caml_failwith’? [-Wimplicit-function-declaration]
>   152 |     failwith("failed to open jpeg file");
>       |     ^~~~~~~~
>       |     caml_failwith
> jpegread.c: In function ‘read_jpeg_scanline’:
> jpegread.c:282:10: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   282 |   row[0] = String_val( buf ) + Int_val( offset );
>       |          ^
> jpegread.c: In function ‘read_jpeg_scanlines’:
> jpegread.c:296:10: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   296 |   row[0] = String_val(buf) + Int_val(offset);
>       |          ^
> File "tiff/dune", line 5, characters 20-28:
> 5 |  (c_names tiffwrite tiffread)
>                         ^^^^^^^^
> (cd _build/default/tiff && /usr/bin/x86_64-linux-gnu-gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pthread -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -g -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0 -I ../core -o tiffread.o -c tiffread.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]
>    57 |   filename = String_val( name );
>       |            ^
> tiffread.c:61:5: warning: ‘uint32_tiff’ is deprecated [-Wdeprecated-declarations]
>    61 |     uint32 imagelength;
>       |     ^~~~~~
> tiffread.c:62:5: warning: ‘uint32_tiff’ is deprecated [-Wdeprecated-declarations]
>    62 |     uint32 imagewidth;
>       |     ^~~~~~
> tiffread.c:63:5: warning: ‘uint16_tiff’ is deprecated [-Wdeprecated-declarations]
>    63 |     uint16 imagesample;
>       |     ^~~~~~
> tiffread.c:64:5: warning: ‘uint16_tiff’ is deprecated [-Wdeprecated-declarations]
>    64 |     uint16 imagebits;
>       |     ^~~~~~
> tiffread.c:67:5: warning: ‘uint16_tiff’ is deprecated [-Wdeprecated-declarations]
>    67 |     uint16 runit;
>       |     ^~~~~~
> tiffread.c:69:5: warning: ‘uint16_tiff’ is deprecated [-Wdeprecated-declarations]
>    69 |     uint16 photometric;
>       |     ^~~~~~
> In file included from tiffread.c:25:
> ../include/oversized.h:9:3: error: implicit declaration of function ‘failwith’; did you mean ‘caml_failwith’? [-Wimplicit-function-declaration]
>     9 |   failwith("#lib error: image contains oversized or bogus width and height");
>       |   ^~~~~~~~
> tiffread.c:81:7: note: in expansion of macro ‘failwith_oversized’
>    81 |       failwith_oversized("tiff");
>       |       ^~~~~~~~~~~~~~~~~~
> tiffread.c:107:14: error: implicit declaration of function ‘copy_double’; did you mean ‘caml_copy_double’? [-Wimplicit-function-declaration]
>   107 |       r[2] = copy_double( xres );
>       |              ^~~~~~~~~~~
>       |              caml_copy_double
> tiffread.c:113:11: error: implicit declaration of function ‘alloc_small’; did you mean ‘caml_alloc_small’? [-Wimplicit-function-declaration]
>   113 |     res = alloc_small(5,0);
>       |           ^~~~~~~~~~~
>       |           caml_alloc_small
> In file included from tiffread.c:20:
> tiffread.c: In function ‘read_tiff_scanline’:
> /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/caml/mlvalues.h:332:24: warning: passing argument 2 of ‘TIFFReadScanline’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   332 | #define String_val(x) ((const char *) Bp_val(x))
>       |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
> tiffread.c:128:34: note: in expansion of macro ‘String_val’
>   128 |   TIFFReadScanline((TIFF*)tiffh, String_val(buf), Int_val(row), 0);
>       |                                  ^~~~~~~~~~
> In file included from tiffread.c:43:
> /usr/include/x86_64-linux-gnu/tiffio.h:463:46: note: expected ‘void *’ but argument is of type ‘const char *’
>   463 | extern int TIFFReadScanline(TIFF *tif, void *buf, uint32_t row,
>       |                                        ~~~~~~^~~
> File "freetype/dune", line 5, characters 10-16:
> 5 |  (c_names ftintf)
>               ^^^^^^
> (cd _build/default/freetype && /usr/bin/x86_64-linux-gnu-gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pthread -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/freetype2 -I/usr/include/libpng16 -g -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0 -I ../core -o ftintf.o -c ftintf.c)
> ftintf.c: In function ‘init_FreeType’:
> ftintf.c:33:18: error: implicit declaration of function ‘stat_alloc’ [-Wimplicit-function-declaration]
>    33 |   if( (library = stat_alloc( sizeof(FT_Library) )) == NULL ){
>       |                  ^~~~~~~~~~
> ftintf.c:33:16: error: assignment to ‘struct FT_LibraryRec_ **’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
>    33 |   if( (library = stat_alloc( sizeof(FT_Library) )) == NULL ){
>       |                ^
> ftintf.c:34:5: error: implicit declaration of function ‘failwith’; did you mean ‘caml_failwith’? [-Wimplicit-function-declaration]
>    34 |     failwith( "init_FreeType: Memory over" );
>       |     ^~~~~~~~
>       |     caml_failwith
> ftintf.c:37:5: error: implicit declaration of function ‘stat_free’; did you mean ‘caml_stat_free’? [-Wimplicit-function-declaration]
>    37 |     stat_free(library);
>       |     ^~~~~~~~~
>       |     caml_stat_free
> ftintf.c: In function ‘new_Face’:
> ftintf.c:63:13: error: assignment to ‘struct FT_FaceRec_ **’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
>    63 |   if( (face = stat_alloc( sizeof(FT_Face) )) == NULL ){
>       |             ^
> ftintf.c: In function ‘face_info’:
> ftintf.c:80:9: error: implicit declaration of function ‘alloc_tuple’; did you mean ‘caml_alloc_tuple’? [-Wimplicit-function-declaration]
>    80 |   res = alloc_tuple(14);
>       |         ^~~~~~~~~~~
>       |         caml_alloc_tuple
> In file included from ftintf.c:21:
> ftintf.c:83:23: error: implicit declaration of function ‘copy_string’; did you mean ‘caml_copy_string’? [-Wimplicit-function-declaration]
>    83 |   Store_field(res, 2, copy_string( face->family_name == NULL ? "" : face->family_name ));
>       |                       ^~~~~~~~~~~
> /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/caml/memory.h:428:27: note: in definition of macro ‘Store_field’
>   428 |   value caml__temp_val = (val); \
>       |                           ^~~
> File "xpm/dune", line 5, characters 19-26:
> 5 |  (c_names xpmwrite xpmread)
>                        ^^^^^^^
> (cd _build/default/xpm && /usr/bin/x86_64-linux-gnu-gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pthread -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -g -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0 -I ../core -o xpmread.o -c xpmread.c)
> xpmread.c: In function ‘read_xpm_file’:
> xpmread.c:38:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>    38 |   filename = String_val( name );
>       |            ^
> xpmread.c:48:12: error: implicit declaration of function ‘alloc_tuple’; did you mean ‘caml_alloc_tuple’? [-Wimplicit-function-declaration]
>    48 |     cmap = alloc_tuple( image.ncolors );
>       |            ^~~~~~~~~~~
>       |            caml_alloc_tuple
> In file included from xpmread.c:21:
> xpmread.c:64:32: error: implicit declaration of function ‘copy_string’; did you mean ‘caml_copy_string’? [-Wimplicit-function-declaration]
>    64 |           Store_field(cmap, i, copy_string("null"));
>       |                                ^~~~~~~~~~~
> /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/caml/memory.h:428:27: note: in definition of macro ‘Store_field’
>   428 |   value caml__temp_val = (val); \
>       |                           ^~~
> xpmread.c:81:14: error: implicit declaration of function ‘alloc_small’; did you mean ‘AllocAll’? [-Wimplicit-function-declaration]
>    81 |     result = alloc_small(4,0);
>       |              ^~~~~~~~~~~
>       |              AllocAll
> xpmread.c:91:5: error: implicit declaration of function ‘failwith’; did you mean ‘caml_failwith’? [-Wimplicit-function-declaration]
>    91 |     failwith("failed to open xpm file");
>       |     ^~~~~~~~
>       |     caml_failwith
> File "png/dune", line 6, characters 19-26:
> 6 |  (c_names pngwrite pngread)
>                        ^^^^^^^
> (cd _build/default/png && /usr/bin/x86_64-linux-gnu-gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pthread -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libpng16 -g -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0 -I ../core -o pngread.o -c pngread.c)
> pngread.c: In function ‘read_png_file_as_rgb24’:
> pngread.c:50:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>    50 |   filename = String_val( name );
>       |            ^
> pngread.c:53:5: error: implicit declaration of function ‘failwith’; did you mean ‘caml_failwith’? [-Wimplicit-function-declaration]
>    53 |     failwith("png file open failed");
>       |     ^~~~~~~~
>       |     caml_failwith
> pngread.c:130:33: error: implicit declaration of function ‘stat_alloc’ [-Wimplicit-function-declaration]
>   130 |     row_pointers = (png_bytep*) stat_alloc(sizeof(png_bytep) * height);
>       |                                 ^~~~~~~~~~
> pngread.c:130:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>   130 |     row_pointers = (png_bytep*) stat_alloc(sizeof(png_bytep) * height);
>       |                    ^
> pngread.c:131:9: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
>   131 |     buf = stat_alloc( rowbytes * height );
>       |         ^
> pngread.c:144:7: error: implicit declaration of function ‘stat_free’ [-Wimplicit-function-declaration]
>   144 |       stat_free(row_pointers);
>       |       ^~~~~~~~~
> pngread.c:153:9: error: implicit declaration of function ‘alloc_tuple’; did you mean ‘caml_alloc_tuple’? [-Wimplicit-function-declaration]
>   153 |     r = alloc_tuple(height);
>       |         ^~~~~~~~~~~
>       |         caml_alloc_tuple
> In file included from pngread.c:25:
> /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/caml/mlvalues.h:332:24: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   332 | #define String_val(x) ((const char *) Bp_val(x))
>       |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
> pngread.c:156:14: note: in expansion of macro ‘String_val’
>   156 |       memcpy(String_val(tmp), buf+rowbytes*i, rowbytes);
>       |              ^~~~~~~~~~
> In file included from /usr/include/features.h:502,
>                  from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
>                  from /usr/include/string.h:26,
>                  from pngread.c:21:
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:26:1: note: expected ‘void *’ but argument is of type ‘const char *’
>    26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
>       | ^~~~~
> pngread.c:159:11: error: implicit declaration of function ‘alloc_small’; did you mean ‘caml_alloc_small’? [-Wimplicit-function-declaration]
>   159 |     res = alloc_small(3,0);
>       |           ^~~~~~~~~~~
>       |           caml_alloc_small
> pngread.c: In function ‘read_png_file’:
> pngread.c:224:12: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   224 |   filename = String_val( name );
>       |            ^
> pngread.c:298:9: error: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
>   298 |     buf = stat_alloc(rowbytes * height);
>       |         ^
> pngread.c:299:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>   299 |     row_pointers = (png_bytep*)stat_alloc(sizeof(png_bytep) * height);
>       |                    ^
> pngread.c:353:14: error: implicit declaration of function ‘alloc’; did you mean ‘valloc’? [-Wimplicit-function-declaration]
>   353 |         r1 = alloc( 2, tag );
>       |              ^~~~~
>       |              valloc
> /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/caml/mlvalues.h:332:24: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   332 | #define String_val(x) ((const char *) Bp_val(x))
>       |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
> pngread.c:357:20: note: in expansion of macro ‘String_val’
>   357 |             memcpy(String_val(tmp), buf+rowbytes*i, rowbytes);
>       |                    ^~~~~~~~~~
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:26:1: note: expected ‘void *’ but argument is of type ‘const char *’
>    26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
>       | ^~~~~
> /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/caml/mlvalues.h:332:24: warning: passing argument 1 of ‘memcpy’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   332 | #define String_val(x) ((const char *) Bp_val(x))
>       |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
> pngread.c:382:18: note: in expansion of macro ‘String_val’
>   382 |           memcpy(String_val(tmp), buf+rowbytes*i, rowbytes);
>       |                  ^~~~~~~~~~
> /usr/include/x86_64-linux-gnu/bits/string_fortified.h:26:1: note: expected ‘void *’ but argument is of type ‘const char *’
>    26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src,
>       | ^~~~~
> File "tiff/dune", line 5, characters 10-19:
> 5 |  (c_names tiffwrite tiffread)
>               ^^^^^^^^^
> (cd _build/default/tiff && /usr/bin/x86_64-linux-gnu-gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pthread -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -g -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0 -I ../core -o tiffwrite.o -c tiffwrite.c)
> tiffwrite.c: In function ‘open_tiff_file_for_write’:
> tiffwrite.c:65:5: warning: ‘uint32_tiff’ is deprecated [-Wdeprecated-declarations]
>    65 |     TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, (uint32) image_width);
>       |     ^~~~~~~~~~~~
> tiffwrite.c:66:5: warning: ‘uint32_tiff’ is deprecated [-Wdeprecated-declarations]
>    66 |     TIFFSetField(tif, TIFFTAG_IMAGELENGTH, (uint32) image_height);
>       |     ^~~~~~~~~~~~
> tiffwrite.c:82:5: error: implicit declaration of function ‘failwith’; did you mean ‘caml_failwith’? [-Wimplicit-function-declaration]
>    82 |     failwith("failed to open tiff file to write");
>       |     ^~~~~~~~
>       |     caml_failwith
> In file included from tiffwrite.c:19:
> tiffwrite.c: In function ‘write_tiff_scanline’:
> /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/caml/mlvalues.h:332:24: warning: passing argument 2 of ‘TIFFWriteScanline’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   332 | #define String_val(x) ((const char *) Bp_val(x))
>       |                       ~^~~~~~~~~~~~~~~~~~~~~~~~~
> tiffwrite.c:92:35: note: in expansion of macro ‘String_val’
>    92 |   TIFFWriteScanline((TIFF*)tiffh, String_val(buf), Int_val(row), 0);
>       |                                   ^~~~~~~~~~
> In file included from tiffwrite.c:40:
> /usr/include/x86_64-linux-gnu/tiffio.h:465:47: note: expected ‘void *’ but argument is of type ‘const char *’
>   465 | extern int TIFFWriteScanline(TIFF *tif, void *buf, uint32_t row,
>       |                                         ~~~~~~^~~
> File "jpeg/dune", line 5, characters 19-28:
> 5 |  (c_names jpegread jpegwrite)
>                        ^^^^^^^^^
> (cd _build/default/jpeg && /usr/bin/x86_64-linux-gnu-gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pthread -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -g -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0 -I ../core -o jpegwrite.o -c jpegwrite.c)
> jpegwrite.c: In function ‘open_jpeg_file_for_write_colorspace’:
> jpegwrite.c:78:11: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>    78 |   filename= String_val( name );
>       |           ^
> jpegwrite.c:82:5: error: implicit declaration of function ‘failwith’; did you mean ‘caml_failwith’? [-Wimplicit-function-declaration]
>    82 |     failwith("failed to open jpeg file");
>       |     ^~~~~~~~
>       |     caml_failwith
> jpegwrite.c:111:9: error: implicit declaration of function ‘alloc_small’; did you mean ‘caml_alloc_small’? [-Wimplicit-function-declaration]
>   111 |   res = alloc_small(3,0);
>       |         ^~~~~~~~~~~
>       |         caml_alloc_small
> In file included from jpegwrite.c:19:
> jpegwrite.c: In function ‘caml_jpeg_write_marker’:
> /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/caml/mlvalues.h:332:23: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   332 | #define String_val(x) ((const char *) Bp_val(x))
>       |                       ^
> jpegwrite.c:153:18: note: in expansion of macro ‘String_val’
>   153 |     char *data = String_val(Field(raw,1));
>       |                  ^~~~~~~~~~
> jpegwrite.c: In function ‘write_jpeg_scanline’:
> jpegwrite.c:176:10: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   176 |   row[0] = String_val( buf );
>       |          ^
> File "png/dune", line 6, characters 10-18:
> 6 |  (c_names pngwrite pngread)
>               ^^^^^^^^
> (cd _build/default/png && /usr/bin/x86_64-linux-gnu-gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -pthread -D_FILE_OFFSET_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libpng16 -g -I /usr/lib/x86_64-linux-gnu/ocaml/5.2.0 -I ../core -o pngwrite.o -c pngwrite.c)
> pngwrite.c: In function ‘write_png_file_rgb’:
> pngwrite.c:49:5: error: implicit declaration of function ‘failwith’; did you mean ‘caml_failwith’? [-Wimplicit-function-declaration]
>    49 |     failwith("png file open failed");
>       |     ^~~~~~~~
>       |     caml_failwith
> In file included from pngwrite.c:23:
> /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/caml/mlvalues.h:332:23: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   332 | #define String_val(x) ((const char *) Bp_val(x))
>       |                       ^
> pngwrite.c:95:17: note: in expansion of macro ‘String_val’
>    95 |     char *buf = String_val(buffer);
>       |                 ^~~~~~~~~~
> pngwrite.c:97:32: error: implicit declaration of function ‘stat_alloc’ [-Wimplicit-function-declaration]
>    97 |     row_pointers = (png_bytep*)stat_alloc(sizeof(png_bytep) * h);
>       |                                ^~~~~~~~~~
> pngwrite.c:97:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>    97 |     row_pointers = (png_bytep*)stat_alloc(sizeof(png_bytep) * h);
>       |                    ^
> pngwrite.c:108:5: error: implicit declaration of function ‘stat_free’ [-Wimplicit-function-declaration]
>   108 |     stat_free((void*)row_pointers);
>       |     ^~~~~~~~~
> pngwrite.c: In function ‘write_png_file_index’:
> /usr/lib/x86_64-linux-gnu/ocaml/5.2.0/caml/mlvalues.h:332:23: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
>   332 | #define String_val(x) ((const char *) Bp_val(x))
>       |                       ^
> pngwrite.c:219:17: note: in expansion of macro ‘String_val’
>   219 |     char *buf = String_val(buffer);
>       |                 ^~~~~~~~~~
> pngwrite.c:221:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
>   221 |     row_pointers = (png_bytep*)stat_alloc(sizeof(png_bytep) * h);
>       |                    ^
> (cd _build/default && /usr/bin/ocamlopt.opt -w -3 -g -I core/.camlimages.objs/byte -I core/.camlimages.objs/native -intf-suffix .ml -no-alias-deps -o core/.camlimages.objs/native/images.cmx -c -impl core/images.ml)
> File "core/images.ml", line 105, characters 10-26:
> 105 |   let s = String.lowercase s in
>                 ^^^^^^^^^^^^^^^^
> Error: Unbound value "String.lowercase"
> dh_auto_build: error: dune build -j 8 -p camlimages returned exit code 1
> make: *** [debian/rules:7: binary] Error 25


The full build log is available from:
http://qa-logs.debian.net/2024/08/09/camlimages_5.0.4-4_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240809;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240809&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

--- End Message ---
--- Begin Message ---
Version: 1:5.0.5-1

Le 10/08/2024 à 07:51, Lucas Nussbaum a écrit :
Source: camlimages
Version: 1:5.0.4-4
Severity: serious
Justification: FTBFS
[...]

Already reported as #1073873 and fixed in unstable.


Cheers,

--
Stéphane

--- End Message ---

Reply to: