[Bug 257222] Cannot use libzfs_core from user space programs due to missing libnvpair.h and other dependencies

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 25 May 2023 09:03:13 UTC

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 *,
/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.