免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2274 | 回复: 3
打印 上一主题 下一主题

[网络管理] iptables中无法编译iptables-p2p-0.3.0a的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-12-27 17:19 |只看该作者 |倒序浏览
LINUX版本:

Linux localhost.localdomain 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686 i686 i386 GNU/Linux

iptables版本:
iptables v1.3.0

现在用iptables-p2p-0.3.0a不能make ,请问有什么好的办法?

[root@localhost iptables-p2p-0.3.0a]# make
make -C iptables
make[1]: Entering directory `/usr/src/iptables-p2p-0.3.0a/iptables'
gcc -O2 -Wall -DIPTABLES_VERSION=\"1.3.0\" -I../common  -c -o libipt_p2p.o libipt_p2p.c
libipt_p2p.c:73: warning: initialization makes integer from pointer without a cast
libipt_p2p.c:73: error: initializer element is not computable at load time
libipt_p2p.c:73: error: (near initialization for â

论坛徽章:
0
2 [报告]
发表于 2006-12-27 18:07 |只看该作者
你是按照安装文档中去操作的吗
Installation
============

1. Copy the iptables headers to an appropriate place (/usr/include) or install
    the iptables-dev package if your distro has one. (see Installing iptables
    headers)

2. Run make in order to compile iptables-p2p.

3. Insert the kernel/ipt_p2p.o module directly using insmod or copy it into
    your modules directory.
        If you are using a 2.6 kernel, the module is named kernel/ipt_p2p.ko.

4. Insert the iptables library libipt_p2p.so into the iptables lib directory
    (usually /lib/iptables).


Installing iptables headers
===========================

In case the distribution you are using doesn't install all iptables headers,
you will need to copy them by hand.

iptables doesn't install all it's headers with a make install or
make install-devel. You will need to download the iptables distribution
tarball from http://www.netfilter.org and copy all files and directories
inside iptables-1.2.x/include/ to the /usr/include/.

Example:
$ cp -a iptables-1.2.9/include/* /usr/include

论坛徽章:
0
3 [报告]
发表于 2006-12-27 20:28 |只看该作者
这个做过了.

论坛徽章:
0
4 [报告]
发表于 2007-04-12 16:08 |只看该作者
英文的东西就是烦
搞个中文的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP