OpenVZ Forum


Home » General » Support » Trouble compiling kernel
Trouble compiling kernel [message #20278] Fri, 14 September 2007 14:52 Go to next message
martok is currently offline  martok
Messages: 1
Registered: September 2007
Junior Member
Hello,

I am trying to compile OpenVM kernel for the first time on an x86_64 machine.
I have tried the release patch for 2.6.22 as well as the 2.6.22 git repo but
I'm getting the following error:

CC arch/x86_64/kernel/ldt.o
In file included from arch/x86_64/kernel/ldt.c:26:
include/bc/kmem.h: In function 'should_charge':
include/bc/kmem.h:47: error: dereferencing pointer to incomplete type
include/bc/kmem.h:49: error: dereferencing pointer to incomplete type
make[1]: *** [arch/x86_64/kernel/ldt.o] Error 1
make: *** [arch/x86_64/kernel] Error 2

Any help greatly appreciated. The problem appears to be with struct
kmem_cache but I don't see why it's throwing this error as ltd.c includes
slab.h where it is declared.

Thanks,
Shane
Re: Trouble compiling kernel [message #20306 is a reply to message #20278] Sat, 15 September 2007 08:58 Go to previous message
cenobite is currently offline  cenobite
Messages: 1
Registered: September 2007
Junior Member
This is a known problem when SLAB is turned on. Check out http://bugzilla.openvz.org/show_bug.cgi?id=677 for a bugfix or simply turn off SLAB Wink
Previous Topic: Iptables problem - when enabled, can't access VPSes
Next Topic: iptables LOG target in VE :: supported?
Goto Forum:
  


Current Time: Thu Jun 19 12:33:18 GMT 2025

Total time taken to generate the page: 0.02450 seconds