Bug 144458 - [nfs] [patch] nfsd fails as a kld
Summary: [nfs] [patch] nfsd fails as a kld
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 8.0-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Rick Macklem
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-04 09:10 UTC by danny
Modified: 2011-04-11 21:14 UTC (History)
0 users

See Also:


Attachments
file.diff (381 bytes, patch)
2010-03-04 09:10 UTC, danny
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description danny 2010-03-04 09:10:03 UTC
	kldload nfsd results in:
		link_elf_obj: symbol nfsd_call_nfsd undefined

How-To-Repeat: 	kldload nfsd
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-03-04 14:08:46 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainer(s).
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-06-15 01:25:16 UTC
Author: rmacklem
Date: Tue Jun 15 00:25:04 2010
New Revision: 209191
URL: http://svn.freebsd.org/changeset/base/209191

Log:
  Add MODULE_DEPEND() macros to the experimental NFS client and
  server so that the modules will load when kernels are built with
  none of the NFS* configuration options specified. I believe this
  resolves the problems reported by PR kern/144458 and the email on
  freebsd-stable@ posted by Dmitry Pryanishnikov on June 13.
  
  Tested by:	kib
  PR:		kern/144458
  Reviewed by:	kib
  MFC after:	1 week

Modified:
  head/sys/fs/nfsclient/nfs_clport.c
  head/sys/fs/nfsserver/nfs_nfsdport.c

Modified: head/sys/fs/nfsclient/nfs_clport.c
==============================================================================
--- head/sys/fs/nfsclient/nfs_clport.c	Mon Jun 14 23:51:35 2010	(r209190)
+++ head/sys/fs/nfsclient/nfs_clport.c	Tue Jun 15 00:25:04 2010	(r209191)
@@ -1275,4 +1275,6 @@ DECLARE_MODULE(nfscl, nfscl_mod, SI_SUB_
 /* So that loader and kldload(2) can find us, wherever we are.. */
 MODULE_VERSION(nfscl, 1);
 MODULE_DEPEND(nfscl, nfscommon, 1, 1, 1);
+MODULE_DEPEND(nfscl, krpc, 1, 1, 1);
+MODULE_DEPEND(nfscl, nfssvc, 1, 1, 1);
 

Modified: head/sys/fs/nfsserver/nfs_nfsdport.c
==============================================================================
--- head/sys/fs/nfsserver/nfs_nfsdport.c	Mon Jun 14 23:51:35 2010	(r209190)
+++ head/sys/fs/nfsserver/nfs_nfsdport.c	Tue Jun 15 00:25:04 2010	(r209191)
@@ -3147,4 +3147,6 @@ DECLARE_MODULE(nfsd, nfsd_mod, SI_SUB_VF
 MODULE_VERSION(nfsd, 1);
 MODULE_DEPEND(nfsd, nfscommon, 1, 1, 1);
 MODULE_DEPEND(nfsd, nfslockd, 1, 1, 1);
+MODULE_DEPEND(nfsd, krpc, 1, 1, 1);
+MODULE_DEPEND(nfsd, nfssvc, 1, 1, 1);
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2011-03-01 15:15:42 UTC
State Changed
From-To: open->patched

committed in head (r209191)
Comment 4 Eitan Adler freebsd_committer freebsd_triage 2011-03-01 15:23:02 UTC
Responsible Changed
From-To: freebsd-fs->rmacklem

same as above
Comment 5 Rick Macklem freebsd_committer freebsd_triage 2011-04-11 21:13:12 UTC
State Changed
From-To: patched->closed



Head and stable have the patch and no longer have problems 
loading as a kld, as far as I know.