免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: ShadowStar
打印 上一主题 下一主题

[网络管理] ipp2p模块——0.99.17 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2008-11-09 10:57 |只看该作者
我电脑里有0.99.16,想装0.99.17
如何才能确保加载的是新版本的。

论坛徽章:
0
12 [报告]
发表于 2008-11-09 14:33 |只看该作者
我在编译0.99.16的时候遇到了类似上面的问题呢

论坛徽章:
0
13 [报告]
发表于 2008-11-09 21:15 |只看该作者
  为什么不要原来的贴更新了?

论坛徽章:
0
14 [报告]
发表于 2008-11-13 18:42 |只看该作者
由于没有看到有关安装文档,编译出错,请有经验有朋友提示一下,谢谢!
  1. # patch -p1 < /root/ipp2p-0.99.17/patch.diff
  2. can't find file to patch at input line 3
  3. Perhaps you used the wrong -p or --strip option?
  4. The text leading up to this was:
  5. --------------------------
  6. |--- linux/include/net/netfilter/nf_conntrack.h.orig    2008-10-17 16:15:34.000000000 +0800
  7. |+++ linux/include/net/netfilter/nf_conntrack.h 2008-10-17 16:14:51.000000000 +0800
  8. --------------------------
  9. File to patch:
  10. Skip this patch? [y]
  11. Skipping patch.
  12. 1 out of 1 hunk ignored
  13. [root@fw01 SOURCES]# patch -p1 < /root/ipp2p-0.99.17/patch.diff
  14. can't find file to patch at input line 3
  15. Perhaps you used the wrong -p or --strip option?
  16. The text leading up to this was:
  17. --------------------------
  18. |--- linux/include/net/netfilter/nf_conntrack.h.orig    2008-10-17 16:15:34.000000000 +0800
  19. |+++ linux/include/net/netfilter/nf_conntrack.h 2008-10-17 16:14:51.000000000 +0800
  20. --------------------------
  21. File to patch: /root/ipp2p-0.99.17
  22. patch: **** File /root/ipp2p-0.99.17 is not a regular file -- can't patch
复制代码

论坛徽章:
0
15 [报告]
发表于 2008-11-13 21:59 |只看该作者

回复 #1 ShadowStar 的帖子

这个模块在rhel5.2上编译有问题

论坛徽章:
0
16 [报告]
发表于 2008-11-14 20:08 |只看该作者
我的是centos 5.2,出现问题,还要好好看看文章,如果不行,再退回5.0试试

论坛徽章:
0
17 [报告]
发表于 2008-11-19 11:10 |只看该作者

求助安装不成功,提示如下

[root@sunclinux ipp2p-0.99.17]# patch -p1 < ./patch.diff
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- linux/include/net/netfilter/nf_conntrack.h.orig    2008-10-17 16:15:34.000000000 +0800
|+++ linux/include/net/netfilter/nf_conntrack.h 2008-10-17 16:14:51.000000000 +0800
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
[root@sunclinux ipp2p-0.99.17]# make
make -C /lib/modules/2.6.18-8.el5/build M=/tmp/ipp2p-0.99.17 modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-8.el5-i686'
  CC [M]  /tmp/ipp2p-0.99.17/ipt_ipp2p.o
In file included from /tmp/ipp2p-0.99.17/ipt_ipp2p.c:3:
include/net/netfilter/nf_conntrack_core.h:42: 警告:‘struct nf_conntrack_tuple’ 在形参表内部声明
include/net/netfilter/nf_conntrack_core.h:42: 警告:它的作用域仅限于此定义或声明,这可能并不是您想要的
include/net/netfilter/nf_conntrack_core.h:48: 警告:‘struct nf_conntrack_tuple’ 在形参表内部声明
include/net/netfilter/nf_conntrack_core.h:53: 警告:‘struct nf_conn’ 在形参表内部声明
include/net/netfilter/nf_conntrack_core.h:53: 警告:‘struct nf_conntrack_tuple’ 在形参表内部声明
include/net/netfilter/nf_conntrack_core.h: 在函数 ‘nf_conntrack_confirm’ 中:
include/net/netfilter/nf_conntrack_core.h:64: 错误:隐式声明函数 ‘nf_ct_is_confirmed’
include/net/netfilter/nf_conntrack_core.h:66: 错误:隐式声明函数 ‘nf_ct_deliver_cached_events’
/tmp/ipp2p-0.99.17/ipt_ipp2p.c: 在顶层:
/tmp/ipp2p-0.99.17/ipt_ipp2p.c:24: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘match’
/tmp/ipp2p-0.99.17/ipt_ipp2p.c:128: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘checkentry’
/tmp/ipp2p-0.99.17/ipt_ipp2p.c:139: 错误:‘match’ 未声明 (不在函数内)
/tmp/ipp2p-0.99.17/ipt_ipp2p.c:142: 错误:‘checkentry’ 未声明 (不在函数内)
/tmp/ipp2p-0.99.17/ipt_ipp2p.c: 在函数 ‘init’ 中:
/tmp/ipp2p-0.99.17/ipt_ipp2p.c:148: 错误:隐式声明函数 ‘need_conntrack’
make[2]: *** [/tmp/ipp2p-0.99.17/ipt_ipp2p.o] 错误 1
make[1]: *** [_module_/tmp/ipp2p-0.99.17] 错误 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-8.el5-i686'
make: *** [ipt_ipp2p.ko] 错误 2
[root@sunclinux ipp2p-0.99.17]#

论坛徽章:
0
18 [报告]
发表于 2008-12-14 00:03 |只看该作者
出错了,请老大指点;
patch -p1 </usr/src/ipp2p-0.99.17/patch.diff
patching file include/net/netfilter/nf_conntrack.h
Hunk #1 FAILED at 123.
1 out of 1 hunk FAILED -- saving rejects to file include/net/netfilter/nf_conntrack.h.rej

proxy:/usr/src/linux# more include/net/netfilter/nf_conntrack.h.rej
***************
*** 123,128 ****
  #ifdef CONFIG_NF_CONNTRACK_SECMARK
        u_int32_t secmark;
  #endif
        /* Storage reserved for other modules: */
        union nf_conntrack_proto proto;

--- 123,131 ----
  #ifdef CONFIG_NF_CONNTRACK_SECMARK
        u_int32_t secmark;
  #endif
+
+       u_int32_t ipp2p;
+
        /* Storage reserved for other modules: */
        union nf_conntrack_proto proto;

论坛徽章:
1
2015年亚洲杯之韩国
日期:2015-04-24 09:07:02
19 [报告]
发表于 2008-12-14 07:38 |只看该作者
不懂 。。。努力学习中

论坛徽章:
0
20 [报告]
发表于 2008-12-14 17:04 |只看该作者
我是在debian sarge 2.6.18-6内核下,也出错了;
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP