Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669486 - =net-firewall/iptables-1.8.1[-nftables]: ../iptables/nft-shared.h:6:10: fatal error: libnftnl/rule.h: No such file or directory
Summary: =net-firewall/iptables-1.8.1[-nftables]: ../iptables/nft-shared.h:6:10: fatal...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://marc.info/?l=netfilter-devel&...
Whiteboard:
Keywords: REGRESSION
: 669498 669516 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-10-24 09:13 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2018-10-24 17:14 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,56.90 KB, text/plain)
2018-10-24 09:13 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-10-24 09:13:14 UTC
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
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-10-24 09:14:02 UTC
This commit broke USE="-nftables":

http://git.netfilter.org/iptables/commit/extensions/libxt_limit.c?id=02b80972c43d21f899c845c7fcafa4e4fb183312
Comment 2 Mike Lothian 2018-10-24 11:45:53 UTC
I can confirm the patch on the mailing list fixes the issue for me

https://marc.info/?l=netfilter-devel&m=154037552208225&q=raw
Comment 3 Larry the Git Cow gentoo-dev 2018-10-24 13:26:41 UTC
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(+)
Comment 4 Juergen Rose 2018-10-24 13:29:28 UTC
(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.
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-10-24 14:32:18 UTC
*** Bug 669498 has been marked as a duplicate of this bug. ***
Comment 6 Ben Kohler gentoo-dev 2018-10-24 17:14:04 UTC
*** Bug 669516 has been marked as a duplicate of this bug. ***