[Bug 1333] New: 1.8.2: build fails with gcc 9
bugzilla-daemon at netfilter.org
bugzilla-daemon at netfilter.org
Sun Apr 7 17:21:55 CEST 2019
https://bugzilla.netfilter.org/show_bug.cgi?id=1333
Bug ID: 1333
Summary: 1.8.2: build fails with gcc 9
Product: iptables
Version: unspecified
Hardware: x86_64
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: iptables
Assignee: netfilter-buglog at lists.netfilter.org
Reporter: kloczko.tomasz at gmail.com
[tkloczko at domek iptables-1.8.2]$ make -k V=1
make all-recursive
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/iptables-1.8.2'
Making all in libiptc
make[2]: Entering directory
'/home/tkloczko/rpmbuild/BUILD/iptables-1.8.2/libiptc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory
'/home/tkloczko/rpmbuild/BUILD/iptables-1.8.2/libiptc'
Making all in libxtables
make[2]: Entering directory
'/home/tkloczko/rpmbuild/BUILD/iptables-1.8.2/libxtables'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory
'/home/tkloczko/rpmbuild/BUILD/iptables-1.8.2/libxtables'
Making all in include
make[2]: Entering directory
'/home/tkloczko/rpmbuild/BUILD/iptables-1.8.2/include'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory
'/home/tkloczko/rpmbuild/BUILD/iptables-1.8.2/include'
Making all in utils
make[2]: Entering directory
'/home/tkloczko/rpmbuild/BUILD/iptables-1.8.2/utils'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/iptables-1.8.2/utils'
Making all in extensions
make[2]: Entering directory
'/home/tkloczko/rpmbuild/BUILD/iptables-1.8.2/extensions'
gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT
-DXTABLES_LIBDIR=\"/usr/lib64/xtables\" -DXTABLES_INTERNAL -I../include -I..
-I../include -I.. -I/usr/include/uapi -I/usr/include -I/usr/include/uapi
-I/usr/include -Wp,-MMD,./.libipt_icmp.oo.d,-MT,libipt_icmp.oo -Wall
-Waggregate-return -Wmissing-declarations -Wmissing-prototypes
-Wredundant-decls -Wshadow -Wstrict-prototypes -Wlogical-op -Winline
-pipe -D_INIT=libipt_icmp_init -DPIC -fPIC -O2 -g -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-fexceptions -fstack-protector-strong -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -o
libipt_icmp.oo -c libipt_icmp.c;
libipt_icmp.c: In function ‘type_xlate_print’:
libipt_icmp.c:239:5: error: format not a string literal and no format arguments
[-Werror=format-security]
239 | xt_xlate_add(xl, icmp_codes[i].name);
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [GNUmakefile:107: libipt_icmp.oo] Error 1
gcc -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT
-DXTABLES_LIBDIR=\"/usr/lib64/xtables\" -DXTABLES_INTERNAL -I../include -I..
-I../include -I.. -I/usr/include/uapi -I/usr/include -I/usr/include/uapi
-I/usr/include -Wp,-MMD,./.libip6t_icmp6.oo.d,-MT,libip6t_icmp6.oo -Wall
-Waggregate-return -Wmissing-declarations -Wmissing-prototypes
-Wredundant-decls -Wshadow -Wstrict-prototypes -Wlogical-op -Winline
-pipe -D_INIT=libip6t_icmp6_init -DPIC -fPIC -O2 -g -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS
-fexceptions -fstack-protector-strong -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -o
libip6t_icmp6.oo -c libip6t_icmp6.c;
libip6t_icmp6.c: In function ‘type_xlate_print’:
libip6t_icmp6.c:233:3: error: format not a string literal and no format
arguments [-Werror=format-security]
233 | xt_xlate_add(xl, type_name);
| ^~~~~~~~~~~~
libip6t_icmp6.c:242:4: error: format not a string literal and no format
arguments [-Werror=format-security]
242 | xt_xlate_add(xl, icmpv6_codes[i].name);
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [GNUmakefile:107: libip6t_icmp6.oo] Error 1
make[2]: Target 'all' not remade because of errors.
make[2]: Leaving directory
'/home/tkloczko/rpmbuild/BUILD/iptables-1.8.2/extensions'
Making all in iptables
make[2]: Entering directory
'/home/tkloczko/rpmbuild/BUILD/iptables-1.8.2/iptables'
make all-am
make[3]: Entering directory
'/home/tkloczko/rpmbuild/BUILD/iptables-1.8.2/iptables'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory
'/home/tkloczko/rpmbuild/BUILD/iptables-1.8.2/iptables'
make[2]: Leaving directory
'/home/tkloczko/rpmbuild/BUILD/iptables-1.8.2/iptables'
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/iptables-1.8.2'
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/iptables-1.8.2'
make[1]: *** [Makefile:506: all-recursive] Error 1
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/iptables-1.8.2'
make: *** [Makefile:413: all] Error 2
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20190407/8e09ee23/attachment.html>
More information about the netfilter-buglog
mailing list