--- Begin Message ---
Package: src:libstorj
Version: 1.0.3-1.3
Severity: important
Tags: sid trixie
User: debian-...@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/libstorj_1.0.3-1.3_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
[...]
| ^
mockfarmer.c: In function ‘mock_farmer_shard_server’:
mockfarmer.c:96:17: warning: unused variable ‘encoding’ [-Wunused-variable]
96 | const char *encoding = MHD_lookup_connection_value(connection,
| ^~~~~~~~
mockfarmer.c: In function ‘start_farmer_server’:
mockfarmer.c:347:29: error: passing argument 5 of ‘MHD_start_daemon’ from
incompatible pointer type [-Wincompatible-pointer-types]
347 | &mock_farmer_shard_server,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int (*)(void *, struct MHD_Connection *,
const char *, const char *, const char *, const char *, size_t *, void **) {aka
int (*)(void *, struct MHD_Connection *, const char *, const char *, const char
*, const char *, long unsigned int *, void **)}
In file included from storjtests.h:1,
from mockfarmer.c:5:
/usr/include/microhttpd.h:2973:45: note: expected ‘MHD_AccessHandlerCallback’
{aka ‘enum MHD_Result (*)(void *, struct MHD_Connection *, const char *, const
char *, const char *, const char *, long unsigned int *, void **)’} but
argument is of type ‘int (*)(void *, struct MHD_Connection *, const char *,
const char *, const char *, const char *, size_t *, void **)’ {aka ‘int
(*)(void *, struct MHD_Connection *, const char *, const char *, const char *,
const char *, long unsigned int *, void **)’}
2973 | MHD_AccessHandlerCallback dh, void *dh_cls,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from storjtests.h:4:
../src/storj.h: At top level:
../src/storj.h:297:20: warning: ‘BUCKET_OP’ defined but not used
[-Wunused-variable]
297 | static const char *BUCKET_OP[] = { "PUSH", "PULL" };
| ^~~~~~~~~
make[2]: *** [Makefile:607: mockfarmer.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from storjtests.h:4,
from mockbridge.c:1:
../src/storj.h:297:20: warning: ‘BUCKET_OP’ defined but not used
[-Wunused-variable]
297 | static const char *BUCKET_OP[] = { "PUSH", "PULL" };
| ^~~~~~~~~
mockbridge.c: In function ‘mock_bridge_server’:
mockbridge.c:60:9: warning: ‘strlen’ argument missing terminating nul
[-Wstringop-overread]
60 | if (parse_json(mockbridge_json, &responses)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from storjtests.h:9:
mockbridge.json.h:1:19: note: referenced argument declared here
1 | static const char mockbridge_json[] = {
| ^~~~~~~~~~~~~~~
mockbridge.c:66:9: warning: ‘strlen’ argument missing terminating nul
[-Wstringop-overread]
66 | if (parse_json(mockbridgeinfo_json, &responses_info)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from storjtests.h:10:
mockbridgeinfo.json.h:1:19: note: referenced argument declared here
1 | static const char mockbridgeinfo_json[] = {
| ^~~~~~~~~~~~~~~~~~~
tests.c: In function ‘test_generate_file_key’:
tests.c:1124:11: warning: unused variable ‘file_name’ [-Wunused-variable]
1124 | char *file_name = "samplefile.txt";
| ^~~~~~~~~
tests.c: In function ‘start_test_server’:
tests.c:1520:29: error: passing argument 5 of ‘MHD_start_daemon’ from
incompatible pointer type [-Wincompatible-pointer-types]
1520 | &mock_bridge_server,
| ^~~~~~~~~~~~~~~~~~~
| |
| int (*)(void *, struct MHD_Connection *,
const char *, const char *, const char *, const char *, size_t *, void **) {aka
int (*)(void *, struct MHD_Connection *, const char *, const char *, const char
*, const char *, long unsigned int *, void **)}
In file included from storjtests.h:1,
from tests.c:1:
/usr/include/microhttpd.h:2973:45: note: expected ‘MHD_AccessHandlerCallback’
{aka ‘enum MHD_Result (*)(void *, struct MHD_Connection *, const char *, const
char *, const char *, const char *, long unsigned int *, void **)’} but
argument is of type ‘int (*)(void *, struct MHD_Connection *, const char *,
const char *, const char *, const char *, size_t *, void **)’ {aka ‘int
(*)(void *, struct MHD_Connection *, const char *, const char *, const char *,
const char *, long unsigned int *, void **)’}
2973 | MHD_AccessHandlerCallback dh, void *dh_cls,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
In file included from storjtests.h:4:
../src/storj.h: At top level:
../src/storj.h:297:20: warning: ‘BUCKET_OP’ defined but not used
[-Wunused-variable]
297 | static const char *BUCKET_OP[] = { "PUSH", "PULL" };
| ^~~~~~~~~
make[2]: *** [Makefile:607: tests.o] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/test'
make[1]: *** [Makefile:457: all-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--- End Message ---