About this list Date view Thread view Subject view Author view Attachment view

From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Fri 23 Jul 2004 - 14:53:41 BST


On Fri, Jul 23, 2004 at 11:03:30PM +1200, Simon Garner wrote:
> Hi Herbert/all,
>
> I am getting the following compile error trying to build kernel 2.4.26
> with vserver 1.2.8 on my x86_64 system:
>
> In file included from /usr/src/linux-2.4.26/include/linux/vcontext.h:83,
> from /usr/src/linux-2.4.26/include/linux/vswitch.h:5,
> from vswitch.c:17:
> /usr/src/linux-2.4.26/include/asm/current.h: In function
> `stack_current':
> /usr/src/linux-2.4.26/include/asm/current.h:20: error: `THREAD_SIZE'
> undeclared (first use in this function)
> /usr/src/linux-2.4.26/include/asm/current.h:20: error: (Each undeclared
> identifier is reported only once
> /usr/src/linux-2.4.26/include/asm/current.h:20: error: for each function
> it appears in.)
>
> Little help?

the x86_64 headers seems to define THREAD_SIZE in
include/asm-x86_64/page.h where i386 does it in
include/asm-i386/processor.h, now asm/current.h
(which is included by vcontext.h) requires the
THREAD_SIZE definition, but does not include it
properly in x86_64 ...

my suggestion, add a #include <asm/page.h> either
to the include/asm-x86_64/current.h or to the
include/linux/vcontext.h before the include of
include/asm/current.h ...

HTH,
Herbert

PS: untested ...

>
> -Simon
>
> _______________________________________________
> Vserver mailing list
> Vserver_at_list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 23 Jul 2004 - 14:53:52 BST by hypermail 2.1.3