|
From: | qiaojianfeng |
Subject: | Re: [Qemu-discuss] error: ‘XFS_IOC_ZERO_RANGE’ undeclared (first use in this function) |
Date: | Tue, 19 May 2015 17:28:21 +0800 |
Hi Peter,
Thank you for the prompt response.
I finally root cause this issue, that’s because the ‘xfsprogs’ package in our system is too old. When I build and install the latest one, the issue disappears and I can compile qemu successfully.
But unfortuanately, I got an error message where I’m trying to start a vm with following command.
# qemu-system-x86_64 /var/lib/libvirt/images/jevon-opensuse-13.2-bk -smp 2 -m 2048 -nographic
$ git diff configurediff --git a/configure b/configure
index 1f0f485..979d8f3 100755
--- a/configure
+++ b/configure
@@ -2941,9 +2941,10 @@ int main(void) {
return 0;
}
EOF
- rbd_libs="-lrbd -lrados"
+ rbd_libs="-lrbd -lrados -lcephfs"
if compile_prog "" "$rbd_libs" ; then
rbd=yes
else
if test "$rbd" = "yes" ; then
feature_not_found "rados block device" "Install librbd/ceph devel"
On 19 May 2015 at 03:01, qiaojianfeng <address@hidden> wrote: > I’m not sure whether I post the issue in the right place, if not correct, > sorry for noise and please help me route this email to the right place. I've cc'd qemu-devel and the block maintainer. > I’m running into an error while I build the lastest qemu source code. The > error messages are as follows, > > block/raw-posix.c: In function ‘xfs_write_zeroes’: > > block/raw-posix.c:1025: error: ‘XFS_IOC_ZERO_RANGE’ undeclared (first use in > this function) > > block/raw-posix.c:1025: error: (Each undeclared identifier is reported only > once > > block/raw-posix.c:1025: error: for each function it appears in.) > > make: *** [block/raw-posix.o] Error 1 What system are you building this on? It looks like we think we have XFS support but your system's xfs.h doesn't have the definition of that ioctl, which is a bit odd because it's been around for years. thanks -- PMM
[Prev in Thread] | Current Thread | [Next in Thread] |