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 <mengel@allegheny.edu>
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

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