Bug#1097197: libimage-exif-perl: ftbfs with GCC-15
Matthias Klose
doko at debian.org
Mon Feb 17 17:31:30 GMT 2025
Package: src:libimage-exif-perl
Version: 2.01-2
Severity: important
Tags: sid forky
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-15
[This bug is NOT targeted to the upcoming trixie release]
Please keep this issue open in the bug tracker for the package it
was filed for. If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.
The package fails to build in a test rebuild on at least amd64 with
gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.
The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/libimage-exif-perl_2.01-2_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.
To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other Common build failures are new warnings resulting in build failures
with -Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-15/porting_to.html
[...]
makers.c:55:50: note: (near initialization for ‘makers[9].ifdfun’)
makers.h:101:20: note: ‘asahi_ifd’ declared here
101 | extern struct ifd *asahi_ifd(u_int32_t offset, struct tiffmeta *md);
| ^~~~~~~~~
makers.c:56:36: error: initialization of ‘void (*)(void)’ from incompatible pointer type ‘void (*)(struct exifprop *, struct exiftags *)’ [-Wincompatible-pointer-types]
56 | { EXIF_MKR_LEICA, "leica", leica_prop, leica_ifd },
| ^~~~~~~~~~
makers.c:56:36: note: (near initialization for ‘makers[10].propfun’)
makers.h:103:13: note: ‘leica_prop’ declared here
103 | extern void leica_prop(struct exifprop *prop, struct exiftags *t);
| ^~~~~~~~~~
makers.c:56:48: error: initialization of ‘struct ifd * (*)(void)’ from incompatible pointer type ‘struct ifd * (*)(u_int32_t, struct tiffmeta *)’ {aka ‘struct ifd * (*)(unsigned int, struct tiffmeta *)’} [-Wincompatible-pointer-types]
56 | { EXIF_MKR_LEICA, "leica", leica_prop, leica_ifd },
| ^~~~~~~~~
makers.c:56:48: note: (near initialization for ‘makers[10].ifdfun’)
makers.h:104:20: note: ‘leica_ifd’ declared here
104 | extern struct ifd *leica_ifd(u_int32_t offset, struct tiffmeta *md);
| ^~~~~~~~~
makers.c:57:44: error: initialization of ‘void (*)(void)’ from incompatible pointer type ‘void (*)(struct exifprop *, struct exiftags *)’ [-Wincompatible-pointer-types]
57 | { EXIF_MKR_PANASONIC, "panasonic", panasonic_prop, panasonic_ifd },
| ^~~~~~~~~~~~~~
makers.c:57:44: note: (near initialization for ‘makers[11].propfun’)
makers.h:106:13: note: ‘panasonic_prop’ declared here
106 | extern void panasonic_prop(struct exifprop *prop, struct exiftags *t);
| ^~~~~~~~~~~~~~
makers.c:57:60: error: initialization of ‘struct ifd * (*)(void)’ from incompatible pointer type ‘struct ifd * (*)(u_int32_t, struct tiffmeta *)’ {aka ‘struct ifd * (*)(unsigned int, struct tiffmeta *)’} [-Wincompatible-pointer-types]
57 | { EXIF_MKR_PANASONIC, "panasonic", panasonic_prop, panasonic_ifd },
| ^~~~~~~~~~~~~
makers.c:57:60: note: (near initialization for ‘makers[11].ifdfun’)
makers.h:107:20: note: ‘panasonic_ifd’ declared here
107 | extern struct ifd *panasonic_ifd(u_int32_t offset, struct tiffmeta *md);
| ^~~~~~~~~~~~~
makers.c:58:36: error: initialization of ‘void (*)(void)’ from incompatible pointer type ‘void (*)(struct exifprop *, struct exiftags *)’ [-Wincompatible-pointer-types]
58 | { EXIF_MKR_SIGMA, "sigma", sigma_prop, sigma_ifd },
| ^~~~~~~~~~
makers.c:58:36: note: (near initialization for ‘makers[12].propfun’)
makers.h:109:13: note: ‘sigma_prop’ declared here
109 | extern void sigma_prop(struct exifprop *prop, struct exiftags *t);
| ^~~~~~~~~~
makers.c:58:48: error: initialization of ‘struct ifd * (*)(void)’ from incompatible pointer type ‘struct ifd * (*)(u_int32_t, struct tiffmeta *)’ {aka ‘struct ifd * (*)(unsigned int, struct tiffmeta *)’} [-Wincompatible-pointer-types]
58 | { EXIF_MKR_SIGMA, "sigma", sigma_prop, sigma_ifd },
| ^~~~~~~~~
makers.c:58:48: note: (near initialization for ‘makers[12].ifdfun’)
makers.h:110:20: note: ‘sigma_ifd’ declared here
110 | extern struct ifd *sigma_ifd(u_int32_t offset, struct tiffmeta *md);
| ^~~~~~~~~
make[1]: *** [Makefile:372: makers.o] Error 1
make[1]: *** [Makefile:372: exif.o] Error 1
minolta.c: In function ‘minolta_cprop’:
minolta.c:600:60: warning: ‘%02d’ directive output may be truncated writing between 2 and 3 bytes into a region of size between 1 and 3 [-Wformat-truncation=]
600 | snprintf(aprop->str, 9, "%02d:%02d:%02d",
| ^~~~
minolta.c:600:49: note: directive argument in the range [0, 255]
600 | snprintf(aprop->str, 9, "%02d:%02d:%02d",
| ^~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:970,
from minolta.c:45:
In function ‘snprintf’,
inlined from ‘minolta_cprop’ at minolta.c:600:4:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: ‘__builtin___snprintf_chk’ output between 9 and 12 bytes into a destination of size 9
68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
70 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/build/reproducible-path/libimage-exif-perl-2.01'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the pkg-perl-maintainers
mailing list