Bug#1096830: ifhp: ftbfs with GCC-15
Package: src:ifhp
Version: 3.5.20-20
Severity: important
Tags: sid forky
User: debian-gcc@lists.debian.org
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/ifhp_3.5.20-20_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
[...]
./ifhp.conf.in >ifhp.conf
if [ "src" = po ] ; then \
for i in po/Makefile* ; do \
if [ -f "$i" ] ; then \
if grep '^mkinstalldirs.*=.*case' $i ; then \
echo "fixing broken $i which causes wrong path to mkinstalldirs to be used"; \
perl -spi -e 's:^mkinstalldirs\s*=\s*.*:mkinstalldirs = \$(SHELL) \$(MKINSTALLDIRS):' $i; \
fi \
fi \
done \
fi
if [ "src" != po -o "no" != "no" ] ; then \
cd src; /usr/bin/make localedir=/usr/share/locale \
DESTDIR= all ; \
fi
make[2]: Entering directory '/build/reproducible-path/ifhp-3.5.20/src'
x86_64-linux-gnu-gcc -g -W -Wall -Werror -Wno-unused -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/ifhp-3.5.20=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-unused-parameter -Wno-implicit-fallthrough -g -W -Wall -Werror -Wno-unused -DHAVE_CONFIG_H -I. -I.. -I. -DIFHP_CONF=\"/etc/ifhp.conf\" -DLOCALEDIR=\"/usr/share/locale\" -c -o ifhp.o ifhp.c
ifhp.c: In function ‘plp_signal’:
ifhp.c:1792:24: error: assignment to ‘__sighandler_t’ {aka ‘void (*)(int)’} from incompatible pointer type ‘plp_sigfunc_t’ {aka ‘int (*)(int)’} [-Wincompatible-pointer-types]
1792 | act.sa_handler = func;
| ^
In file included from /usr/include/x86_64-linux-gnu/sys/param.h:28,
from portable.h:283,
from ifhp.h:21,
from ifhp.c:14:
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
72 | typedef void (*__sighandler_t) (int);
| ^~~~~~~~~~~~~~
portable.h:545:24: note: ‘plp_sigfunc_t’ declared here
545 | typedef plp_signal_t (*plp_sigfunc_t)(int) ;
| ^~~~~~~~~~~~~
ifhp.c:1799:24: error: returning ‘void (*)(int)’ from a function with incompatible return type ‘plp_sigfunc_t’ {aka ‘int (*)(int)’} [-Wincompatible-pointer-types]
1799 | return (SIG_ERR);
| ^
portable.h:545:24: note: ‘plp_sigfunc_t’ declared here
545 | typedef plp_signal_t (*plp_sigfunc_t)(int) ;
| ^~~~~~~~~~~~~
ifhp.c:1801:16: error: cast between incompatible function types from ‘__sighandler_t’ {aka ‘void (*)(int)’} to ‘plp_signal_t (*)(int)’ {aka ‘int (*)(int)’} [-Werror=cast-function-type]
1801 | return (plp_sigfunc_t) oact.sa_handler;
| ^
ifhp.c: In function ‘plp_signal_break’:
ifhp.c:1819:24: error: assignment to ‘__sighandler_t’ {aka ‘void (*)(int)’} from incompatible pointer type ‘plp_sigfunc_t’ {aka ‘int (*)(int)’} [-Wincompatible-pointer-types]
1819 | act.sa_handler = func;
| ^
/usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
72 | typedef void (*__sighandler_t) (int);
| ^~~~~~~~~~~~~~
portable.h:545:24: note: ‘plp_sigfunc_t’ declared here
545 | typedef plp_signal_t (*plp_sigfunc_t)(int) ;
| ^~~~~~~~~~~~~
ifhp.c:1826:24: error: returning ‘void (*)(int)’ from a function with incompatible return type ‘plp_sigfunc_t’ {aka ‘int (*)(int)’} [-Wincompatible-pointer-types]
1826 | return (SIG_ERR);
| ^
portable.h:545:24: note: ‘plp_sigfunc_t’ declared here
545 | typedef plp_signal_t (*plp_sigfunc_t)(int) ;
| ^~~~~~~~~~~~~
ifhp.c:1828:16: error: cast between incompatible function types from ‘__sighandler_t’ {aka ‘void (*)(int)’} to ‘plp_signal_t (*)(int)’ {aka ‘int (*)(int)’} [-Werror=cast-function-type]
1828 | return (plp_sigfunc_t) oact.sa_handler;
| ^
ifhp.c: In function ‘timeout_break’:
ifhp.c:1956:1: error: no return statement in function returning non-void [-Werror=return-type]
1956 | }
| ^
cc1: all warnings being treated as errors
make[2]: *** [<builtin>: ifhp.o] Error 1
make[2]: Leaving directory '/build/reproducible-path/ifhp-3.5.20/src'
make[1]: *** [Makefile:52: src] Error 2
make[1]: Leaving directory '/build/reproducible-path/ifhp-3.5.20'
make: *** [debian/rules:36: build-stamp] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: