From: Jeff Dike <jdike@addtoit.com>
To: Rodrigo Baroni <baroni@ime.usp.br>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] compile error: user-offsets.c
Date: Thu, 5 Oct 2006 17:59:07 -0400 [thread overview]
Message-ID: <20061005215907.GE6790@ccure.user-mode-linux.org> (raw)
In-Reply-To: <20061002003054.GA9780@baroni.homelinux.org>
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
> baroni@baroni:/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
> User-mode-linux-devel@lists.sourceforge.net
> 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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2006-10-05 22:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-02 0:30 [uml-devel] compile error: user-offsets.c Rodrigo Baroni
2006-10-05 21:59 ` Jeff Dike [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-10-02 3:54 Rodrigo Baroni
2006-10-04 0:09 Rodrigo Baroni
2006-10-04 1:51 Rodrigo Baroni
2006-10-04 19:55 Rodrigo Baroni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061005215907.GE6790@ccure.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=baroni@ime.usp.br \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox