Created attachment 218011 [details] Add missing module dependency In an up-to-date stable/12 kernel the nfslockd.ko can't be loaded due to a missing dependency on xdr: Sep 16 23:32:18 marvin kernel: link_elf_obj: symbol xdr_free undefined Sep 16 23:32:18 marvin kernel: linker_load_file: /boot/kernel/nfslockd.ko - unsupported file type Sep 16 23:32:18 marvin kernel: KLD nfsd.ko: depends on nfslockd - not available or version mismatch Sep 16 23:32:18 marvin kernel: linker_load_file: /boot/kernel/nfsd.ko - unsupported file type The attached patch (found on the freebsd-current mailing list back in April) fixes the problem.
After upgrade from 12-STABLE r363189 to r365632 I got same problem with module kgssapi too: Sep 17 11:40:05 sunspot kernel: link_elf_obj: symbol xdr_free undefined Sep 17 11:40:05 sunspot kernel: linker_load_file: /boot/kernel/kgssapi.ko - unsupported file type
Created attachment 218020 [details] Add missing module dependency Added xdr dependency to sys/kgssapi/gss_impl.c and sys/nlm/nlm_prot_impl.c
A commit references this bug: Author: kib Date: Thu Sep 17 22:27:08 UTC 2020 New revision: 365862 URL: https://svnweb.freebsd.org/changeset/base/365862 Log: MFC r360219: Make nfslockd depend on xdr. PR: 249378 Changes: _U stable/12/ stable/12/sys/nlm/nlm_prot_impl.c
A commit references this bug: Author: kib Date: Thu Sep 17 22:29:39 UTC 2020 New revision: 365863 URL: https://svnweb.freebsd.org/changeset/base/365863 Log: State kgssapi dependency on xdr. Submitted by: Dmitry Afanasiev PR: 249378 MFC after: 3 days Changes: head/sys/kgssapi/gss_impl.c
A commit references this bug: Author: kib Date: Sun Sep 20 09:47:29 UTC 2020 New revision: 365924 URL: https://svnweb.freebsd.org/changeset/base/365924 Log: MFC r365863: State kgssapi dependency on xdr. PR: 249378 Changes: _U stable/12/ stable/12/sys/kgssapi/gss_impl.c
*** Bug 250921 has been marked as a duplicate of this bug. ***