[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-commits] [COMMIT 74d753a] linux-user: strace now handles guest
From: |
malc |
Subject: |
Re: [Qemu-commits] [COMMIT 74d753a] linux-user: strace now handles guest stringscorrectly [v2] |
Date: |
Wed, 17 Jun 2009 22:43:44 +0400 (MSD) |
On Wed, 17 Jun 2009, Riku Voipio wrote:
> On Wed, Jun 17, 2009 at 02:27:06AM +0400, malc wrote:
> > On Tue, 16 Jun 2009, Anthony Liguori wrote:
> > On my system the above line causes gcc to emit:
>
> > In file included from /home/malc/x/rcs/git/qemu/linux-user/strace.c:12:
> > /usr/include/linux/futex.h:48: error: field `__user' has incomplete type
> > /usr/include/linux/futex.h:48: error: syntax error before '*' token
> > /usr/include/linux/futex.h:63: error: field `list' has incomplete type
> > /usr/include/linux/futex.h:83: error: field `__user' has incomplete type
> > /usr/include/linux/futex.h:83: error: syntax error before '*' token
> > make[1]: *** [strace.o] Error 1
>
> > Following fixes it, but i wonder if there's better way:
>
> It doesn't look like your kernel headers have been sanitized beforing
> installing.
> futex.h exposed to userspace shouldn't have __user anywhere.
>
> Previously distros did that by hand, nowadays you can do a "make
> headers_install"
> in the kernel tree itself.
FWIW adding #include <linux/compiler.h> which defines some of those also
fixes things for me.
--
mailto:address@hidden
- [Qemu-commits] [COMMIT 74d753a] linux-user: strace now handles guest stringscorrectly [v2], Anthony Liguori, 2009/06/16
- Re: [Qemu-commits] [COMMIT 74d753a] linux-user: strace now handles guest stringscorrectly [v2], malc, 2009/06/16
- Re: [Qemu-commits] [COMMIT 74d753a] linux-user: strace now handles guest stringscorrectly [v2], Anthony Liguori, 2009/06/16
- Re: [Qemu-commits] [COMMIT 74d753a] linux-user: strace now handles guest stringscorrectly [v2], Riku Voipio, 2009/06/17
- Re: [Qemu-commits] [COMMIT 74d753a] linux-user: strace now handles guest stringscorrectly [v2],
malc <=
- Re: [Qemu-commits] [COMMIT 74d753a] linux-user: strace now handles guest stringscorrectly [v2], Anthony Liguori, 2009/06/17
- Re: [Qemu-commits] [COMMIT 74d753a] linux-user: strace now handles guest stringscorrectly [v2], Riku Voipio, 2009/06/17
- Re: [Qemu-commits] [COMMIT 74d753a] linux-user: strace now handles guest stringscorrectly [v2], malc, 2009/06/17