Re: nfslockd kernel module fails to load

From: Konstantin Belousov <kostikbel_at_gmail.com>
Date: Thu, 23 Apr 2020 09:19:08 +0300
On Thu, Apr 23, 2020 at 08:08:09AM +0200, Alexander Leidinger wrote:
> Hi,
> 
> link_elf_obj: symbol xdr_free undefined
> linker_load_file: /boot/kernel/nfslockd.ko - unsupported file type
> KLD nfsd.ko: depends on nfslockd - not available or version mismatch
> linker_load_file: /boot/kernel/nfsd.ko - unsupported file type
> 
> The xdr kernel module is loaded.

The following should help.

diff --git a/sys/nlm/nlm_prot_impl.c b/sys/nlm/nlm_prot_impl.c
index bd0d2c80827..db3e198a4cf 100644
--- a/sys/nlm/nlm_prot_impl.c
+++ b/sys/nlm/nlm_prot_impl.c
_at__at_ -2410,6 +2410,7 _at__at_ static moduledata_t nfslockd_mod = {
 DECLARE_MODULE(nfslockd, nfslockd_mod, SI_SUB_VFS, SI_ORDER_ANY);
 
 /* So that loader and kldload(2) can find us, wherever we are.. */
+MODULE_DEPEND(nfslockd, xdr, 1, 1, 1);
 MODULE_DEPEND(nfslockd, krpc, 1, 1, 1);
 MODULE_DEPEND(nfslockd, nfscommon, 1, 1, 1);
 MODULE_VERSION(nfslockd, 1);
Received on Thu Apr 23 2020 - 04:19:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:23 UTC