From: Olaf Dietsche <olaf.dietsche#list.linux-kernel@t-online.de>
To: neilb@cse.unsw.edu.au
Cc: nfs@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: [PATCH] 2.5.42: build nfsd as module broken
Date: Sat, 12 Oct 2002 20:18:14 +0200 [thread overview]
Message-ID: <871y6vwmft.fsf@goat.bogus.local> (raw)
# make modules_install
gives the following error:
[...]
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.5.42; fi
depmod: *** Unresolved symbols in /lib/modules/2.5.42/kernel/fs/nfsd/nfsd.o
depmod: auth_domain_find
depmod: cache_fresh
depmod: unix_domain_find
depmod: auth_domain_put
depmod: cache_flush
depmod: cache_unregister
depmod: add_hex
depmod: cache_check
depmod: svcauth_unix_purge
depmod: get_word
depmod: cache_clean
depmod: cache_register
depmod: auth_unix_lookup
depmod: auth_unix_add_addr
depmod: cache_init
depmod: auth_unix_forget_old
depmod: add_word
This patch adds several EXPORT_SYMBOL() to net/sunrpc/*.c. The kernel
builds and boots. I haven't tested nfsd yet.
Regards, Olaf.
diff -urN a/net/sunrpc/Makefile b/net/sunrpc/Makefile
--- a/net/sunrpc/Makefile Sat Oct 12 14:24:21 2002
+++ b/net/sunrpc/Makefile Sat Oct 12 19:37:20 2002
@@ -4,7 +4,7 @@
obj-$(CONFIG_SUNRPC) += sunrpc.o
-export-objs := sunrpc_syms.o
+export-objs := sunrpc_syms.o svcauth.o svcauth_unix.o cache.o
sunrpc-y := clnt.o xprt.o sched.o \
auth.o auth_null.o auth_unix.o \
diff -urN a/net/sunrpc/cache.c b/net/sunrpc/cache.c
--- a/net/sunrpc/cache.c Sat Oct 12 14:24:21 2002
+++ b/net/sunrpc/cache.c Sat Oct 12 18:26:05 2002
@@ -925,3 +925,14 @@
return len;
return -1;
}
+
+EXPORT_SYMBOL(cache_fresh);
+EXPORT_SYMBOL(cache_flush);
+EXPORT_SYMBOL(cache_unregister);
+EXPORT_SYMBOL(cache_check);
+EXPORT_SYMBOL(cache_clean);
+EXPORT_SYMBOL(cache_register);
+EXPORT_SYMBOL(cache_init);
+EXPORT_SYMBOL(add_word);
+EXPORT_SYMBOL(add_hex);
+EXPORT_SYMBOL(get_word);
diff -urN a/net/sunrpc/svcauth.c b/net/sunrpc/svcauth.c
--- a/net/sunrpc/svcauth.c Sat Oct 12 14:24:21 2002
+++ b/net/sunrpc/svcauth.c Sat Oct 12 19:36:38 2002
@@ -16,6 +16,7 @@
#include <linux/sunrpc/svcsock.h>
#include <linux/sunrpc/svcauth.h>
#include <linux/err.h>
+#include <linux/module.h>
#define RPCDBG_FACILITY RPCDBG_AUTH
@@ -189,3 +190,6 @@
rv = auth_domain_lookup(&ad, 0);
return rv;
}
+
+EXPORT_SYMBOL(auth_domain_find);
+EXPORT_SYMBOL(auth_domain_put);
diff -urN a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.c
--- a/net/sunrpc/svcauth_unix.c Sat Oct 12 14:24:21 2002
+++ b/net/sunrpc/svcauth_unix.c Sat Oct 12 18:25:16 2002
@@ -5,6 +5,7 @@
#include <linux/sunrpc/svcsock.h>
#include <linux/sunrpc/svcauth.h>
#include <linux/err.h>
+#include <linux/module.h>
#define RPCDBG_FACILITY RPCDBG_AUTH
@@ -462,3 +463,8 @@
.release = svcauth_unix_release,
};
+EXPORT_SYMBOL(unix_domain_find);
+EXPORT_SYMBOL(auth_unix_lookup);
+EXPORT_SYMBOL(auth_unix_add_addr);
+EXPORT_SYMBOL(auth_unix_forget_old);
+EXPORT_SYMBOL(svcauth_unix_purge);
next reply other threads:[~2002-10-12 18:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-12 18:18 Olaf Dietsche [this message]
2002-10-12 18:26 ` Alexander Viro
2002-10-12 23:51 ` Neil Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871y6vwmft.fsf@goat.bogus.local \
--to=olaf.dietsche#list.linux-kernel@t-online.de \
--cc=linux-kernel@vger.kernel.org \
--cc=neilb@cse.unsw.edu.au \
--cc=nfs@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®