geohot / qira

QEMU Interactive Runtime Analyser
MIT License
3.95k stars 469 forks source link

Error when running install.sh #256

Closed Polydynamical closed 2 years ago

Polydynamical commented 3 years ago

When I try to build QIRA with ./install.sh, I get the following error.

util/memfd.c:43:12: error: static declaration of ‘memfd_create’ follows non-static declaration
   43 | static int memfd_create(const char *name, unsigned int flags)
      |            ^~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/mman-linux.h:113,
                 from /usr/include/x86_64-linux-gnu/bits/mman.h:34,
                 from /usr/include/x86_64-linux-gnu/sys/mman.h:41,
                 from /root/qira-1.3/tracers/qemu/qemu-latest/include/qemu/osdep.h:142,
                 from util/memfd.c:28:
/usr/include/x86_64-linux-gnu/bits/mman-shared.h:50:5: note: previous declaration of ‘memfd_create’ was here
   50 | int memfd_create (const char *__name, unsigned int __flags) __THROW;
      |     ^~~~~~~~~~~~
rjy7wb commented 3 years ago

https://blog.csdn.net/newnewman80/article/details/90175033

fixed that particular error