从源代码编译iptables会出错


1

我正在尝试编译最新的iptables 1.6,但是我收到以下错误:( ./configure没关系)然后我打电话给make:

xtables-config-parser.y:20:28: error: libnftnl/table.h: No such file or directory
xtables-config-parser.y:21:28: error: libnftnl/table.h: No such file or directory
....
NFTNL_TABLE_FAMILY undeclared 

我配置:

./configure --prefix=/usr      \
            --sbindir=/sbin    \
            --disable-nftables \
            --enable-libipq    \
            --with-xtlibdir=/lib/xtables &&
make

和make install它的美好,但是当我打电话iptables,我得到这个错误:

iptables symbol lookup error: iptables undefined symbol: iptc_ops

Debian Squeeze在VirtualBox
内核4.3.3
x86
iptables版本1.6

有关如何解决它的任何想法?


请帮助我们
— lukassz 2015年

1
如果你不提供你的机器架构,你正在运行的内核,你正在尝试编译的iptables版本,很难帮助你...
— MariusMatutiae 2015年

我有同样的错误。./configure之前提出了这个警告:WARNING: libnetfilter_conntrack not found, connlabel match will not be built
— KrisWebDev 2016年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.