qemu-stable
[Top][All Lists]
Advanced

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

Re: [Qemu-stable] [Qemu-devel] Problem compiling qemu-2.11.1


From: Thomas Huth
Subject: Re: [Qemu-stable] [Qemu-devel] Problem compiling qemu-2.11.1
Date: Sun, 4 Mar 2018 19:21:09 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 04.03.2018 12:15, Frans de Boer wrote:
> LS,
> 
> I try to compile qemu and get the next error message:
> 
> mnt/rhome/frans-tw/data/projects/linux/kernel/qemu/qemu-2.11.1/util/memfd.c:40:12:
> error: static declaration of ‘memfd_create’ follows non-static declaration
>  static int memfd_create(const char *name, unsigned int flags)
>             ^~~~~~~~~~~~
> In file included from /usr/include/bits/mman-linux.h:115:0,
>                  from /usr/include/bits/mman.h:45,
>                  from /usr/include/sys/mman.h:41,
>                  from
> /mnt/rhome/frans-tw/data/projects/linux/kernel/qemu/qemu-2.11.1/include/sysemu/os-posix.h:29,
> 
>                  from
> /mnt/rhome/frans-tw/data/projects/linux/kernel/qemu/qemu-2.11.1/include/qemu/osdep.h:104,
> 
>                  from
> /mnt/rhome/frans-tw/data/projects/linux/kernel/qemu/qemu-2.11.1/util/memfd.c:28:
> 
> /usr/include/bits/mman-shared.h:46:5: note: previous declaration of
> ‘memfd_create’ was here
>  int memfd_create (const char *__name, unsigned int __flags) __THROW;
> 
> I use the newest Tumbleweed of openSuse with the gcc 7.3.0 compiler suite.
> 
> Suggestions?

Not sure, but it sounds like you need this patch on top:

https://git.qemu.org/?p=qemu.git;a=commitdiff;h=75e5b70e6b5dcc4f2219992

 HTH,
  Thomas



reply via email to

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