Package: src:libhbaapi Version: 2.2.9-4 Severity: important Tags: sid forky User: [email protected] Usertags: ftbfs-gcc-15
[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/libhbaapi_2.2.9-4_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 [...] hbaapilib.c:1070:10: error: too many arguments to function 'cbp->callback'; expected 0, have 3 1070 | (*cbp->callback)(data, PortWWN, HBA_EVENT_ADAPTER_ADD); | ~^~~~~~~~~~~~~~~ ~~~~ hbaapilib.c:210:35: note: declared here 210 | void (*callback)(); | ^~~~~~~~ hbaapilib.c: In function 'HBA_RegisterForAdapterAddEvents': hbaapilib.c:1113:19: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(void *, HBA_WWN, HBA_UINT32)' {aka 'void (*)(void *, struct HBA_wwn, unsigned int)'} [-Wincompatible-pointer-types] 1113 | cbp->callback = callback; | ^ hbaapilib.c: In function 'adapterevents_callback': hbaapilib.c:1233:14: error: too many arguments to function 'acbp->callback'; expected 0, have 3 1233 | (*acbp->callback)(acbp->userdata, PortWWN, eventType); | ~^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ hbaapilib.c:202:27: note: declared here 202 | void (*callback)(); | ^~~~~~~~ hbaapilib.c: In function 'HBA_RegisterForAdapterEvents': hbaapilib.c:1281:20: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(void *, HBA_WWN, HBA_UINT32)' {aka 'void (*)(void *, struct HBA_wwn, unsigned int)'} [-Wincompatible-pointer-types] 1281 | acbp->callback = callback; | ^ hbaapilib.c: In function 'adapterportevents_callback': hbaapilib.c:1319:14: error: too many arguments to function 'acbp->callback'; expected 0, have 4 1319 | (*acbp->callback)(acbp->userdata, PortWWN, eventType, fabricPortID); | ~^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ hbaapilib.c:202:27: note: declared here 202 | void (*callback)(); | ^~~~~~~~ hbaapilib.c: In function 'HBA_RegisterForAdapterPortEvents': hbaapilib.c:1372:20: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(void *, HBA_WWN, HBA_UINT32, HBA_UINT32)' {aka 'void (*)(void *, struct HBA_wwn, unsigned int, unsigned int)'} [-Wincompatible-pointer-types] 1372 | acbp->callback = callback; | ^ hbaapilib.c: In function 'adapterportstatevents_callback': hbaapilib.c:1409:14: error: too many arguments to function 'acbp->callback'; expected 0, have 3 1409 | (*acbp->callback)(acbp->userdata, PortWWN, eventType); | ~^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ hbaapilib.c:202:27: note: declared here 202 | void (*callback)(); | ^~~~~~~~ hbaapilib.c: In function 'HBA_RegisterForAdapterPortStatEvents': hbaapilib.c:1462:20: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(void *, HBA_WWN, HBA_UINT32)' {aka 'void (*)(void *, struct HBA_wwn, unsigned int)'} [-Wincompatible-pointer-types] 1462 | acbp->callback = callback; | ^ hbaapilib.c: In function 'targetevents_callback': hbaapilib.c:1502:14: error: too many arguments to function 'acbp->callback'; expected 0, have 4 1502 | (*acbp->callback)(acbp->userdata, hbaPortWWN, | ~^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ hbaapilib.c:202:27: note: declared here 202 | void (*callback)(); | ^~~~~~~~ hbaapilib.c: In function 'HBA_RegisterForTargetEvents': hbaapilib.c:1557:20: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(void *, HBA_WWN, HBA_WWN, HBA_UINT32)' {aka 'void (*)(void *, struct HBA_wwn, struct HBA_wwn, unsigned int)'} [-Wincompatible-pointer-types] 1557 | acbp->callback = callback; | ^ hbaapilib.c: In function 'linkevents_callback': hbaapilib.c:1598:14: error: too many arguments to function 'acbp->callback'; expected 0, have 5 1598 | (*acbp->callback)(acbp->userdata, adapterWWN, | ~^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ hbaapilib.c:202:27: note: declared here 202 | void (*callback)(); | ^~~~~~~~ hbaapilib.c: In function 'HBA_RegisterForLinkEvents': hbaapilib.c:1650:20: error: assignment to 'void (*)(void)' from incompatible pointer type 'void (*)(void *, HBA_WWN, HBA_UINT32, void *, HBA_UINT32)' {aka 'void (*)(void *, struct HBA_wwn, unsigned int, void *, unsigned int)'} [-Wincompatible-pointer-types] 1650 | acbp->callback = callback; | ^ make[1]: *** [Makefile:470: hbaapilib.lo] Error 1 make[1]: Leaving directory '/build/reproducible-path/libhbaapi-2.2.9' 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

