Date: Thu, 23 Apr 2020 09:19:08 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: Alexander Leidinger <Alexander@leidinger.net> Cc: current@freebsd.org Subject: Re: nfslockd kernel module fails to load Message-ID: <20200423061908.GE2522@kib.kiev.ua> In-Reply-To: <20200423080809.Horde.Bo3hS63ATAG-0MzxdGgLyhI@webmail.leidinger.net> References: <20200423080809.Horde.Bo3hS63ATAG-0MzxdGgLyhI@webmail.leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 @@ -2410,6 +2410,7 @@ 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200423061908.GE2522>