linux9安装iptables-1.3.5最后一步出错
在编译安装新的iptables 时执行make BINDIR=/sbin LIBDIR=/lib MANDIR=/usr/share/man install最后报“make: *** [extensions/libipt_string_sh.o] Error 1”错误。
vi extensions/.string-test,将里面的内容注释掉就可安装上,但这时string模块不可用。
vi /usr/src/linux-2.4.20-8/include/linux/netfilter_ipv4/ipt_string.h里的内容是
#ifndef _IPT_STRING_H
#define _IPT_STRING_H
/* *** PERFORMANCE TWEAK ***
* Packet size and search string threshold,
* above which sublinear searches is used. */
#define IPT_STRING_HAYSTACK_THRESH 100
#define IPT_STRING_NEEDLE_THRESH 20
#define BM_MAX_NLEN 256
#define BM_MAX_HLEN 1024
typedef char *(*proc_ipt_search) (char *, char *, int, int);
struct ipt_string_info {
char string[BM_MAX_NLEN];
u_int16_t invert;
u_int16_t len;
};
#endif /* _IPT_STRING_H */
看不出什么错误,请大家帮忙!!如何安装上string模块?
用的补丁是patch-o-matic-ng-20050918.tar.bz2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
O,2.4.20的核,用太高版本的iptables问题还是多多啊
那把libipt_string.c换个1.3.2(1.3.0?)的,或者换个低版本的iptables吧
没办法,只有那个 patch 的 userspace 才能和 RH9 的 kernelspace 配套
高版本内核的 kernelspace 换了另一种机制,高版本的 POM 也相应变化很多结构体
libipt_string.c里面使用的结构与ipt_string.h定义的不一样,如果你对netfilter模块还比较熟,自己手动改一下让他们匹配:),不过可能函数也不一样就麻烦了,(曾经我就这么干过)
另外你下载最新的pom补上应该没问题,2005年9月的似乎太旧了
从结果来看的确是很多变量都不匹配,是不是1.3.5不支持string模块阿,别的模块都正常。
[root@localhost root]# find / -name ipt_string.h
find: /proc/1931/fd: 没有那个文件或目录
/usr/src/linux-2.4.20-8/include/linux/netfilter_ipv4/ipt_string.h
/usr/src/patch-o-matic-ng-20050918/patchlets/string/linux/include/linux/netfilter_ipv4/ipt_string.h
[root@localhost root]# find / -name ipt_string.c
find: /proc/1931/fd: 没有那个文件或目录
/usr/src/linux-2.4.20-8/net/ipv4/netfilter/ipt_string.c
/usr/src/patch-o-matic-ng-20050918/patchlets/string/linux/net/ipv4/netfilter/ipt_string.c
如何找到匹配的版本?
打过string 的 patch了,基本都是按添加模块HOWTO来做的。
使用make BINDIR=/sbin LIBDIR=/lib MANDIR=/usr/share/man KERNEL_DIR=/usr/src/linux-2.4 install结果也是一样的
很明显string的版本不匹配
/include/linux/netfilter_ipv4/ipt_string.h
/net/ipv4/netfilter/ipt_string.c
这两个文件找个匹配的版本,上面明显结构的定义都差了很多东西
编译 iptables 的时候,kernel 和 iptables 都打过 string 的 patch 吗?
感觉好像是与 kernel 源码树没有关联上
建议使用 KERNEL_DIR= 参数
[root@localhost iptables-1.3.5]# make BINDIR=/sbin LIBDIR=/lib MANDIR=/usr/share/man install
Rules.make:29: target `extensions/libipt_comment.d' given more than once in the same rule.
Rules.make:33: target `extensions/libipt_comment.so' given more than once in the same rule.
Making dependencies: please wait...
Rules.make:29: target `extensions/libipt_comment.d' given more than once in the same rule.
Rules.make:33: target `extensions/libipt_comment.so' given more than once in the same rule.
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_ah_sh.o -c extensions/libipt_ah.c
ld -shared -o extensions/libipt_ah.so extensions/libipt_ah_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_addrtype_sh.o -c extensions/libipt_addrtype.c
ld -shared -o extensions/libipt_addrtype.so extensions/libipt_addrtype_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_comment_sh.o -c extensions/libipt_comment.c
ld -shared -o extensions/libipt_comment.so extensions/libipt_comment_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_connlimit_sh.o -c extensions/libipt_connlimit.c
ld -shared -o extensions/libipt_connlimit.so extensions/libipt_connlimit_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_connmark_sh.o -c extensions/libipt_connmark.c
ld -shared -o extensions/libipt_connmark.so extensions/libipt_connmark_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_conntrack_sh.o -c extensions/libipt_conntrack.c
ld -shared -o extensions/libipt_conntrack.so extensions/libipt_conntrack_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_dscp_sh.o -c extensions/libipt_dscp.c
extensions/libipt_dscp_helper.c:69: warning: `dscp_to_name' defined but not used
ld -shared -o extensions/libipt_dscp.so extensions/libipt_dscp_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_ecn_sh.o -c extensions/libipt_ecn.c
ld -shared -o extensions/libipt_ecn.so extensions/libipt_ecn_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_esp_sh.o -c extensions/libipt_esp.c
ld -shared -o extensions/libipt_esp.so extensions/libipt_esp_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_hashlimit_sh.o -c extensions/libipt_hashlimit.c
ld -shared -o extensions/libipt_hashlimit.so extensions/libipt_hashlimit_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_helper_sh.o -c extensions/libipt_helper.c
ld -shared -o extensions/libipt_helper.so extensions/libipt_helper_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_icmp_sh.o -c extensions/libipt_icmp.c
ld -shared -o extensions/libipt_icmp.so extensions/libipt_icmp_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_iprange_sh.o -c extensions/libipt_iprange.c
ld -shared -o extensions/libipt_iprange.so extensions/libipt_iprange_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_length_sh.o -c extensions/libipt_length.c
ld -shared -o extensions/libipt_length.so extensions/libipt_length_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_limit_sh.o -c extensions/libipt_limit.c
ld -shared -o extensions/libipt_limit.so extensions/libipt_limit_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_mac_sh.o -c extensions/libipt_mac.c
ld -shared -o extensions/libipt_mac.so extensions/libipt_mac_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_mark_sh.o -c extensions/libipt_mark.c
ld -shared -o extensions/libipt_mark.so extensions/libipt_mark_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_multiport_sh.o -c extensions/libipt_multiport.c
ld -shared -o extensions/libipt_multiport.so extensions/libipt_multiport_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_owner_sh.o -c extensions/libipt_owner.c
ld -shared -o extensions/libipt_owner.so extensions/libipt_owner_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_physdev_sh.o -c extensions/libipt_physdev.c
ld -shared -o extensions/libipt_physdev.so extensions/libipt_physdev_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_pkttype_sh.o -c extensions/libipt_pkttype.c
ld -shared -o extensions/libipt_pkttype.so extensions/libipt_pkttype_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_policy_sh.o -c extensions/libipt_policy.c
ld -shared -o extensions/libipt_policy.so extensions/libipt_policy_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_realm_sh.o -c extensions/libipt_realm.c
ld -shared -o extensions/libipt_realm.so extensions/libipt_realm_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_rpc_sh.o -c extensions/libipt_rpc.c
ld -shared -o extensions/libipt_rpc.so extensions/libipt_rpc_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_sctp_sh.o -c extensions/libipt_sctp.c
ld -shared -o extensions/libipt_sctp.so extensions/libipt_sctp_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_standard_sh.o -c extensions/libipt_standard.c
ld -shared -o extensions/libipt_standard.so extensions/libipt_standard_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_state_sh.o -c extensions/libipt_state.c
ld -shared -o extensions/libipt_state.so extensions/libipt_state_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_tcp_sh.o -c extensions/libipt_tcp.c
ld -shared -o extensions/libipt_tcp.so extensions/libipt_tcp_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_tcpmss_sh.o -c extensions/libipt_tcpmss.c
ld -shared -o extensions/libipt_tcpmss.so extensions/libipt_tcpmss_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_tos_sh.o -c extensions/libipt_tos.c
ld -shared -o extensions/libipt_tos.so extensions/libipt_tos_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_ttl_sh.o -c extensions/libipt_ttl.c
ld -shared -o extensions/libipt_ttl.so extensions/libipt_ttl_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_udp_sh.o -c extensions/libipt_udp.c
ld -shared -o extensions/libipt_udp.so extensions/libipt_udp_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_unclean_sh.o -c extensions/libipt_unclean.c
ld -shared -o extensions/libipt_unclean.so extensions/libipt_unclean_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_CLASSIFY_sh.o -c extensions/libipt_CLASSIFY.c
ld -shared -o extensions/libipt_CLASSIFY.so extensions/libipt_CLASSIFY_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_CONNMARK_sh.o -c extensions/libipt_CONNMARK.c
ld -shared -o extensions/libipt_CONNMARK.so extensions/libipt_CONNMARK_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_DNAT_sh.o -c extensions/libipt_DNAT.c
ld -shared -o extensions/libipt_DNAT.so extensions/libipt_DNAT_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_DSCP_sh.o -c extensions/libipt_DSCP.c
extensions/libipt_dscp_helper.c:69: warning: `dscp_to_name' defined but not used
ld -shared -o extensions/libipt_DSCP.so extensions/libipt_DSCP_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_ECN_sh.o -c extensions/libipt_ECN.c
ld -shared -o extensions/libipt_ECN.so extensions/libipt_ECN_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_LOG_sh.o -c extensions/libipt_LOG.c
ld -shared -o extensions/libipt_LOG.so extensions/libipt_LOG_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_MARK_sh.o -c extensions/libipt_MARK.c
ld -shared -o extensions/libipt_MARK.so extensions/libipt_MARK_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_MASQUERADE_sh.o -c extensions/libipt_MASQUERADE.c
ld -shared -o extensions/libipt_MASQUERADE.so extensions/libipt_MASQUERADE_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_MIRROR_sh.o -c extensions/libipt_MIRROR.c
ld -shared -o extensions/libipt_MIRROR.so extensions/libipt_MIRROR_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_NETMAP_sh.o -c extensions/libipt_NETMAP.c
ld -shared -o extensions/libipt_NETMAP.so extensions/libipt_NETMAP_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_NFQUEUE_sh.o -c extensions/libipt_NFQUEUE.c
ld -shared -o extensions/libipt_NFQUEUE.so extensions/libipt_NFQUEUE_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_NOTRACK_sh.o -c extensions/libipt_NOTRACK.c
ld -shared -o extensions/libipt_NOTRACK.so extensions/libipt_NOTRACK_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_REDIRECT_sh.o -c extensions/libipt_REDIRECT.c
ld -shared -o extensions/libipt_REDIRECT.so extensions/libipt_REDIRECT_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_REJECT_sh.o -c extensions/libipt_REJECT.c
ld -shared -o extensions/libipt_REJECT.so extensions/libipt_REJECT_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_SAME_sh.o -c extensions/libipt_SAME.c
ld -shared -o extensions/libipt_SAME.so extensions/libipt_SAME_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_SNAT_sh.o -c extensions/libipt_SNAT.c
ld -shared -o extensions/libipt_SNAT.so extensions/libipt_SNAT_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_TARPIT_sh.o -c extensions/libipt_TARPIT.c
ld -shared -o extensions/libipt_TARPIT.so extensions/libipt_TARPIT_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_TCPMSS_sh.o -c extensions/libipt_TCPMSS.c
ld -shared -o extensions/libipt_TCPMSS.so extensions/libipt_TCPMSS_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_TOS_sh.o -c extensions/libipt_TOS.c
ld -shared -o extensions/libipt_TOS.so extensions/libipt_TOS_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_TRACE_sh.o -c extensions/libipt_TRACE.c
ld -shared -o extensions/libipt_TRACE.so extensions/libipt_TRACE_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_TTL_sh.o -c extensions/libipt_TTL.c
ld -shared -o extensions/libipt_TTL.so extensions/libipt_TTL_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_ULOG_sh.o -c extensions/libipt_ULOG.c
ld -shared -o extensions/libipt_ULOG.so extensions/libipt_ULOG_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_geoip_sh.o -c extensions/libipt_geoip.c
ld -shared -o extensions/libipt_geoip.so extensions/libipt_geoip_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_ipp2p_sh.o -c extensions/libipt_ipp2p.c
ld -shared -o extensions/libipt_ipp2p.so extensions/libipt_ipp2p_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_nth_sh.o -c extensions/libipt_nth.c
ld -shared -o extensions/libipt_nth.so extensions/libipt_nth_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_quota_sh.o -c extensions/libipt_quota.c
ld -shared -o extensions/libipt_quota.so extensions/libipt_quota_sh.o
cc -O2 -Wall -Wunused -I/usr/src/linux-2.4/include -Iinclude/ -DIPTABLES_VERSION="1.3.5" -fPIC -o extensions/libipt_string_sh.o -c extensions/libipt_string.c
extensions/libipt_string.c: In function `init':
extensions/libipt_string.c:61: structure has no member named `to_offset'
extensions/libipt_string.c:62: structure has no member named `to_offset'
extensions/libipt_string.c: In function `parse_string':
extensions/libipt_string.c:68: `IPT_STRING_MAX_PATTERN_SIZE' undeclared (first use in this function)
extensions/libipt_string.c:68: (Each undeclared identifier is reported only once
extensions/libipt_string.c:68: for each function it appears in.)
extensions/libipt_string.c:69: structure has no member named `pattern'
extensions/libipt_string.c:69: structure has no member named `pattern'
extensions/libipt_string.c:69: structure has no member named `pattern'
extensions/libipt_string.c:70: structure has no member named `patlen'
extensions/libipt_string.c: In function `parse_algo':
extensions/libipt_string.c:79: `IPT_STRING_MAX_ALGO_NAME_SIZE' undeclared (first use in this function)
extensions/libipt_string.c:80: structure has no member named `algo'
extensions/libipt_string.c:80: structure has no member named `algo'
extensions/libipt_string.c:80: structure has no member named `algo'
extensions/libipt_string.c: In function `parse_hex_string':
extensions/libipt_string.c:126: structure has no member named `pattern'
extensions/libipt_string.c:148: structure has no member named `pattern'
extensions/libipt_string.c:154: structure has no member named `pattern'
extensions/libipt_string.c:157: `IPT_STRING_MAX_PATTERN_SIZE' undeclared (first use in this function)
extensions/libipt_string.c:161: structure has no member named `patlen'
extensions/libipt_string.c: In function `parse':
extensions/libipt_string.c:184: structure has no member named `from_offset'
extensions/libipt_string.c:191: structure has no member named `to_offset'
extensions/libipt_string.c:209: structure has no member named `patlen'
extensions/libipt_string.c:209: structure has no member named `pattern'
extensions/libipt_string.c: In function `print':
extensions/libipt_string.c:299: structure has no member named `pattern'
extensions/libipt_string.c:299: structure has no member named `patlen'
extensions/libipt_string.c:301: structure has no member named `pattern'
extensions/libipt_string.c:301: structure has no member named `patlen'
extensions/libipt_string.c:304: structure has no member named `pattern'
extensions/libipt_string.c:304: structure has no member named `patlen'
extensions/libipt_string.c:306: structure has no member named `algo'
extensions/libipt_string.c:307: structure has no member named `from_offset'
extensions/libipt_string.c:308: structure has no member named `from_offset'
extensions/libipt_string.c:309: structure has no member named `to_offset'
extensions/libipt_string.c:310: structure has no member named `to_offset'
extensions/libipt_string.c: In function `save':
extensions/libipt_string.c:321: structure has no member named `pattern'
extensions/libipt_string.c:321: structure has no member named `patlen'
extensions/libipt_string.c:323: structure has no member named `pattern'
extensions/libipt_string.c:323: structure has no member named `patlen'
extensions/libipt_string.c:326: structure has no member named `pattern'
extensions/libipt_string.c:326: structure has no member named `patlen'
extensions/libipt_string.c:328: structure has no member named `algo'
extensions/libipt_string.c:329: structure has no member named `from_offset'
extensions/libipt_string.c:330: structure has no member named `from_offset'
extensions/libipt_string.c:331: structure has no member named `to_offset'
extensions/libipt_string.c:332: structure has no member named `to_offset'
extensions/libipt_string.c: At top level:
extensions/libipt_string.c:340: structure has no member named `config'
extensions/libipt_string.c:340: initializer element is not constant
extensions/libipt_string.c:340: (near initialization for `string.userspacesize')
make: *** [extensions/libipt_string_sh.o] Error 1
把错误信息贴全才有可能帮助你,make: *** 不能代表什么