Created attachment 552684 [details] build.log x86_64-pc-linux-gnu-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.. -Wp,-MMD,./.libxt_limit.oo.d,-MT,libxt_limit.oo -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Wlogical-op -Winline -pipe -D_INIT=libxt_limit_init -DPIC -fPIC -march=native -mtune=native -O2 -pipe -o libxt_limit.oo -c libxt_limit.c; In file included from ../iptables/nft.h:5, from libxt_limit.c:18: ../iptables/nft-shared.h:6:10: fatal error: libnftnl/rule.h: No such file or directory #include <libnftnl/rule.h> ^~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [GNUmakefile:107: libxt_limit.oo] Error 1 make[2]: Leaving directory '/var/tmp/portage/net-firewall/iptables-1.8.1/work/iptables-1.8.1/extensions' make[1]: *** [Makefile:507: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-firewall/iptables-1.8.1/work/iptables-1.8.1' make: *** [Makefile:414: all] Error 2 * ERROR: net-firewall/iptables-1.8.1::gentoo failed (compile phase): * emake failed
This commit broke USE="-nftables": http://git.netfilter.org/iptables/commit/extensions/libxt_limit.c?id=02b80972c43d21f899c845c7fcafa4e4fb183312
I can confirm the patch on the mailing list fixes the issue for me https://marc.info/?l=netfilter-devel&m=154037552208225&q=raw
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=281ad1c5b4f2d41492b69aaf169f5fa6ea1ab20b commit 281ad1c5b4f2d41492b69aaf169f5fa6ea1ab20b Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2018-10-24 13:26:18 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2018-10-24 13:26:33 +0000 net-firewall/iptables: Fixed build with USE="-nftables" Closes: https://bugs.gentoo.org/669486 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 ...es-1.8.1-build_limit_without_libnftnl_fix.patch | 44 ++++++++++++++++++++++ net-firewall/iptables/iptables-1.8.1.ebuild | 2 + 2 files changed, 46 insertions(+)
(In reply to Mike Lothian from comment #2) > I can confirm the patch on the mailing list fixes the issue for me > > https://marc.info/?l=netfilter-devel&m=154037552208225&q=raw The patch worked for me as well.
*** Bug 669498 has been marked as a duplicate of this bug. ***
*** Bug 669516 has been marked as a duplicate of this bug. ***