[Debian-mobcom-maintainers] Bug#954512: nextepc: FTBFS: sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror=cpp]

Lucas Nussbaum lucas at debian.org
Sun Mar 22 07:28:45 GMT 2020


Source: nextepc
Version: 0.3.10+nods-3
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200321 ftbfs-bullseye

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. -I../..  -I../../lib/ipfw/objs/include_e -include glue.h -D_DEFAULT_SOURCE -D_BSD_SOURCE -DUSERSPACE -D__BSD_VISIBLE -DNEED_STRTONUM -DNEED_ROUNDUP2 -DNEED_SYSCTLBYNAME -DNEED_SIN_LEN -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -Wno-shift-negative-value -Wno-unused-but-set-variable -Wno-unknown-warning-option -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o tables.lo tables.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/ipfw/objs/include_e -include glue.h -D_DEFAULT_SOURCE -D_BSD_SOURCE -DUSERSPACE -D__BSD_VISIBLE -DNEED_STRTONUM -DNEED_ROUNDUP2 -DNEED_SYSCTLBYNAME -DNEED_SIN_LEN -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -Wno-shift-negative-value -Wno-unused-but-set-variable -Wno-unknown-warning-option -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c ipfw2.c  -fPIC -DPIC -o .libs/ipfw2.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/ipfw/objs/include_e -include glue.h -D_DEFAULT_SOURCE -D_BSD_SOURCE -DUSERSPACE -D__BSD_VISIBLE -DNEED_STRTONUM -DNEED_ROUNDUP2 -DNEED_SYSCTLBYNAME -DNEED_SIN_LEN -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -Wno-shift-negative-value -Wno-unused-but-set-variable -Wno-unknown-warning-option -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c tables.c  -fPIC -DPIC -o .libs/tables.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/ipfw/objs/include_e -include glue.h -D_DEFAULT_SOURCE -D_BSD_SOURCE -DUSERSPACE -D__BSD_VISIBLE -DNEED_STRTONUM -DNEED_ROUNDUP2 -DNEED_SYSCTLBYNAME -DNEED_SIN_LEN -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -Wno-shift-negative-value -Wno-unused-but-set-variable -Wno-unknown-warning-option -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c dummynet.c  -fPIC -DPIC -o .libs/dummynet.o
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/ipfw/objs/include_e -include glue.h -D_DEFAULT_SOURCE -D_BSD_SOURCE -DUSERSPACE -D__BSD_VISIBLE -DNEED_STRTONUM -DNEED_ROUNDUP2 -DNEED_SYSCTLBYNAME -DNEED_SIN_LEN -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -Wno-shift-negative-value -Wno-unused-but-set-variable -Wno-unknown-warning-option -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c ipv6.c  -fPIC -DPIC -o .libs/ipv6.o
> In file included from dummynet.c:21:
> /usr/include/x86_64-linux-gnu/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror=cpp]
>    21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
>       |  ^~~~~~~
> In file included from ipfw2.c:27:
> /usr/include/x86_64-linux-gnu/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror=cpp]
>    21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
>       |  ^~~~~~~
> In file included from tables.c:23:
> /usr/include/x86_64-linux-gnu/sys/sysctl.h:21:2: error: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror=cpp]
>    21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
>       |  ^~~~~~~
> /bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I../../lib/ipfw/objs/include_e -include glue.h -D_DEFAULT_SOURCE -D_BSD_SOURCE -DUSERSPACE -D__BSD_VISIBLE -DNEED_STRTONUM -DNEED_ROUNDUP2 -DNEED_SYSCTLBYNAME -DNEED_SIN_LEN -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -Wno-shift-negative-value -Wno-unused-but-set-variable -Wno-unknown-warning-option -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o expand_number.lo expand_number.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/ipfw/objs/include_e -include glue.h -D_DEFAULT_SOURCE -D_BSD_SOURCE -DUSERSPACE -D__BSD_VISIBLE -DNEED_STRTONUM -DNEED_ROUNDUP2 -DNEED_SYSCTLBYNAME -DNEED_SIN_LEN -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -Wno-shift-negative-value -Wno-unused-but-set-variable -Wno-unknown-warning-option -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c expand_number.c  -fPIC -DPIC -o .libs/expand_number.o
> /bin/bash ../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..  -I../../lib/ipfw/objs/include_e -include glue.h -D_DEFAULT_SOURCE -D_BSD_SOURCE -DUSERSPACE -D__BSD_VISIBLE -DNEED_STRTONUM -DNEED_ROUNDUP2 -DNEED_SYSCTLBYNAME -DNEED_SIN_LEN -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -Wno-shift-negative-value -Wno-unused-but-set-variable -Wno-unknown-warning-option -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c -o humanize_number.lo humanize_number.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/ipfw/objs/include_e -include glue.h -D_DEFAULT_SOURCE -D_BSD_SOURCE -DUSERSPACE -D__BSD_VISIBLE -DNEED_STRTONUM -DNEED_ROUNDUP2 -DNEED_SYSCTLBYNAME -DNEED_SIN_LEN -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -Wno-shift-negative-value -Wno-unused-but-set-variable -Wno-unknown-warning-option -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-result -c humanize_number.c  -fPIC -DPIC -o .libs/humanize_number.o
> cc1: error: unrecognized command line option ‘-Wno-unknown-warning-option’ [-Werror]
> cc1: all warnings being treated as errors
> make[4]: *** [Makefile:491: dummynet.lo] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/03/21/nextepc_0.3.10+nods-3_unstable.log

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!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Debian-mobcom-maintainers mailing list