求助:我的ubuntu7.04无法安装cisco vpn client 4.8===

为当前最终发行版之前的所有版本提供支持
回复
belovedalan
帖子: 12
注册时间: 2007-01-02 13:24
送出感谢: 0
接收感谢: 0

求助:我的ubuntu7.04无法安装cisco vpn client 4.8===

#1

帖子 belovedalan » 2007-05-28 21:44

求助:我的ubuntu7.04无法安装cisco vpn client 4.8

出现以下错误信息

Making module
make -C /lib/modules/2.6.20-15-generic/build SUBDIRS=/home/john/MyDownloads/vpnclient modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'
CC [M] /home/john/MyDownloads/vpnclient/linuxcniapi.o
/home/john/MyDownloads/vpnclient/linuxcniapi.c:12:26: 错误: linux/config.h:No such file or directory
make[2]: *** [/home/john/MyDownloads/vpnclient/linuxcniapi.o] 错误 1
make[1]: *** [_module_/home/john/MyDownloads/vpnclient] 错误 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic'
make: *** [default] 错误 2
Failed to make module "cisco_ipsec.ko".

***求解答!!!!!!!

=========
我已经安装了
sudo apt-get install build-essential linux-headers-`uname -r`

还有打了一个补丁
vpnclient-linux-4.7.patch.txt
补丁内容如下
--- linuxcniapi.c 2005-11-12 11:53:06.000000000 -0600
+++ 2.6.14-vpnclient-linux-4.7.00.0640-linuxcniapi.c 2005-11-12 11:49:20.000000000 -0600
@@ -276,6 +276,8 @@
struct sk_buff *skb = NULL;
unsigned char *pIP = NULL, *pMac = NULL;

+ struct timeval timecount;
+
/* we need to build the actual sk_buff from the packet structure */
pBinding = (PBINDING) Binding;
lpPacketDescriptor = (LPPACKETDESCRIPTOR) Packet;
@@ -289,7 +291,10 @@
goto exit_gracefully;
}
/* move the data into the packet */
- do_gettimeofday(&skb->stamp);
+ do_gettimeofday(&timecount);
+
+ skb->tstamp.off_sec = (u32) timecount.tv_sec;
+ skb->tstamp.off_usec = (u32) timecount.tv_usec;

pIP = skb_put(skb, lpPacketDescriptor->uiPacketSize);

@@ -389,6 +394,8 @@
unsigned char *pIP = NULL, *pMac = NULL;
int tmp_rc = 0;

+ struct timeval timecount;
+
int (*tmp_InjectSend) (struct sk_buff * skb, struct net_device * dev);
tmp_InjectSend = NULL;

@@ -429,7 +436,10 @@
CniGetPacketData(Packet, 0, lpPacketDescriptor->uiPacketSize, pIP);

/* put the mac header on */
- do_gettimeofday(&skb->stamp);
+ do_gettimeofday(&timecount);
+
+ skb->tstamp.off_sec = (u32) timecount.tv_sec;
+ skb->tstamp.off_usec = (u32) timecount.tv_usec;

skb->dev = pBinding->pDevice;
yum
帖子: 15
注册时间: 2006-09-01 9:45
送出感谢: 0
接收感谢: 0

#2

帖子 yum » 2007-05-29 16:07

就用源里的那个cisco vpn 可以上去的 我就用的那个
fhqijeg
帖子: 9
注册时间: 2007-01-05 3:04
送出感谢: 0
接收感谢: 0

#3

帖子 fhqijeg » 2007-06-04 22:50

touch /lib/modules/2.6.20-15-generic/build/include/linux/config.h
pferd
帖子: 30
注册时间: 2007-05-15 6:22
送出感谢: 0
接收感谢: 0

#4

帖子 pferd » 2007-08-12 8:03

回复

回到 “老旧版本支持”