Welcome 微信登录

首页 / 操作系统 / Linux / Ubuntu 安装drcom报错error: ‘struct sk_buff’ has no mem

Ubuntu下用源码安装drcom时候,make报错,9.10和10.04都此问题。
  1. /tmp/drcom/drcom.c: In function ‘build_ack_skb’:
  2. /tmp/drcom/drcom.c:686: error: ‘struct sk_buff’ has no member named ‘dst’
  3. /tmp/drcom/drcom.c: In function ‘build_auth_skb’:
  4. /tmp/drcom/drcom.c:723: error: ‘struct sk_buff’ has no member named ‘dst’
  5. make[3]: *** [/tmp/drcom/drcom.o] Error 1
  6. make[2]: *** [_module_/tmp/drcom] Error 2
  7. make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-14-generic’
  8. make[1]: *** [default] Error 2
  9. make[1]: Leaving directory `/tmp/drcom’
  10. Compile drcom kernel module failed!
解决方案:编辑/kmod/drcom.c查找__ip_select_ident(iph, skb->dst, 0);
改为 __ip_select_ident(iph, skb_dst(skb), 0);Tip:一共有两处需要修改,建议额外安装dkms软件包,sudo apt-get install dkms,这样就不用每次更新内核后再手动编译drcom了<!-- AdSense Now! V1.83 --><!-- Post[count: 1] -->启动只需10秒钟 Ubuntu衍生版xPUD让你“飞”起来RHEL5.5安装Yum笔记相关资讯      ubuntu安装  Drcom 
  • Linux系统教程:如何通过代理服务  (03月17日)
  • MacBook Air 安装 Ubuntu 双系统  (01/27/2015 16:21:32)
  • Ubuntu 12.04中安装Qt SDK 1.2.1图  (11/24/2012 13:19:21)
  • Linux系统入门教程: 当使用代理服  (11/08/2015 09:04:46)
  • Ubuntu安装到移动硬盘 & grub   (02/05/2014 19:52:51)
  • Ubuntu 下安装字体的方法  (07/12/2012 08:56:50)
本文评论 查看全部评论 (0)
表情: 姓名: 字数
版权所有©石家庄振强科技有限公司2024 冀ICP备08103738号-5 网站地图