Bug 249378 - [nfs] linker_load_file: /boot/kernel/nfslockd.ko - unsupported file type
Summary: [nfs] linker_load_file: /boot/kernel/nfslockd.ko - unsupported file type
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.1-STABLE
Hardware: Any Any
: --- Affects Many People
Assignee: Konstantin Belousov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-16 22:24 UTC by Thomas Zander
Modified: 2020-09-20 16:31 UTC (History)
3 users (show)

See Also:


Attachments
Add missing module dependency (502 bytes, text/plain)
2020-09-16 22:24 UTC, Thomas Zander
no flags Details
Add missing module dependency (892 bytes, patch)
2020-09-17 09:35 UTC, Dmitry Afanasiev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Zander freebsd_committer 2020-09-16 22:24:57 UTC
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.
Comment 1 Dmitry Afanasiev 2020-09-17 09:33:42 UTC
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
Comment 2 Dmitry Afanasiev 2020-09-17 09:35:38 UTC
Created attachment 218020 [details]
Add missing module dependency

Added xdr dependency to sys/kgssapi/gss_impl.c and sys/nlm/nlm_prot_impl.c
Comment 3 commit-hook freebsd_committer 2020-09-17 22:27:52 UTC
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
Comment 4 commit-hook freebsd_committer 2020-09-17 22:29:56 UTC
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
Comment 5 commit-hook freebsd_committer 2020-09-20 09:48:02 UTC
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