[Devel] linux-2.6.27-openvz failed to compile

Kir Kolyshkin kir at openvz.org
Thu Apr 9 11:22:45 PDT 2009


Miguel Figueiredo wrote:
> 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?
>   
Currently we only support SLUB with 2.6.27, so you have to compile with 
SLUB.




More information about the Devel mailing list