#1097246 libpano13: ftbfs with GCC-15

#1097246#5
Date:
2025-02-17 17:33:01 UTC
From:
To:
[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/libpano13_2.9.22+dfsg-1.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

[...]
[ 19%] Building C object CMakeFiles/pano13.dir/dump.c.o
/usr/bin/cc -D__Ansi__ -Dpano13_EXPORTS -I/build/reproducible-path/libpano13-2.9.22+dfsg -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libpano13-2.9.22+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -MD -MT CMakeFiles/pano13.dir/dump.c.o -MF CMakeFiles/pano13.dir/dump.c.o.d -o CMakeFiles/pano13.dir/dump.c.o -c /build/reproducible-path/libpano13-2.9.22+dfsg/dump.c
[ 20%] Building C object CMakeFiles/pano13.dir/fftn.c.o
/usr/bin/cc -D__Ansi__ -Dpano13_EXPORTS -I/build/reproducible-path/libpano13-2.9.22+dfsg -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libpano13-2.9.22+dfsg=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -MD -MT CMakeFiles/pano13.dir/fftn.c.o -MF CMakeFiles/pano13.dir/fftn.c.o.d -o CMakeFiles/pano13.dir/fftn.c.o -c /build/reproducible-path/libpano13-2.9.22+dfsg/fftn.c
/build/reproducible-path/libpano13-2.9.22+dfsg/adjust.c:2448:5: error: conflicting types for ‘fcnPano’; have ‘int(int,  int,  double *, double *, int *)’
 2448 | int fcnPano(int m, int n, double x[], double fvec[], int *iflag)
      |     ^~~~~~~
In file included from /build/reproducible-path/libpano13-2.9.22+dfsg/adjust.c:42:
/build/reproducible-path/libpano13-2.9.22+dfsg/filter.h:785:33: note: previous declaration of ‘fcnPano’ with type ‘int(void)’
  785 | PANO13_IMPEX int                fcnPano();
      |                                 ^~~~~~~
make[3]: *** [CMakeFiles/pano13.dir/build.make:96: CMakeFiles/pano13.dir/adjust.c.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/build/reproducible-path/libpano13-2.9.22+dfsg/correct.c: In function ‘getFrame’:
/build/reproducible-path/libpano13-2.9.22+dfsg/correct.c:749:72: warning: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 7 [-Wformat-truncation=]
  749 |                                 snprintf( percent, sizeof(percent)-1, "%d", (int) (xul * 100)/(dx>0?dx:1));
      |                                                                        ^~
/build/reproducible-path/libpano13-2.9.22+dfsg/correct.c:749:71: note: directive argument in the range [0, 2147483647]
  749 |                                 snprintf( percent, sizeof(percent)-1, "%d", (int) (xul * 100)/(dx>0?dx:1));
      |                                                                       ^~~~
In file included from /usr/include/stdio.h:970,
                 from /build/reproducible-path/libpano13-2.9.22+dfsg/filter.h:26,
                 from /build/reproducible-path/libpano13-2.9.22+dfsg/correct.c:35:
In function ‘snprintf’,
    inlined from ‘getFrame’ at /build/reproducible-path/libpano13-2.9.22+dfsg/correct.c:749:5:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: ‘__builtin___snprintf_chk’ output between 2 and 11 bytes into a destination of size 7
   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   69 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   70 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
/build/reproducible-path/libpano13-2.9.22+dfsg/correct.c: In function ‘getFrame’:
/build/reproducible-path/libpano13-2.9.22+dfsg/correct.c:749:72: warning: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 7 [-Wformat-truncation=]
  749 |                                 snprintf( percent, sizeof(percent)-1, "%d", (int) (xul * 100)/(dx>0?dx:1));
      |                                                                        ^~
/build/reproducible-path/libpano13-2.9.22+dfsg/correct.c:749:71: note: directive argument in the range [0, 2147483647]
  749 |                                 snprintf( percent, sizeof(percent)-1, "%d", (int) (xul * 100)/(dx>0?dx:1));
      |                                                                       ^~~~
In file included from /usr/include/stdio.h:970,
                 from /build/reproducible-path/libpano13-2.9.22+dfsg/filter.h:26,
                 from /build/reproducible-path/libpano13-2.9.22+dfsg/correct.c:35:
In function ‘snprintf’,
    inlined from ‘getFrame’ at /build/reproducible-path/libpano13-2.9.22+dfsg/correct.c:749:5:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:68:10: note: ‘__builtin___snprintf_chk’ output between 2 and 11 bytes into a destination of size 7
   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   69 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   70 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
/build/reproducible-path/libpano13-2.9.22+dfsg/ColourBrightness.c: In function ‘OutputCurves’:
/build/reproducible-path/libpano13-2.9.22+dfsg/ColourBrightness.c:535:3: warning: ‘__builtin_strncpy’ output may be truncated copying 500 bytes from a string of length 511 [-Wstringop-truncation]
  535 |   strncpy(outputFileName, panoFileName->name, 500);
      |   ^
/build/reproducible-path/libpano13-2.9.22+dfsg/ColourBrightness.c: In function ‘OutputCurves’:
/build/reproducible-path/libpano13-2.9.22+dfsg/ColourBrightness.c:535:3: warning: ‘__builtin_strncpy’ output may be truncated copying 500 bytes from a string of length 511 [-Wstringop-truncation]
  535 |   strncpy(outputFileName, panoFileName->name, 500);
      |   ^
make[3]: Leaving directory '/build/reproducible-path/libpano13-2.9.22+dfsg/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:258: CMakeFiles/pano13.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/build/reproducible-path/libpano13-2.9.22+dfsg/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:290: CMakeFiles/pano13a.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/libpano13-2.9.22+dfsg/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:169: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/libpano13-2.9.22+dfsg/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:28: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1097246#12
Date:
2025-07-20 12:06:28 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libpano13, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1097246@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Metzler <ametzler@debian.org> (supplier of updated libpano13 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 20 Jul 2025 13:36:24 +0200
Source: libpano13
Architecture: source
Version: 2.9.22+dfsg-2
Distribution: experimental
Urgency: medium
Maintainer: Debian PhotoTools Maintainers <pkg-phototools-devel@lists.alioth.debian.org>
Changed-By: Andreas Metzler <ametzler@debian.org>
Closes: 1097246
Changes:
 libpano13 (2.9.22+dfsg-2) experimental; urgency=medium
 .
   * Cherry-pick patches from upstream HG and
https://bugs.launchpad.net/panotools/+bug/2096612 to fix ftbfs with
     GCC-15. Closes: #1097246
Checksums-Sha1:
 62f910ce3ac96a4e74963d6856e2d879289a50cf 2246 libpano13_2.9.22+dfsg-2.dsc
 01121738406a6968621cc4b8475dc5ad1f119d8f 17076 libpano13_2.9.22+dfsg-2.debian.tar.xz
Checksums-Sha256:
 2904c095a278dd01c50f72cb741746e2a26a3896061b0dee3588396b5f4e7e67 2246 libpano13_2.9.22+dfsg-2.dsc
 32a01f7b547991bf7220cdd2ce43107205499350053e840f9432536d517576f7 17076 libpano13_2.9.22+dfsg-2.debian.tar.xz
Files:
 2cd68d994a96d60fada8ec842c49dd41 2246 libs optional libpano13_2.9.22+dfsg-2.dsc
 4d55dd06aa4b322255e669ce493480cc 17076 libs optional libpano13_2.9.22+dfsg-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE0uCSA5741Jbt9PpepU8BhUOCFIQFAmh81Z0ACgkQpU8BhUOC
FIQ6+g/9EbSyAF2vKUVxmD8ZtaBD7G9LCDSrK3Rd361JaBz8xYDxXUCf0qstk3dB
OVfL+eFUvvTB47fQn42AZql41oegTwCsqmNBVJ+7HRXmzWiZC2SaFKUu9I/SSwbh
2vW1zFn8OAa4zsDBApr0RqX9LQ7XDKaoIIq0P3qwjg1onIDM9nh53UxjzD91BggF
7+IG9tNU5mue3dyiu4HYYyVtvTOSpOgYDeZIBWFLgxOHBtOnWjtizz91XITllD+w
hDM9e7Dphq0GhA/xIIS+DDhvDer6kQf+3Eg12Otw1FX8bLPFTx9j46Y4Bnihv8sQ
jOBi9kt5ccv5vZerm+uiAaE+tGUhDMtfNZSkF53ihu7405eNNe015vFwefVgEGgs
PAAqCyLYS+UWzOuiu/AUT+T1hJbc9oNUvuRb/71NcbrI9BxqxQzylaHHlfoftSec
4ZjrGKzdTu2YWpqtZMBn11QlNWpGUAkA4SN/1yPUeK1lJb9cBNCwWk/Em2ic16xr
+vFEDs98Aaqv3Um4sDylsy85KiZTfxqhz3sPm+u8/SIhiC8g8gWYuG2MPbUEAHk3
3OpJiAkwtXVzZpMqicwk6+eDe1p8xxBDlJlaDuRnZ3iPrWYamlAZRxsKawxkWqiu
JeglfmmN0/7lX8gyYZOoLcBLB5YxljFoBLHizCxpjS6MH2Fnsps=
=aQX6
-----END PGP SIGNATURE-----