分类: LINUX
2009-03-16 19:22:28
chinaunix网友2009-07-04 08:33:45
参考一篇英文文档的说明: * notice do not patch the patch "iptables-1.4-for-kernel-2.6.20forward-layer7-2.20.patch" for iptables 1.4.1.1 and newer. if you do that there is an error will be appear: libipt_layer7.c: In function 'help': libipt_layer7.c:41: error: 'IPTABLES_VERSION' undeclared (first use in this function) libipt_layer7.c:41: error: (Each undeclared identifier is reported only once libipt_layer7.c:41: error: for each function it appears in.)
chinaunix网友2009-07-04 08:32:28
呵呵,这一步开始按他的步骤弄了很久,iptables都make不过去,后来重新解压一份iptables安装包,手动复制libxt_layer7.c libxt_layer7.man 这两个文件拷贝到/usr/src/iptables-1.4.2/extensions目录下再编译,就OK了
chinaunix网友2009-07-03 17:25:10
3、进入到iptables1.4.2源码目录执行以下命令给iptables1.4.2打补丁,由于没有针对我的2.6.25的补丁,所以就装了最新的2.6.20,其他版本的补丁没有试过 patch -p1 < ../netfilter-layer7-v2.20/iptables-1.4-for-kernel-2.6.20forward-layer7-2.20.patch 你上面这一步有些多余了,而且执行了这一步,make的时候会报错: libipt_layer7.c: In function 'help': libipt_layer7.c:41: error: 'IPTABLES_VERSION' undeclared (first use in this function) libipt_layer7.c:41: error: (Each undeclared identifier is reported only once libipt_layer7.c:41: error: for each function it appears in.)