CURRENT: ld: error: undefined symbol: zpool_open

From: FreeBSD User <freebsd_at_walstatt-de.de>
Date: Mon, 12 Feb 2024 22:22:51 UTC
Hello,

recent CURRENT (last commit 57e27ff07aff35289892f79288bebf76a3c31fec (HEAD -> main,
origin/main, origin/HEAD)) sources won't compile (ZFS staitcally compiled into kernel, if this
is of importance). Compiling world and kernel from scratch (make cleandir issued) results in a
linker error: 

[...]
===> stand/i386/pmbr (all)
--- all_subdir_rescue ---
ld: error: undefined symbol: libzfs_init
>>> referenced by _$$hide$$ zfsbootcfg.lo lzbe_pair.c
>>>               zfsbootcfg.lo:(_$$hide$$ zfsbootcfg.lo lzbe_set_boot_device)
>>> referenced by _$$hide$$ zfsbootcfg.lo lzbe_pair.c
>>>               zfsbootcfg.lo:(_$$hide$$ zfsbootcfg.lo lzbe_get_boot_device)
>>> referenced by _$$hide$$ zfsbootcfg.lo lzbe_pair.c
>>>               zfsbootcfg.lo:(_$$hide$$ zfsbootcfg.lo lzbe_nvlist_get)
>>> referenced 1 more times

ld: error: undefined symbol: zpool_open
>>> referenced by _$$hide$$ zfsbootcfg.lo lzbe_pair.c
>>>               zfsbootcfg.lo:(_$$hide$$ zfsbootcfg.lo lzbe_set_boot_device)
>>> referenced by _$$hide$$ zfsbootcfg.lo lzbe_pair.c
>>>               zfsbootcfg.lo:(_$$hide$$ zfsbootcfg.lo lzbe_get_boot_device)
>>> referenced by _$$hide$$ zfsbootcfg.lo lzbe_pair.c
>>>               zfsbootcfg.lo:(_$$hide$$ zfsbootcfg.lo lzbe_nvlist_get)
>>> referenced 1 more times
>>> did you mean: mpool_open
>>> defined in: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libc.a(mpool.o)

ld: error: undefined symbol: zpool_get_bootenv
>>> referenced by _$$hide$$ zfsbootcfg.lo lzbe_pair.c
>>>               zfsbootcfg.lo:(_$$hide$$ zfsbootcfg.lo lzbe_set_boot_device)
>>> referenced by _$$hide$$ zfsbootcfg.lo lzbe_pair.c
>>>               zfsbootcfg.lo:(_$$hide$$ zfsbootcfg.lo lzbe_get_boot_device)
>>> referenced by _$$hide$$ zfsbootcfg.lo lzbe_pair.c
>>>               zfsbootcfg.lo:(_$$hide$$ zfsbootcfg.lo lzbe_nvlist_get)
>>> referenced 1 more times

Thanks in advance,

oh
-- 
O. Hartmann