OpenVZ Forum


Home » Mailing lists » Users » git 2.6.24 compilation
git 2.6.24 compilation [message #27063] Thu, 07 February 2008 18:59 Go to next message
Benny Amorsen is currently offline  Benny Amorsen
Messages: 20
Registered: December 2006
Junior Member
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
Re: git 2.6.24 compilation [message #27084 is a reply to message #27063] Fri, 08 February 2008 14:15 Go to previous message
Dariush Pietrzak is currently offline  Dariush Pietrzak
Messages: 40
Registered: November 2007
Member
> 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

this seems to have been fixed recently, and now checkpointing
compiles on amd64 (doesn't seem to work yet though:)

venom:/home/eyck# vzctl chkpnt 32
Setting up checkpoint...
	suspend...
	dump...
Can not dump VE: Invalid argument
Error: unknown restart block ffffffff802b0f9a
Checkpointing failed
and:
CPT ERR: ffff81006ed18000,101 :unknown restart block ffffffff802b0f9a
CPT ERR: ffff81006ed19800,32 :unknown restart block ffffffff802b0f9a
CPT ERR: ffff810070d20800,64 :unknown restart block ffffffff802b0f9a

-- 
Key fingerprint = 40D0 9FFB 9939 7320 8294  05E0 BCC7 02C4 75CC 50D9
 Total Existance Failure
Previous Topic: 2.6.24 ( on amd64 )
Next Topic: 2.6.24 and fairsched syscalls
Goto Forum:
  


Current Time: Mon May 06 03:34:16 GMT 2024

Total time taken to generate the page: 0.01849 seconds