qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: malc <av1474@comtv.ru>
To: Riku Voipio <riku.voipio@iki.fi>
Cc: Anthony Liguori <aliguori@us.ibm.com>, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [Qemu-commits] [COMMIT 74d753a] linux-user: strace now handles guest stringscorrectly [v2]
Date: Fri, 19 Jun 2009 02:53:56 +0400 (MSD)	[thread overview]
Message-ID: <Pine.LNX.4.64.0906190253290.2865@linmac.oyster.ru> (raw)
In-Reply-To: <20090618195131.GD24046@kos.to>

On Thu, 18 Jun 2009, Riku Voipio wrote:

> On Tue, Jun 16, 2009 at 08:19:23PM -0500, Anthony Liguori wrote:
> > malc 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
> 
> > We had the same problem with usb-linux.c.  It's broken system headers,  
> > the __user stuff is supposed to get removed as part of the headers  
> > installation.
> 
> > It builds fine on my system (Fedora 10).
> 
> Howabout something like this:
> 
> commit eb8387cb0eda32a18880664eb5f0ca5c8bf05b45
> Author: Riku Voipio <riku.voipio@iki.fi>
> Date:   Thu Jun 18 22:44:31 2009 +0300
> Subject: linux-user: include futex defines directly
> 
> Since some common distributions have broken linux/futex.h, stop
> including it. Instead add the defines directly.
> 
> Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
> 
[..snip..]

Works for me.

-- 
mailto:av1474@comtv.ru

      reply	other threads:[~2009-06-18 22:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200906161934.n5GJYBvD030723@d01av04.pok.ibm.com>
     [not found] ` <Pine.LNX.4.64.0906170224150.3846@linmac.oyster.ru>
     [not found]   ` <20090617071833.GA5636@kos.to>
     [not found]     ` <761ea48b0906170032g318457e4p81d028375971f2b2@mail.gmail.com>
2009-06-17 12:41       ` [Qemu-devel] Re: [Qemu-commits] [COMMIT 74d753a] linux-user: strace now handles guest stringscorrectly [v2] Martin Mohring
     [not found]   ` <4A38449B.5050204@us.ibm.com>
2009-06-18 19:51     ` Riku Voipio
2009-06-18 22:53       ` malc [this message]

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=Pine.LNX.4.64.0906190253290.2865@linmac.oyster.ru \
    --to=av1474@comtv.ru \
    --cc=aliguori@us.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=riku.voipio@iki.fi \
    /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;
as well as URLs for NNTP newsgroup(s).