Bug#1075137: libapache-mod-auth-radius: ftbfs with GCC-14
Package: src:libapache-mod-auth-radius
Version: 1.5.8-2
Severity: important
Tags: sid trixie
User: debian-gcc@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/libapache-mod-auth-radius_1.5.8-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
[...]
dpkg-buildpackage: info: source changed by Bastian Germann <bage@debian.org>
dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
fakeroot debian/rules clean
dh_testdir
dh_testroot
/usr/bin/make clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -rf .libs/
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_clean build-stamp .libs/mod_auth_radius.so
dh_clean: warning: Compatibility levels before 10 are deprecated (level 7 in use)
debian/rules build
dh_testdir
apxs2 -c mod_auth_radius-2.0.c
/usr/share/apr-1.0/build/libtool --mode=compile --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -pipe -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -c -o mod_auth_radius-2.0.lo mod_auth_radius-2.0.c && touch mod_auth_radius-2.0.slo
libtool: compile: x86_64-linux-gnu-gcc -pipe -g -O2 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -c mod_auth_radius-2.0.c -fPIC -DPIC -o .libs/mod_auth_radius-2.0.o
mod_auth_radius-2.0.c: In function ‘set_int_slot’:
mod_auth_radius-2.0.c:552:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
552 | int offset = (int)cmd->info;
| ^
In file included from mod_auth_radius-2.0.c:297:
mod_auth_radius-2.0.c: At top level:
mod_auth_radius-2.0.c:576:42: error: initialization of ‘const char * (*)(cmd_parms *, void *, const char *)’ {aka ‘const char * (*)(struct cmd_parms_struct *, void *, const char *)’} from incompatible pointer type ‘const char * (*)(cmd_parms *, char *, const char *)’ {aka ‘const char * (*)(struct cmd_parms_struct *, char *, const char *)’} [-Wincompatible-pointer-types]
576 | AP_INIT_TAKE1("AuthRadiusCookieValid", set_int_slot,
| ^~~~~~~~~~~~
/usr/include/apache2/http_config.h:129:27: note: in definition of macro ‘AP_INIT_TAKE1’
129 | { directive, { .take1=func }, mconfig, where, TAKE1, help }
| ^~~~
mod_auth_radius-2.0.c:576:42: note: (near initialization for ‘auth_cmds[4].func.take1’)
576 | AP_INIT_TAKE1("AuthRadiusCookieValid", set_int_slot,
| ^~~~~~~~~~~~
/usr/include/apache2/http_config.h:129:27: note: in definition of macro ‘AP_INIT_TAKE1’
129 | { directive, { .take1=func }, mconfig, where, TAKE1, help }
| ^~~~
mod_auth_radius-2.0.c: In function ‘make_cookie’:
mod_auth_radius-2.0.c:695:48: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 9 has type ‘time_t’ {aka ‘long int’} [-Wformat=]
695 | apr_snprintf(one, COOKIE_SIZE, "%s%s%s%s%s%08x", scr->secret,
| ~~~^
| |
| unsigned int
| %08lx
696 | r->user, passwd, CLIENT_IP(c), hostname, expires);
| ~~~~~~~
| |
| time_t {aka long int}
mod_auth_radius-2.0.c:712:45: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘time_t’ {aka ‘long int’} [-Wformat=]
712 | apr_snprintf(cookie, COOKIE_SIZE, "%s%08x",
| ~~~^
| |
| unsigned int
| %08lx
713 | ap_md5(r->pool, two), expires);
| ~~~~~~~
| |
| time_t {aka long int}
mod_auth_radius-2.0.c:715:45: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘time_t’ {aka ‘long int’} [-Wformat=]
715 | apr_snprintf(cookie, COOKIE_SIZE, "%s%08x%s",
| ~~~^
| |
| unsigned int
| %08lx
716 | ap_md5(r->pool, two), expires, string);
| ~~~~~~~
| |
| time_t {aka long int}
apxs:Error: Command failed with rc=65536
.
make: *** [debian/rules:10: build-arch] Error 1
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Reply to: