ubuntu系统是以桌面应用为主的linux操作系统,越来越多的用户现在已经开始使用ubuntu系统。ubuntu系统的问题都是在用户使用的过程中总结出来的,下面是ubuntu系统的用户在安装drcom时出现error的处理方法,具体内容如下所述。
Ubuntu下用源码安装drcom时候,make报错,9.10和10.04都此问题。
/tmp/drcom/drcom.c:Infunction‘build_ack_skb’:
/tmp/drcom/drcom.c:686:error:‘structsk_buff’hasnomembernamed‘dst’
/tmp/drcom/drcom.c:Infunction‘build_auth_skb’:
/tmp/drcom/drcom.c:723:error:‘structsk_buff’hasnomembernamed‘dst’
make[3]:***[/tmp/drcom/drcom.o]Error1
make[2]:***[_module_/tmp/drcom]Error2
make[2]:Leavingdirectory`/usr/src/linux-headers-2.6.32-14-generic’
make[1]:***[default]Error2
make[1]:Leavingdirectory`/tmp/drcom’
Compiledrcomkernelmodulefailed!
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
解决方案:
编辑/kmod/drcom.c
查找__ip_select_ident(iph,skb->dst,0);
改为__ip_select_ident(iph,skb_dst(skb),0);
Tip:一共有两处需要修改,建议额外安装dkms软件包,sudoapt-getinstalldkms,这样就不用每次更新内核后再手动编译drcom了。
总结:
希望本文介绍的Ubuntu系统安装drcom出现error的解决方法能够对读者有所帮助,更多有关linux系统的知识还有待于读者去探索和学习。
【编辑推荐】