kernel@whitestar.soark.net wrote:
>
> In 2.1.123p2 (pre 2) I'm getting unresolved symbols in the nfs modules,
> however everything works fine when compiled into the kernel..
>
> warp@agamemnon:/lib/modules/2.1.130p2-c1$ sudo depmod -ae 2.1.130p2-c1
> /lib/modules//2.1.130p2-c2/misc/sunrpc.o: unresolved symbol(s)
> kernel_thread
> /lib/modules//2.1.130p2-c2/misc/nfsd.o: unresolved symbol(s)
> do_nfsservctl
> /lib/modules//2.1.130p2-c2/misc/lockd.o: unresolved symbol(s)
> kernel_thread
> warp@agamemnon:/lib/modules/2.1.130p2-c1$
Here's a fix.
-Tom
-- Tom Eastep COMPAQ Computer Corporation Enterprise Computing Group Tandem Division tom.eastep@compaq.com --------------70D9FC84608B9297FEED6F55 Content-Type: text/plain; charset=us-ascii; name="patch-kernel_thread" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-kernel_thread"--- linux/arch/i386/kernel/i386_ksyms.c.orig Tue Nov 24 11:40:10 1998 +++ linux/arch/i386/kernel/i386_ksyms.c Tue Nov 24 13:01:50 1998 @@ -1,3 +1,5 @@ +#define __KERNEL_SYSCALLS__ + #include <linux/config.h> #include <linux/module.h> #include <linux/smp.h> @@ -8,6 +10,7 @@ #include <linux/in6.h> #include <linux/interrupt.h> #include <linux/smp_lock.h> +#include <linux/unistd.h> #include <asm/semaphore.h> #include <asm/processor.h> @@ -39,6 +42,7 @@ EXPORT_SYMBOL(local_irq_count); EXPORT_SYMBOL(enable_irq); EXPORT_SYMBOL(disable_irq); +EXPORT_SYMBOL(kernel_thread); EXPORT_SYMBOL_NOVERS(__down_failed); EXPORT_SYMBOL_NOVERS(__down_failed_interruptible);
--------------70D9FC84608B9297FEED6F55--
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/