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

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 16 Jul 2021 19:08:35 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257222

            Bug ID: 257222
           Summary: Cannot use libzfs.h from user space programs due to
                    missing libnvpair.h and other dependencies
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs_at_FreeBSD.org
          Reporter: msl0000023508_at_gmail.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Fri Jul 16 2021 - 19:08:35 UTC

Original text of this message