Ubuntu18.04编译Yocto:memfd_create重定义

/**********************************************************************
报错信息: ERROR: /mnt/hdd/home/yangzf/yocto/fsl-release-bsp/build-fb/tmp/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/util/memfd.c:43:12: error: static declaration of ‘memfd_create’ follows non-static declaration

说明:在Ubuntu 18.04上编译Yocto,出现的memfd_create重定义的问题

2018-10-9 佛山顺德 Yangzf

*********************************************************************/
一、参考文章
https://github.com/ucare-uchicago/femu/issues/2

二、解决办法
将 {yocto_path}/build-fb/tmp/work/x86_64-linux/qemu-native/2.5.0-r1/qemu-2.5.0/util/memfd.c文件中memfd_create函数名重命名为tmp_memfd_create

猜你喜欢

转载自blog.csdn.net/weixin_42421766/article/details/82982259