I have struck a few problems compiling latest git (as of a few hours ago). Some of the problems are due to the sanitization of kernel headers, where it seems some openvz definitions have escaped out of the #ifdef __KERNEL__ clause. Patch for those:
--- linux-2.6.24-openvz/include/linux/capability.h.old 2008-02-07 14:51:17.000000000 +0100 +++ linux-2.6.24-openvz/include/linux/capability.h 2008-02-07 16:57:20.000000000 +0100 @@ -15,7 +15,10 @@ #include <linux/types.h> #include <linux/compiler.h> + +#ifdef __KERNEL__ #include <linux/spinlock.h> +#endif struct task_struct; --- linux-2.6.24-openvz/include/linux/if_tun.h.old 2008-02-07 14:51:17.000000000 +0100 +++ linux-2.6.24-openvz/include/linux/if_tun.h 2008-02-07 17:16:16.000000000 +0100 @@ -18,15 +18,15 @@ #ifndef __IF_TUN_H #define __IF_TUN_H -#include <linux/skbuff.h> -#include <linux/if_ether.h> -#include <linux/netdevice.h> - /* Uncomment to enable debugging */ /* #define TUN_DEBUG 1 */ #ifdef __KERNEL__ +#include <linux/skbuff.h> +#include <linux/if_ether.h> +#include <linux/netdevice.h> + #ifdef TUN_DEBUG #define DBG if(tun->debug)printk #define DBG1 if(debug==2)printk @@ -60,6 +60,12 @@ #endif }; +extern int tun_net_open(struct net_device *dev); +extern int tun_chr_open(struct inode *inode, struct file * file); +extern void tun_net_init(struct net_device *dev); +extern void tun_setup(struct net_device *dev); +extern struct list_head tun_dev_list; + #endif /* __KERNEL__ */ /* Read queue size */ @@ -97,10 +103,4 @@ }; #define TUN_PKT_STRIP 0x0001 -extern int tun_net_open(struct net_device *dev); -extern int tun_chr_open(struct inode *inode, struct file * file); -extern void tun_net_init(struct net_device *dev); -extern void tun_setup(struct net_device *dev); -extern struct list_head tun_dev_list; - #endif /* __IF_TUN_H */ However, now I'm stuck at this one: ERROR: "sys_open" [kernel/cpt/vzrst.ko] undefined! ERROR: "sys_open" [kernel/cpt/vzcpt.ko] undefined! make[1]: *** [__modpost] Error 1 make: *** [modules] Error 2 + exit 1 I'd really like some help. /Benny _______________________________________________ Users mailing list [email protected] https://openvz.org/mailman/listinfo/users
