免费注册 查看新帖 |

Chinaunix

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

[网络管理] IPP2P模块修改版,最新0.99.16 [复制链接]

论坛徽章:
0
461 [报告]
发表于 2008-05-13 20:10 |只看该作者
ba:/usr/src/ipp2p-0.99.9# make
make -C /lib/modules/2.6.21.7/build M=/usr/src/ipp2p-0.99.9 modules
make[1]: Entering directory `/usr/src/linux-2.6.21.7'

  WARNING: Symbol version dump /usr/src/linux-2.6.21.7/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /usr/src/ipp2p-0.99.9/ipt_ipp2p.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/ipp2p-0.99.9/ipt_ipp2p.mod.o
  LD [M]  /usr/src/ipp2p-0.99.9/ipt_ipp2p.ko
make[1]: Leaving directory `/usr/src/linux-2.6.21.7'
gcc -O3 -Wall -DIPTABLES_VERSION=\"1.3.8\" -I/usr/src/iptables-1.3.8/include -fPIC -c libipt_ipp2p.c
In file included from /usr/include/linux/netfilter_ipv4.h:8,
                 from /usr/include/linux/netfilter_ipv4/ip_tables.h:18,
                 from /usr/src/iptables-1.3.8/include/libiptc/libiptc.h:6,
                 from /usr/src/iptables-1.3.8/include/iptables.h:5,
                 from libipt_ipp2p.c:8:
/usr/include/linux/netfilter.h:40: error: expected specifier-qualifier-list before '__u32'
make: *** [libipt_ipp2p.so] ´íÎó 1
ba:/usr/src/ipp2p-0.99.9# gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --disable-libmudflap --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.2.3 (Debian 4.2.3-5)

以上是出错的机子

下面是同样内核同样iptables 却一点错都没有
ba1:/usr/src/ipp2p-0.99.9# make
make -C /lib/modules/2.6.21.7/build M=/usr/src/ipp2p-0.99.9 modules
make[1]: Entering directory `/usr/src/linux-2.6.21.7'

  WARNING: Symbol version dump /usr/src/linux-2.6.21.7/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /usr/src/ipp2p-0.99.9/ipt_ipp2p.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/src/ipp2p-0.99.9/ipt_ipp2p.mod.o
  LD [M]  /usr/src/ipp2p-0.99.9/ipt_ipp2p.ko
make[1]: Leaving directory `/usr/src/linux-2.6.21.7'
gcc -O3 -Wall -DIPTABLES_VERSION=\"1.3.8\" -I/usr/src/iptables-1.3.8/include -fPIC -c libipt_ipp2p.c
gcc -shared -o libipt_ipp2p.so libipt_ipp2p.o
ba1:/usr/src/ipp2p-0.99.9# gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)


很郁闷,想问一下楼主,是不是和GCC 的版本也有关系的?

论坛徽章:
0
462 [报告]
发表于 2008-05-15 16:12 |只看该作者
今天刚好有空,我把编译没出错的机器升级了gcc的版本,两台机器一样的gcc版本,但是,还是一台编译出错,一台却没有出错

论坛徽章:
0
463 [报告]
发表于 2008-05-26 16:14 |只看该作者

我没有编译成功:(

环境ubuntu 7.10  kernel : 2.6.24.4  iptables: 1.3.6
提示信息:
wanglin@wanglin-desktop:/usr/src/ipp2p-0.99.16$ sudo make
make -C /usr/src/linux M=/usr/src/ipp2p-0.99.16 modules
make[1]: Entering directory `/usr/src/linux-2.6.24.4'

  WARNING: Symbol version dump /usr/src/linux-2.6.24.4/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /usr/src/ipp2p-0.99.16/ipt_ipp2p.o
/usr/src/ipp2p-0.99.16/ipt_ipp2p.c: 在函数 ‘match’ 中:
/usr/src/ipp2p-0.99.16/ipt_ipp2p.c:842: 错误: ‘struct nf_conn’ 没有名为 ‘ipp2p’ 的成员
/usr/src/ipp2p-0.99.16/ipt_ipp2p.c:844: 错误: ‘struct nf_conn’ 没有名为 ‘ipp2p’ 的成员
/usr/src/ipp2p-0.99.16/ipt_ipp2p.c:845: 错误: ‘struct nf_conn’ 没有名为 ‘ipp2p’ 的成员
/usr/src/ipp2p-0.99.16/ipt_ipp2p.c:847: 错误: ‘struct nf_conn’ 没有名为 ‘ipp2p’ 的成员
/usr/src/ipp2p-0.99.16/ipt_ipp2p.c:878: 错误: ‘struct nf_conn’ 没有名为 ‘ipp2p’ 的成员
/usr/src/ipp2p-0.99.16/ipt_ipp2p.c:900: 错误: ‘struct nf_conn’ 没有名为 ‘ipp2p’ 的成员
make[2]: *** [/usr/src/ipp2p-0.99.16/ipt_ipp2p.o] 错误 1
make[1]: *** [_module_/usr/src/ipp2p-0.99.16] 错误 2
make[1]: Leaving directory `/usr/src/linux-2.6.24.4'

请老大给分析分析

论坛徽章:
0
464 [报告]
发表于 2008-05-26 16:59 |只看该作者
原帖由 lin_lin13 于 2008-5-26 16:14 发表
环境ubuntu 7.10  kernel : 2.6.24.4  iptables: 1.3.6
提示信息:
wanglin@wanglin-desktop:/usr/src/ipp2p-0.99.16$ sudo make
make -C /usr/src/linux M=/usr/src/ipp2p-0.99.16 modules
make[1]: Ente ...

不要使用 2.6.24 以上的内核
从 2.6.24 开始,内核结构变动很大,conntrack 和 sk_buff 都变动了很多,原来的网络程序已经不能适用
换成 2.6.23 试试

论坛徽章:
0
465 [报告]
发表于 2008-05-27 14:40 |只看该作者
原帖由 platinum 于 2008-5-26 16:59 发表

不要使用 2.6.24 以上的内核
从 2.6.24 开始,内核结构变动很大,conntrack 和 sk_buff 都变动了很多,原来的网络程序已经不能适用
换成 2.6.23 试试


我现在的系统使用的内核是2.6.24的, 你说的换成2.6.23, 我理解不太清楚。  1.  重新编译内核为2.6.23,然后系统启动时用2.6.23的内核。
2. 只是下载2.6.23的内核源码,不用编译内核,系统依旧使用2.6.24的内核。

我理解了2个意思,不知道是1 还是2 正确。
请老大明示!

论坛徽章:
0
466 [报告]
发表于 2008-05-27 14:46 |只看该作者
应该下载 2.6.23 的内核源码,照着贴子的方法装 ipp2p,然后编译出新内核,重启时选择新内核启动

论坛徽章:
0
467 [报告]
发表于 2008-05-27 15:33 |只看该作者
谢谢老大,我会努力尝试一下

论坛徽章:
0
468 [报告]
发表于 2008-06-17 17:02 |只看该作者
大哥~~照前面的说法 我FC9 kernel-2.6.25就更不可能加ipp2p模块了吗???

论坛徽章:
0
469 [报告]
发表于 2008-06-17 17:09 |只看该作者
除了对kernel有要求以外,对iptalbes有要求吗?我iptables 是1.4.1的

论坛徽章:
0
470 [报告]
发表于 2008-06-26 14:42 |只看该作者
内核:2.6.16.60
iptables:1.3.8
编译出现如此错误:

  1. In file included from /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:6:
  2. include/net/netfilter/nf_conntrack_core.h:42: warning: ‘struct nf_conntrack_tuple’ declared inside parameter list
  3. include/net/netfilter/nf_conntrack_core.h:42: warning: its scope is only this definition or declaration, which is probably not what you want
  4. include/net/netfilter/nf_conntrack_core.h:48: warning: ‘struct nf_conntrack_tuple’ declared inside parameter list
  5. include/net/netfilter/nf_conntrack_core.h:53: warning: ‘struct nf_conn’ declared inside parameter list
  6. include/net/netfilter/nf_conntrack_core.h:53: warning: ‘struct nf_conntrack_tuple’ declared inside parameter list
  7. include/net/netfilter/nf_conntrack_core.h: In function ‘nf_conntrack_confirm’:
  8. include/net/netfilter/nf_conntrack_core.h:64: warning: implicit declaration of function ‘nf_ct_is_confirmed’
  9. include/net/netfilter/nf_conntrack_core.h:66: warning: implicit declaration of function ‘nf_ct_deliver_cached_events’
  10. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c: In function ‘match’:
  11. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:815: error: storage size of ‘ctinfo’ isn’t known
  12. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:836: warning: implicit declaration of function ‘nf_ct_get’
  13. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:836: warning: assignment makes pointer from integer without a cast
  14. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:841: error: dereferencing pointer to incomplete type
  15. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:841: error: ‘IP_CT_DIR_ORIGINAL’ undeclared (first use in this function)
  16. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:841: error: (Each undeclared identifier is reported only once
  17. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:841: error: for each function it appears in.)
  18. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:841: error: dereferencing pointer to incomplete type
  19. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:841: error: ‘IP_CT_DIR_REPLY’ undeclared (first use in this function)
  20. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:842: error: dereferencing pointer to incomplete type
  21. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:844: error: dereferencing pointer to incomplete type
  22. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:845: error: dereferencing pointer to incomplete type
  23. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:847: error: dereferencing pointer to incomplete type
  24. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:847: error: dereferencing pointer to incomplete type
  25. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:847: error: dereferencing pointer to incomplete type
  26. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:878: error: dereferencing pointer to incomplete type
  27. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:900: error: dereferencing pointer to incomplete type
  28. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:815: warning: unused variable ‘ctinfo’
  29. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c: At top level:
  30. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:946: warning: initialization from incompatible pointer type
  31. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:947: warning: initialization from incompatible pointer type
  32. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c: In function ‘init’:
  33. /usr/local/ipp2p-0.99.16/ipt_ipp2p.c:962: warning: implicit declaration of function ‘need_conntrack’
  34. make[2]: *** [/usr/local/ipp2p-0.99.16/ipt_ipp2p.o] Error 1
  35. make[1]: *** [_module_/usr/local/ipp2p-0.99.16] Error 2
  36. make: *** [ipt_ipp2p.ko] Error 2
复制代码


请看下!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP