Bug#1017146: ncap: FTBFS: ncap_dns.c:791:33: error: ‘ns_sprintrr’ is deprecated [-Werror=deprecated-declarations]
Source: ncap
Version: 1.9.2-7
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20220813 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -Dlint -Wall -Werror -Wunused -Wshadow -Wcast-qual -Wpointer-arith -Wwrite-strings -Wnested-externs -Wmissing-noreturn -Wmissing-prototypes -Wbad-function-cast -Wbad-function-cast -Wformat-nonliteral -Wextra -Wswitch-enum -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o mod_test.lo mod_test.c
> ncap_dns.c: In function ‘match_regex’:
> ncap_dns.c:791:33: error: ‘ns_sprintrr’ is deprecated [-Werror=deprecated-declarations]
> 791 | if (ns_sprintrr(&msg, &rr, NULL, ".",
> | ^~
> In file included from ncap_port_net.h:65,
> from ncap_dns.c:32:
> /usr/include/arpa/nameser.h:408:17: note: declared here
> 408 | int ns_sprintrr (const ns_msg *, const ns_rr *,
> | ^~~~~~~~~~~
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -Dlint -Wall -Werror -Wunused -Wshadow -Wcast-qual -Wpointer-arith -Wwrite-strings -Wnested-externs -Wmissing-noreturn -Wmissing-prototypes -Wbad-function-cast -Wbad-function-cast -Wformat-nonliteral -Wextra -Wswitch-enum -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c mod_test.c -fPIC -DPIC -o .libs/mod_test.o
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -Dlint -Wall -Werror -Wunused -Wshadow -Wcast-qual -Wpointer-arith -Wwrite-strings -Wnested-externs -Wmissing-noreturn -Wmissing-prototypes -Wbad-function-cast -Wbad-function-cast -Wformat-nonliteral -Wextra -Wswitch-enum -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ncap_icmp.c -o libncap_la-ncap_icmp.o >/dev/null 2>&1
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -Dlint -Wall -Werror -Wunused -Wshadow -Wcast-qual -Wpointer-arith -Wwrite-strings -Wnested-externs -Wmissing-noreturn -Wmissing-prototypes -Wbad-function-cast -Wbad-function-cast -Wformat-nonliteral -Wextra -Wswitch-enum -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c mod_test.c -o mod_test.o >/dev/null 2>&1
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -Dlint -Wall -Werror -Wunused -Wshadow -Wcast-qual -Wpointer-arith -Wwrite-strings -Wnested-externs -Wmissing-noreturn -Wmissing-prototypes -Wbad-function-cast -Wbad-function-cast -Wformat-nonliteral -Wextra -Wswitch-enum -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c ipreasm.c -o libncap_la-ipreasm.o >/dev/null 2>&1
> cc1: all warnings being treated as errors
> make[2]: *** [Makefile:678: libncap_la-ncap_dns.lo] Error 1
The full build log is available from:
http://qa-logs.debian.net/2022/08/13/ncap_1.9.2-7_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220813;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220813&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
Reply to: