On 02/04/2012 03:46 PM, Mike Gilbert wrote:
> I have the libzfs headers in /usr/include/libzfs, which is where the ZFS
> on Linux build system puts them. My best guess is that it isn't finding
> libzfs.h, but I haven't really dug in.
> 

As it turns out, there are a few things going on here:

1. grub's configure is failing to detect libnvpair due to some breakage
upstream. See https://github.com/zfsonlinux/zfs/issues/560 .

2. getroot.c only includes libzfs.h if HAVE_LIBZFS and HAVE_LIBNVPAIR
are defined.

3. getroot.c references libzfs_handle_t if HAVE_LIBZFS is set, but does
not look at HAVE_LIBNVPAIR.

So, getroot.c is trying to use a ZFS structure without including the ZFS
header(s).

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to