qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] make error


From: Ronald Delobel
Subject: [Qemu-devel] make error
Date: Tue, 20 Feb 2018 16:40:49 +0100

Hello,

This is the error I get when building qemu-2.11.[0-1] with
gcc-7.3.0/glibc-2.27, removing the static attribute suffice to finnish the
build using the glibc provided memfd_create and qemu don't crash, but I
miss some knowledge here about what a static function really is, a kind of
private one? Shouldn't it be renamed instead and stay as static?

Just to report it.


  CC      util/qemu-thread-posix.o
  CC      util/memfd.o
util/memfd.c:40:12: error: la déclaration statique de « memfd_create » suit
une déclaration non statique
 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
/usr/local/src/qemu-2.11.1/include/sysemu/os-posix.h:29,
                 from /usr/local/src/qemu-2.11.1/include/qemu/osdep.h:104,
                 from util/memfd.c:28:
/usr/include/bits/mman-shared.h:46:5: note: la déclaration précédente de
« memfd_create » était ici
 int memfd_create (const char *__name, unsigned int __flags) __THROW;
     ^~~~~~~~~~~~
make: *** [/usr/local/src/qemu-2.11.1/rules.mak:66: util/memfd.o] Error 1


reply via email to

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