NFSSERVER is strange, now?

Norikatsu Shigemura nork at FreeBSD.org
Sun Feb 14 08:03:53 UTC 2010


Hi.

	I noticed that I can't kldload nfsserver.ko like following:

on boot(rc script)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Clearing /tmp.
link_elf_obj: symbol sysctl__vfs_nfs_children undefined
linker_load_file: Unsupported file type
kldload: 
can't load nfsserver
: 
Exec format error
/etc/rc: WARNING: Unable to load kernel module nfsserver
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

	So I added following line and recompile:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--- src/sys/nfsserver/nfs_srvsubs.c.orig  2009-07-01 10:32:48.651174000 +0900
+++ src/sys/nfsserver/nfs_srvsubs.c       2010-02-14 11:46:57.522314345 +0900
@@ -558,6 +558,7 @@
 
 /* So that loader and kldload(2) can find us, wherever we are.. */
 MODULE_VERSION(nfsserver, 1);
+MODULE_DEPEND(nfsserver, nfs, 1, 1, 1);
 MODULE_DEPEND(nfsserver, nfssvc, 1, 1, 1);
 MODULE_DEPEND(nfsserver, krpc, 1, 1, 1);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

	And it's OK, but a little....

on boot(rc script)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Clearing /tmp.
can't re-use a leaf (realign_count)!
can't re-use a leaf (realign_test)!
Starting mountd.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

	How about?


More information about the freebsd-current mailing list