qemu源码编译,make的时候出这些错,如何解决?

gcc -Wall -O2 -g -fno-strict-aliasing -I. -I/home/virtuoso/virtuoso-master/qemu-0.9.1 -MMD -MP -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/home/virtuoso/virtuoso-master/qemu-0.9.1/slirp -DQEMU_IMG -c -o qemu-img-block-raw-posix.o block-raw-posix.c
block-raw-posix.c:242: error: SIGUSR2' undeclared here (not in a function)
block-raw-posix.c: In functionqemu_aio_init':
block-raw-posix.c:264: error: storage size of 'act' isn't known
block-raw-posix.c:268: warning: implicit declaration of function sigfillset'
block-raw-posix.c:271: warning: implicit declaration of functionsigaction'
block-raw-posix.c:264: warning: unused variable act'
block-raw-posix.c: In functionqemu_aio_wait_start':
block-raw-posix.c:348: warning: implicit declaration of function sigemptyset'
block-raw-posix.c:349: warning: implicit declaration of functionsigaddset'
block-raw-posix.c:350: warning: implicit declaration of function sigprocmask'
block-raw-posix.c:350: error:SIG_BLOCK' undeclared (first use in this function)
block-raw-posix.c:350: error: (Each undeclared identifier is reported only once
block-raw-posix.c:350: error: for each function it appears in.)
block-raw-posix.c: In function qemu_aio_wait':
block-raw-posix.c:364: warning: implicit declaration of functionsigwait'
block-raw-posix.c: In function qemu_aio_wait_end':
block-raw-posix.c:370: error:SIG_SETMASK' undeclared (first use in this function)
Makefile:136: recipe for target 'qemu-img-block-raw-posix.o' failed
make: *** [qemu-img-block-raw-posix.o] Error 1

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐