Hi guys,
I wanna compile ceph rpm packages with zfs support on Centos. Ceph version is 0.72.
1 First I install the zfs-devel, and the relevant files are under:/usr/include/libzfs/
# ls /usr/include/libzfs/
libnvpair.h libuutil.h libzfs.h linux zfeature_common.h zfs_deleg.h zfs_namecheck.h zpios-ctl.h
libuutil_common.h libuutil_impl.h libzfs_impl.h sys zfs_comutil.h zfs_fletcher.h zfs_prop.h
2 second I add ceph.spec configuration sections with --with-libzfs and LIBZFS_LIBS="/usr/include/libzfs/" flags.
3 still during the compilation I got this error as if the zfs lib is not exist:
...
cp -f ./fetch_config ./sample.fetch_config
CXX os/libos_zfs_a-ZFS.o
os/ZFS.cc:5:20: error: libzfs.h: No such file or directory
In file included from os/ZFS.cc:6:
os/ZFS.h: In constructor 'ZFS::ZFS()':
os/ZFS.h:23: error: 'NULL' was not declared in this scope
os/ZFS.cc: At global scope:
os/ZFS.cc:8: error: 'ZFS_TYPE_FILESYSTEM' was not declared in this scope
os/ZFS.cc:9: error: 'ZFS_TYPE_SNAPSHOT' was not declared in this scope
os/ZFS.cc:10: error: 'ZFS_TYPE_VOLUME' was not declared in this scope
os/ZFS.cc:11: error: 'ZFS_TYPE_DATASET' was not declared in this scope
os/ZFS.cc: In destructor 'ZFS::~ZFS()':
....
can anyone give me some advice?
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com