#1075010 glimpse: ftbfs with GCC-14

#1075010#5
Date:
2024-07-03 12:28:14 UTC
From:
To:
[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/glimpse_4.18.7-8_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

[...]
      |                                        ^~~~~~~
main.c:2739:102: error: passing argument 4 of ‘fileagrep_search’ from incompatible pointer type [-Wincompatible-pointer-types]
 2739 |                                                         if ((ret = fileagrep_search(AM, APattern, 1, >extfiles[i], 0, stdout)) > 0) {
      |                                                                                                      ^~~~~~~~~~~~~~
      |                                                                                                      |
      |                                                                                                      unsigned char **
missing_prototypes.h:66:40: note: expected ‘char **’ but argument is of type ‘unsigned char **’
   66 | int fileagrep_search(int, char *, int, char **, int , void *);
      |                                        ^~~~~~~
main.c:2809:102: error: passing argument 4 of ‘fileagrep_search’ from incompatible pointer type [-Wincompatible-pointer-types]
 2809 |                                                         if ((ret = fileagrep_search(AM, APattern, 1, >extfiles[i], 0, stdout)) > 0) {
      |                                                                                                      ^~~~~~~~~~~~~~
      |                                                                                                      |
      |                                                                                                      unsigned char **
missing_prototypes.h:66:40: note: expected ‘char **’ but argument is of type ‘unsigned char **’
   66 | int fileagrep_search(int, char *, int, char **, int , void *);
      |                                        ^~~~~~~
main.c:2830:110: error: passing argument 4 of ‘fileagrep_search’ from incompatible pointer type [-Wincompatible-pointer-types]
 2830 |                                                                 if ((ret = fileagrep_search(AM, APattern, 1, >extfiles[i], 0, stdout)) > 0) {
      |                                                                                                              ^~~~~~~~~~~~~~
      |                                                                                                              |
      |                                                                                                              unsigned char **
missing_prototypes.h:66:40: note: expected ‘char **’ but argument is of type ‘unsigned char **’
   66 | int fileagrep_search(int, char *, int, char **, int , void *);
      |                                        ^~~~~~~
main.c:2895:89: error: passing argument 4 of ‘fileagrep_search’ from incompatible pointer type [-Wincompatible-pointer-types]
 2895 |                                                 ret = fileagrep_search(AM, APattern, 1, >extfiles[i], 0, tmpfp);
      |                                                                                         ^~~~~~~~~~~~~~
      |                                                                                         |
      |                                                                                         unsigned char **
missing_prototypes.h:66:40: note: expected ‘char **’ but argument is of type ‘unsigned char **’
   66 | int fileagrep_search(int, char *, int, char **, int , void *);
      |                                        ^~~~~~~
main.c:2911:97: error: passing argument 4 of ‘fileagrep_search’ from incompatible pointer type [-Wincompatible-pointer-types]
 2911 |                                                         ret = fileagrep_search(AM, APattern, 1, >extfiles[i], 0, tmpfp);
      |                                                                                                 ^~~~~~~~~~~~~~
      |                                                                                                 |
      |                                                                                                 unsigned char **
missing_prototypes.h:66:40: note: expected ‘char **’ but argument is of type ‘unsigned char **’
   66 | int fileagrep_search(int, char *, int, char **, int , void *);
      |                                        ^~~~~~~
main.c:3007:97: error: passing argument 4 of ‘fileagrep_search’ from incompatible pointer type [-Wincompatible-pointer-types]
 3007 |                                                         ret = fileagrep_search(AM, APattern, 1, >extfiles[i], 0, tmpfp);
      |                                                                                                 ^~~~~~~~~~~~~~
      |                                                                                                 |
      |                                                                                                 unsigned char **
missing_prototypes.h:66:40: note: expected ‘char **’ but argument is of type ‘unsigned char **’
   66 | int fileagrep_search(int, char *, int, char **, int , void *);
      |                                        ^~~~~~~
main.c:3023:105: error: passing argument 4 of ‘fileagrep_search’ from incompatible pointer type [-Wincompatible-pointer-types]
 3023 |                                                                 ret = fileagrep_search(AM, APattern, 1, >extfiles[i], 0, tmpfp);
      |                                                                                                         ^~~~~~~~~~~~~~
      |                                                                                                         |
      |                                                                                                         unsigned char **
missing_prototypes.h:66:40: note: expected ‘char **’ but argument is of type ‘unsigned char **’
   66 | int fileagrep_search(int, char *, int, char **, int , void *);
      |                                        ^~~~~~~
main.c: At top level:
main.c:3485:1: error: return type defaults to ‘int’ [-Wimplicit-int]
 3485 | usage()
      | ^~~~~
main.c:3565:1: error: return type defaults to ‘int’ [-Wimplicit-int]
 3565 | usageS()
      | ^~~~~~
make[2]: *** [Makefile:157: main.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:13: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:28: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

#1075010#10
Date:
2024-07-10 08:36:06 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
glimpse, 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 1075010@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexander Zangerl <az@debian.org> (supplier of updated glimpse 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: Wed, 10 Jul 2024 17:53:19 +1000
Source: glimpse
Architecture: source
Version: 4.18.7-9
Distribution: unstable
Urgency: medium
Maintainer: Alexander Zangerl <az@debian.org>
Changed-By: Alexander Zangerl <az@debian.org>
Closes: 1075010
Changes:
 glimpse (4.18.7-9) unstable; urgency=medium
 .
   * this pile of medieval c requires help to survive gcc14 (closes: #1075010)
Checksums-Sha1:
 796b2011ea9c455fb76b8ba53befd53c9969b4ee 1750 glimpse_4.18.7-9.dsc
 ada32ff3d7f8d2cc081c94bdd754c6fd55ac5eaf 14332 glimpse_4.18.7-9.debian.tar.xz
 6691825de6aceabfc50b0a2335282f56901e65bf 7285 glimpse_4.18.7-9_amd64.buildinfo
Checksums-Sha256:
 a35bcbe3a5c9f3b756fb47d4031edaf5e9583fc7a1be3b9acdcaeec4b23d6784 1750 glimpse_4.18.7-9.dsc
 51582cf5a1b3642c260a8e04d01c4ef56672267aadda6ff207923594e7c9b185 14332 glimpse_4.18.7-9.debian.tar.xz
 6fb052c9b0127ab6912b658db0f2d487065ecf28b150573d9082f60b97e9a0c6 7285 glimpse_4.18.7-9_amd64.buildinfo
Files:
 f5bf1d9c372ffb16ac5d4078fcb6e57a 1750 text optional glimpse_4.18.7-9.dsc
 fc688912a0068dfd054fec4d9b711318 14332 text optional glimpse_4.18.7-9.debian.tar.xz
 e653b88aa6c62c206477797a41cc74bd 7285 text optional glimpse_4.18.7-9_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJmjkXMAAoJED06g4g30PqNH7YP+QFgIRaa60Le+fBaiiRwv/Wp
+1OD25S8KQP+nK+6DrmbyimW9GCmxhgUjZJPUR/x+OK0823w+xdlkQVQCXVjnJDy
8CPnz3EElGOQi1utwECMKvXKEcvI9nzRZOfIDK7WMPTpBpTiePDczuNAc/0M2Be+
qlhyc1yl/JxeUpZPfAePdSb7opZj1zMkjay/+gLQ7V/mHaZ9DEr3OlFWVTZg5s+N
jBYO5P7q3nzrSBfTwNJyO3G5xU9C1J8TwTRof2/4ExPomFPCTAbik+//GYMUqk9X
KhygFeb/zKZHDX2CQnyasQ6qOsf1j7EPru6SfCJC0AFhVIbTrT74ZexgOnc6Fifb
1BRo01EVe53pQpQsWZE0vu4ovnHuKt7tn50bgEiGNF1szNuMPSe8Tzz+4L4H0d6V
R/iVHDaiNvKV99oB6yrnwK8TXyrWkVKWuQZW/9Br4xyH1YiD6EwOXh5mnsjmYk6w
u4s7wML5titT+0UFKaR1ui3Kern4kaJpZ5Gdi9KqJoHaeRVTwyVdyvwBa2PJWqgB
0kVr1gyI1fXd/eB9e2A/InEvp+fR1qMcoyId+E/AxDGPuCTnuCVgvnbjC8Jh52hS
NRokk3vatYEARL5bjYVj04qaNwufaotpcS/V4/uActBnBeT4+WrwoFcSKjzRzfq6
AgbClmZNODiuwJIn70A0
=B/yN
-----END PGP SIGNATURE-----