[Bug 257222] Cannot use libzfs_core from user space programs due to missing libnvpair.h and other dependencies
Date: Thu, 25 May 2023 09:03:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257222
Gleb Popov <arrowd@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |arrowd@FreeBSD.org
--- Comment #8 from Gleb Popov <arrowd@FreeBSD.org> ---
This problem is still there in 14-CURRENT. Simply including <libzfs_core.h>
results in
In file included from /usr/include/libzfs_core.h:32:
In file included from /usr/include/libnvpair.h:29:
/usr/include/sys/nvpair.h:152:45: error: unknown type name 'uint_t'
_SYS_NVPAIR_H int nvlist_alloc(nvlist_t **, uint_t, int);
^
...
/usr/include/sys/nvpair.h:171:70: error: unknown type name 'boolean_t'
_SYS_NVPAIR_H int nvlist_add_boolean_value(nvlist_t *, const char *,
boolean_t);
^
/usr/include/sys/nvpair.h:172:61: error: unknown type name 'uchar_t'; did you
mean 'wchar_t'?
_SYS_NVPAIR_H int nvlist_add_byte(nvlist_t *, const char *, uchar_t);
^
...
--
You are receiving this mail because:
You are the assignee for the bug.