Hey,
I'm writing this program which relies on libzfs.h (which is indeed installed on a base FreeBSD 13/14 system, in /usr/include/). But when compiling, it fails to find some headers (which indeed aren't installed on a base FreeBSD 13/14 system). They are the following:
Copying these files manually to /usr/include/ allows my program to compile and function perfectly.
What gives? Is this behaviour to be expected? I find it hard to imagine something that's installed on a regular FreeBSD system (libzfs.h) has some broken dependencies, so maybe I'm missing something here...
I'm writing this program which relies on libzfs.h (which is indeed installed on a base FreeBSD 13/14 system, in /usr/include/). But when compiling, it fails to find some headers (which indeed aren't installed on a base FreeBSD 13/14 system). They are the following:
Code:
libnvpair.h (from sys/contrib/openzfs/include/libnvpair.h)
ucred.h (from sys/contrib/openzfs/lib/libspl/include/ucred.h)
sys/avl_impl.h (from sys/contrib/openzfs/lib/libspl/include/sys/avl_impl.h)
sys/avl.h (from sys/contrib/openzfs/lib/libspl/include/sys/avl.h)
sys/zio_priority.h (from sys/contrib/openzfs/lib/libspl/include/sys/zio_priority.h)
sys/fs/zfs.h (from sys/contrib/openzfs/lib/libspl/include/sys/fs/zfs.h)
sys/varargs.h (from sys/contrib/openzfs/lib/libspl/include/sys/varargs.h)
sys/mnttab.h (from sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/mnttab.h)
Copying these files manually to /usr/include/ allows my program to compile and function perfectly.
What gives? Is this behaviour to be expected? I find it hard to imagine something that's installed on a regular FreeBSD system (libzfs.h) has some broken dependencies, so maybe I'm missing something here...