qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-commits] [COMMIT 74d753a] linux-user: strace now handles guest


From: Martin Mohring
Subject: Re: [Qemu-commits] [COMMIT 74d753a] linux-user: strace now handles guest stringscorrectly [v2]
Date: Wed, 17 Jun 2009 14:22:52 +0200
User-agent: Thunderbird 2.0.0.19 (X11/20081227)

Laurent Desnogues wrote:
> On Wed, Jun 17, 2009 at 9:18 AM, Riku Voipio<address@hidden> 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.
>>     
>
> I got something different on my CentOS 5.3 x86_64:
>
> /usr/include/linux/futex.h:108: error: expected ‘)’ before ‘*’ token
> /usr/include/linux/futex.h:112: error: expected ‘)’ before ‘*’ token
>
> Apparently it lacks u32 definition.
>
>
> Laurent
>   
I did some bigger compile test after the big user mode patch pull from
yesterday for all the patches Riku and me had collected in the past
weeks. I applied already the "__user patch". Also I had to disable
"-Werror" option, because there are still too much warnings inside now
causing an error.

Results:

CentOS 5 / RHEL 5 (i586/x86_64): - CentOS 5 was already reported

> In file included from
> /usr/src/redhat/BUILD/qemu-0.11git2009.06.16.1935/linux-user/strace.c:12:
> /usr/include/linux/futex.h:96: error: expected ')' before '*' token
> /usr/include/linux/futex.h:100: error: expected ')' before '*' token

Debian Etch/Lenny (i586/x86_64): builds

Fedora 9/10 (i586/x86_64): builds

SLES 11/openSUSE 11.0/openSUSE 11.1 (i586/x86_64): builds

Ubuntu 8.10/9.04 (i586/x86_64): builds


Regards, Martin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]