[Devel] linux-2.6.27-openvz failed to compile

Miguel Figueiredo elmig at debianpt.org
Sun Apr 5 09:35:38 PDT 2009


Hi all,

i've just got the git tree of 2.6.27 and the kernel failed to compile. It 
complained with:

kernel/pid_namespace.c: In function ‘__pid_ns_attach_task’:
kernel/pid_namespace.c:187: error: dereferencing pointer to incomplete type
kernel/pid_namespace.c:188: error: dereferencing pointer to incomplete type
make[1]: ** [kernel/pid_namespace.o] Erro 1
make: ** [kernel] Erro 2

It seems the definition of the struct kmem_cache it's only available for 
kernels compiled with SLUB. The struct it's defined on linux/slub_def.h.

Workaround: compile kernel with SLUB support instead of the default SLAB.
Fix: define/use correct header file?

Hope someone can fix this.


Best regards,

Miguel




More information about the Devel mailing list