qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] virtio-9p: fix QEMU build break


From: Aneesh Kumar K.V
Subject: Re: [Qemu-devel] [PATCH] virtio-9p: fix QEMU build break
Date: Mon, 10 Oct 2011 22:05:21 +0530
User-agent: Notmuch/0.9_rc1-42-g76fdca8 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu)

On Mon, 10 Oct 2011 18:30:28 +0800, Zhi Yong Wu <address@hidden> wrote:
> qemu build break due to the redefinition of struct file_handle. My 
> qemu.git/HEAD is 8acbc9b21d757a6be4f8492e547b8159703a0547
> 
> Below is the log:
> address@hidden qemu]# make
>   CC    qapi-generated/qga-qapi-types.o
>   LINK  qemu-ga
>   CC    libhw64/9pfs/virtio-9p-handle.o
> /home/zwu/work/virt/qemu/hw/9pfs/virtio-9p-handle.c:31:8: error: redefinition 
> of "struct file_handle"
> /usr/include/bits/fcntl.h:254:8: note: originally defined here
> make[1]: *** [9pfs/virtio-9p-handle.o] Error 1
> make: *** [subdir-libhw64] Error 2
> 
> address@hidden qemu]# rpm -qf /usr/include/bits/fcntl.h
> glibc-headers-2.13.90-9.x86_64
> 

Is this a backported glibc ? On my ubuntu system glibc 2.13 doesn't
provide struct file_handle. I also checked glib repo at
http://repo.or.cz/w/glibc.git. The commit introducing struct file_handle
is 

$ git describe --contains 158648c0bdda281e252a27c0200dd0ea6f4e0215
glibc-2.14~200


> Signed-off-by: Zhi Yong Wu <address@hidden>
> ---
>  hw/9pfs/virtio-9p-handle.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/hw/9pfs/virtio-9p-handle.c b/hw/9pfs/virtio-9p-handle.c
> index 5c8b5ed..5b3a867 100644
> --- a/hw/9pfs/virtio-9p-handle.c
> +++ b/hw/9pfs/virtio-9p-handle.c
> @@ -27,7 +27,7 @@ struct handle_data {
>      int handle_bytes;
>  };
> 
> -#if __GLIBC__ <= 2 && __GLIBC_MINOR__ < 14
> +#if __GLIBC__ <= 2 && __GLIBC_MINOR__ < 13
>  struct file_handle {
>          unsigned int handle_bytes;
>          int handle_type;
> -- 

-aneesh




reply via email to

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