#1096783 growl-for-linux: ftbfs with GCC-15

#1096783#5
Date:
2025-02-17 17:18:12 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/growl-for-linux_0.8.5-9.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

[...]
      |      ^~~~~~~~~~~~~~~~~~~~~
gol.c:1430:9: warning: ‘DES_ede3_cbc_encrypt’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1430 |         DES_ede3_cbc_encrypt((unsigned char*) ptr, (unsigned char*) data,
      |         ^~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/des.h:142:6: note: declared here
  142 | void DES_ede3_cbc_encrypt(const unsigned char *input, unsigned char *output,
      |      ^~~~~~~~~~~~~~~~~~~~
gol.c: In function ‘load_subscribe_plugins’:
gol.c:2074:30: error: too many arguments to function ‘((SUBSCRIBE_PLUGIN *)sp)->init’; expected 0, have 1
 2074 |     if (name && sp->init && !sp->init(&sc)) {
      |                              ^~       ~~~
gol.c:74:14: note: declared here
   74 |   gboolean (*init)();
      |              ^~~~
gol.c: In function ‘udp_recv_proc’:
gol.c:2171:11: warning: ‘MD5_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 2171 |           HASH_DIGEST_CHECK(MD5, password, buf, len);
      |           ^~~~~~~~~~~~~~~~~
/usr/include/openssl/md5.h:49:27: note: declared here
   49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c);
      |                           ^~~~~~~~
gol.c:2171:11: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 2171 |           HASH_DIGEST_CHECK(MD5, password, buf, len);
      |           ^~~~~~~~~~~~~~~~~
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~
gol.c:2171:11: warning: ‘MD5_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 2171 |           HASH_DIGEST_CHECK(MD5, password, buf, len);
      |           ^~~~~~~~~~~~~~~~~
/usr/include/openssl/md5.h:50:27: note: declared here
   50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~
gol.c:2171:11: warning: ‘MD5_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 2171 |           HASH_DIGEST_CHECK(MD5, password, buf, len);
      |           ^~~~~~~~~~~~~~~~~
/usr/include/openssl/md5.h:51:27: note: declared here
   51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c);
      |                           ^~~~~~~~~
gol.c:2174:11: warning: ‘SHA256_Init’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 2174 |           HASH_DIGEST_CHECK(SHA256, password, buf, len);
      |           ^~~~~~~~~~~~~~~~~
/usr/include/openssl/sha.h:73:27: note: declared here
   73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c);
      |                           ^~~~~~~~~~~
gol.c:2174:11: warning: ‘SHA256_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 2174 |           HASH_DIGEST_CHECK(SHA256, password, buf, len);
      |           ^~~~~~~~~~~~~~~~~
/usr/include/openssl/sha.h:74:27: note: declared here
   74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
      |                           ^~~~~~~~~~~~~
gol.c:2174:11: warning: ‘SHA256_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 2174 |           HASH_DIGEST_CHECK(SHA256, password, buf, len);
      |           ^~~~~~~~~~~~~~~~~
/usr/include/openssl/sha.h:74:27: note: declared here
   74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
      |                           ^~~~~~~~~~~~~
gol.c:2174:11: warning: ‘SHA256_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 2174 |           HASH_DIGEST_CHECK(SHA256, password, buf, len);
      |           ^~~~~~~~~~~~~~~~~
/usr/include/openssl/sha.h:76:27: note: declared here
   76 | OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c);
      |                           ^~~~~~~~~~~~
make[2]: *** [Makefile:530: gol-gol.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/growl-for-linux-0.8.5'
make[1]: *** [Makefile:555: all-recursive] Error 1
make[1]: Leaving directory '/build/reproducible-path/growl-for-linux-0.8.5'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:12: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2