Bug#1075036: gphoto2: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:29:03 BST 2024


Package: src:gphoto2
Version: 2.5.28-2
Severity: important
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-14

[This bug is 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-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/gphoto2_2.5.28-2_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

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-14/porting_to.html

[...]
gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -D_GPHOTO2_INTERNAL_CODE -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I../gphoto2 -I/usr/include/gphoto2  -DLOCALEDIR=\"/usr/share/locale\" -D_GPHOTO2_INTERNAL_CODE -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -I/usr/include    -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wmissing-declarations -Wmissing-prototypes -g -c -o gphoto2-main.o `test -f 'main.c' || echo './'`main.c
gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -D_GPHOTO2_INTERNAL_CODE -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I../gphoto2 -I/usr/include/gphoto2  -DLOCALEDIR=\"/usr/share/locale\" -D_GPHOTO2_INTERNAL_CODE -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -I/usr/include    -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wmissing-declarations -Wmissing-prototypes -g -c -o gphoto2-version.o `test -f 'version.c' || echo './'`version.c
gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -D_GPHOTO2_INTERNAL_CODE -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I../gphoto2 -I/usr/include/gphoto2  -DLOCALEDIR=\"/usr/share/locale\" -D_GPHOTO2_INTERNAL_CODE -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -I/usr/include    -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wmissing-declarations -Wmissing-prototypes -g -c -o gphoto2-range.o `test -f 'range.c' || echo './'`range.c
gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\" -D_GPHOTO2_INTERNAL_CODE -Wdate-time -D_FORTIFY_SOURCE=2 -I.. -I../gphoto2 -I/usr/include/gphoto2  -DLOCALEDIR=\"/usr/share/locale\" -D_GPHOTO2_INTERNAL_CODE -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/local/include -I/usr/include    -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wmissing-declarations -Wmissing-prototypes -g -c -o gphoto2-shell.o `test -f 'shell.c' || echo './'`shell.c
gphoto2-cmd-config.c: In function ‘set_config’:
gphoto2-cmd-config.c:74:42: error: passing argument 4 of ‘newCDKDialog’ from incompatible pointer type [-Wincompatible-pointer-types]
   74 |                                          msg, 4, buttons, 2,
      |                                          ^~~
      |                                          |
      |                                          const char **
In file included from /usr/include/cdk.h:40,
                 from gphoto2-cmd-config.c:33:
/usr/include/cdk/dialog.h:90:17: note: expected ‘char **’ but argument is of type ‘const char **’
   90 |                 CDK_CSTRING2    /* message */,
      |                 ^~~~~~~~~~~~
gphoto2-cmd-config.c:74:50: error: passing argument 6 of ‘newCDKDialog’ from incompatible pointer type [-Wincompatible-pointer-types]
   74 |                                          msg, 4, buttons, 2,
      |                                                  ^~~~~~~
      |                                                  |
      |                                                  const char **
/usr/include/cdk/dialog.h:92:17: note: expected ‘char **’ but argument is of type ‘const char **’
   92 |                 CDK_CSTRING2    /* buttons */,
      |                 ^~~~~~~~~~~~
gphoto2-cmd-config.c: In function ‘show_section’:
gphoto2-cmd-config.c:127:32: error: passing argument 8 of ‘newCDKScroll’ from incompatible pointer type [-Wincompatible-pointer-types]
  127 |                                (const char**)items, count, NUMBERS, A_REVERSE, TRUE, FALSE);
      |                                ^~~~~~~~~~~~~~~~~~~
      |                                |
      |                                const char **
/usr/include/cdk/scroll.h:82:17: note: expected ‘char **’ but argument is of type ‘const char **’
   82 |                 CDK_CSTRING2    /* itemList */,
      |                 ^~~~~~~~~~~~
gphoto2-cmd-config.c: In function ‘show_radio’:
gphoto2-cmd-config.c:321:53: error: passing argument 6 of ‘newCDKItemlist’ from incompatible pointer type [-Wincompatible-pointer-types]
  321 |                                title, _("Value: "), (const char**)items, count,
      |                                                     ^~~~~~~~~~~~~~~~~~~
      |                                                     |
      |                                                     const char **
/usr/include/cdk/itemlist.h:86:17: note: expected ‘char **’ but argument is of type ‘const char **’
   86 |                 CDK_CSTRING2    /* itemlist */,
      |                 ^~~~~~~~~~~~
gphoto2-cmd-config.c: In function ‘show_toggle’:
gphoto2-cmd-config.c:378:32: error: passing argument 6 of ‘newCDKItemlist’ from incompatible pointer type [-Wincompatible-pointer-types]
  378 |                                info, 2, 1 - value, TRUE, FALSE);
      |                                ^~~~
      |                                |
      |                                const char **
/usr/include/cdk/itemlist.h:86:17: note: expected ‘char **’ but argument is of type ‘const char **’
   86 |                 CDK_CSTRING2    /* itemlist */,
      |                 ^~~~~~~~~~~~
make[3]: *** [Makefile:797: gphoto2-gphoto2-cmd-config.o] Error 1
make[3]: *** Waiting for unfinished jobs....
gp-params.c: In function ‘ctx_progress_update_func’:
gp-params.c:170:17: warning: ‘__builtin___strncat_chk’ output may be truncated copying between 0 and 9 bytes from a string of length 9 [-Wstringop-truncation]
  170 |                 strncat (remaining, buf, sizeof (remaining) - strlen (remaining) - 1);
      |                 ^
gp-params.c:175:17: warning: ‘__builtin___strncat_chk’ output may be truncated copying between 0 and 9 bytes from a string of length 9 [-Wstringop-truncation]
  175 |                 strncat (remaining, buf, sizeof (remaining) - strlen (remaining) - 1);
      |                 ^
gp-params.c:179:17: warning: ‘__builtin___strncat_chk’ output may be truncated copying between 0 and 9 bytes from a string of length 9 [-Wstringop-truncation]
  179 |                 strncat (remaining, buf, sizeof (remaining) - strlen (remaining) - 1);
      |                 ^
make[3]: Leaving directory '/<<PKGBUILDDIR>>/gphoto2'
make[2]: *** [Makefile:463: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:395: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-phototools-devel mailing list