Bug 257222 - Cannot use libzfs.h from user space programs due to missing libnvpair.h and other dependencies
Summary: Cannot use libzfs.h from user space programs due to missing libnvpair.h and o...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-16 19:08 UTC by WHR
Modified: 2021-07-16 20:38 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WHR 2021-07-16 19:08:35 UTC
With FreeBSD's ZFS code base base switched to OpenZFS 2, a 'libzfs.h' finally provided with the base system, apparently resolving bug #193748; however this header is not useable by default, as many of its dependencies aren't provided with base system, such as 'libnvpair.h', the first missing header. As a result, to build anything that requires libzfs.h, a full FreeBSD source code must be installed, then configure the compiler to search headers from several different locations under the FreeBSD source tree.

Please make using libzfs in FreeBSD easier, by providing the ability of including libzfs.h just from base system, without need of installing full source code and manually adding many '-I' options to compiler.