Bug#1097422: mtpaint: ftbfs with GCC-15

Matthias Klose doko at debian.org
Mon Feb 17 17:38:32 GMT 2025


Package: src:mtpaint
Version: 3.50.11-1
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/mtpaint_3.50.11-1_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

[...]
pt = 190 translated messages, 819 untranslated messages.
pt_BR = 448 translated messages, 561 untranslated messages.
de = 933 translated messages, 76 untranslated messages.
pl = 577 translated messages, 432 untranslated messages.
tr = 302 translated messages, 707 untranslated messages.
zh_TW = 616 translated messages, 9 fuzzy translations, 384 untranslated messages.
sk = 1008 translated messages.
zh_CN = 777 translated messages, 232 untranslated messages.
ja = 796 translated messages, 9 fuzzy translations, 204 untranslated messages.
ru = 987 translated messages, 1 fuzzy translation, 21 untranslated messages.
gl = 803 translated messages, 206 untranslated messages.
nl = 854 translated messages, 155 untranslated messages.
it = 831 translated messages, 178 untranslated messages.
sv = 742 translated messages, 267 untranslated messages.
tl = 395 translated messages, 614 untranslated messages.
hu = 622 translated messages, 387 untranslated messages.
kab = 626 translated messages, 383 untranslated messages.
make[3]: Leaving directory '/build/reproducible-path/mtpaint-3.50.11/po'
x86_64-linux-gnu-gcc -Wall  -Wno-pointer-sign -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -Wno-misleading-indentation -Wno-stringop-truncation -Wformat-truncation=0 -Wformat-overflow=0 -DHAVE__SFA -DHAVE_MKDTEMP -DU_WEBP -DU_TIFF -DU_JPEG -DU_FREETYPE -DU_NLS -DMT_LANG_DEST='"/usr/share/locale"' -DU_THREADS -DU_FPICK_MTPAINT -DU_CPICK_MTPAINT -DMT_VERSION='"mtPaint 3.50.11"'  -I/usr/include/freetype2 -I/usr/include/libpng16  -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/x86_64-linux-gnu -I/usr/include/webp -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -pthread  -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mtpaint-3.50.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fcommon -fcommon -frandom-seed=mygtk -c -o mygtk.o mygtk.c
png.c: In function ‘load_png’:
png.c:759:56: error: passing argument 3 of ‘png_set_read_user_chunk_fn’ from incompatible pointer type [-Wincompatible-pointer-types]
  759 |         else png_set_read_user_chunk_fn(png_ptr, NULL, buggy_libpng_handler);
      |                                                        ^~~~~~~~~~~~~~~~~~~~
      |                                                        |
      |                                                        int (*)(void)
In file included from /usr/include/libpng16/png.h:333,
                 from png.c:27:
/usr/include/libpng16/png.h:1680:50: note: expected ‘png_user_chunk_ptr’ {aka ‘int (*)(struct png_struct_def *, struct png_unknown_chunk_t *)’} but argument is of type ‘int (*)(void)’
 1680 |     png_voidp user_chunk_ptr, png_user_chunk_ptr read_user_chunk_fn));
      |                               ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/libpng16/pngconf.h:286:75: note: in definition of macro ‘PNG_FUNCTION’
  286 | #  define PNG_FUNCTION(type, name, args, attributes) attributes type name args
      |                                                                           ^~~~
/usr/include/libpng16/pngconf.h:310:4: note: in expansion of macro ‘PNG_EXPORTA’
  310 |    PNG_EXPORTA(ordinal, type, name, args, PNG_EMPTY)
      |    ^~~~~~~~~~~
/usr/include/libpng16/png.h:1679:1: note: in expansion of macro ‘PNG_EXPORT’
 1679 | PNG_EXPORT(88, void, png_set_read_user_chunk_fn, (png_structrp png_ptr,
      | ^~~~~~~~~~
png.c:666:12: note: ‘buggy_libpng_handler’ declared here
  666 | static int buggy_libpng_handler()
      |            ^~~~~~~~~~~~~~~~~~~~
/usr/include/libpng16/png.h:821:28: note: ‘png_user_chunk_ptr’ declared here
  821 | typedef PNG_CALLBACK(int, *png_user_chunk_ptr, (png_structp,
      |                            ^~~~~~~~~~~~~~~~~~
/usr/include/libpng16/pngconf.h:318:57: note: in definition of macro ‘PNG_CALLBACK’
  318 | #  define PNG_CALLBACK(type, name, args) type (PNGCBAPI name) args
      |                                                         ^~~~
png.c: In function ‘load_xpm’:
png.c:5765:16: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5765 |         j = 0; fscanf(fp, " /* XPM */%n", &j);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
png.c: In function ‘load_txtpal’:
png.c:9435:25: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 9435 |                         fscanf(fp, "%i,%i,%i\n", rgb + 0, rgb + 1, rgb + 2);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:20: png.o] Error 1
make[3]: *** Waiting for unfinished jobs....
mygtk.c: In function ‘resolve_path’:
mygtk.c:5584:17: warning: ignoring return value of ‘getcwd’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5584 |                 getcwd(wbuf, PATHBUF - 1);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: Leaving directory '/build/reproducible-path/mtpaint-3.50.11/src'
make[2]: *** [Makefile:8: src] Error 2
make[2]: Leaving directory '/build/reproducible-path/mtpaint-3.50.11'
dh_auto_build: error: make -j8 returned exit code 2
make[1]: *** [debian/rules:17: override_dh_auto_build] Error 25
make[1]: Leaving directory '/build/reproducible-path/mtpaint-3.50.11'
make: *** [debian/rules:9: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-phototools-devel mailing list