Matt,
I had the same problem. I was able to fix it by doing the following:
Modify the #include <linux/stddef.h> in user_offsets.c to #include <stddef.h>
I hope this is the correct way of doing this.
Siva
----- Original Message ----
From: Matthew T. Engel <[EMAIL PROTECTED]>
To: user-mode-linux-user@lists.sourceforge.net
Sent: Thursday, 21 December, 2006 8:12:35 PM
Subject: [uml-user] compile guest 2.6.18 & 2.6.18.1
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{
font-family:Arial;
color:windowtext;}
_filtered {
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{}
-->
I am trying to compile user-mode guest kernels and I keep
getting the same errors.
(for both vanilla 2.6.18 and 2.6.18.1)
#make menuconfig ARCH=um
#make linux modules ARCH=um
SYMLINK arch/um/include/kern_constants.h
SYMLINK arch/um/include/sysdep
CC arch/um/sys-i386/user-offsets.s
arch/um/sys-i386/user-offsets.c: In function âfooâ:
arch/um/sys-i386/user-offsets.c:19: warning: implicit
declaration of function âoffsetofâ
arch/um/sys-i386/user-offsets.c:19: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:20: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:21: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:22: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:23: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:24: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:25: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:26: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:27: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:28: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:29: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:30: error: expected expression
before âstructâ
arch/um/sys-i386/user-offsets.c:31: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:32: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:33: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:34: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:35: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:36: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:37: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:38: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:39: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:40: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:41: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:42: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:43: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:44: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:45: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:46: error: expected expression
before âstructâ
arch/um/sys-i386/user-offsets.c:47: error: expected
expression before âstructâ
arch/um/sys-i386/user-offsets.c:48: error: expected
expression before âstructâ
make[1]: *** [arch/um/sys-i386/user-offsets.s] Error 1
make: *** [arch/um/sys-i386/user-offsets.s] Error 2
help or suggestions much appreciated. Thanks in advance.
Matt
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download
Now! http://messenger.yahoo.com/download.php
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user