On Sun, Oct 01, 2006 at 09:30:54PM -0300, Rodrigo Baroni wrote:
> arch/um/sys-i386/user-offsets.c: In function ???foo???:
> arch/um/sys-i386/user-offsets.c:18: warning: implicit declaration of function 
> ???offsetof???

This turned out to be caused by making links from
/usr/include/{linux,asm} to a kernel tree, causing linux/stdlib.h to
not have a usable offsetof any more (it was inside #ifdef KERNEL,
which obviously isn't defined for this file).

The standard libc headers which are supposed to be there have a good
offsetof.
                                Jeff


> arch/um/sys-i386/user-offsets.c:18: error: expected expression before 
> ???struct???
> 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???
> make: ** [arch/um/user-offsets.s] Erro 1
> [EMAIL PROTECTED]:/usr/src/v2.6.16-uml$
> 
> Thanks,
> Rodrigo
> 
> -------------------------------------------------------------------------
> 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-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
> 

-- 
foo

-------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to