Messages in this thread Patch in this message | | | From | Andrzej Krzysztofowicz <> | Subject | [PATCH] Re: 2.3.10: unresolved symbol init_task_union | Date | Fri, 9 Jul 1999 12:32:07 +0200 (CEST) |
| |
Bernd Jucknischke <bjuckni@uni-sw.gwdg.de> wrote: > Hi there! > > I compile scsi as a module (sym53c8xx) but when doing a > "modprobe scsi_hostadapter" > I get the message: > "/lib/modules/2.3.10/scsi/scsi_mod.o: unresolved symbol init_task_union" > The symbol "init_task_union" is in /System.map. Maybe some EXPORT_SYMBOL > missing?
The following patch should fix problems with "unresolved symbols in 2.3.10 for scsi_mod, nfs and ipv6 as modules... Tested for i386, but I hope it works for all ARCHs.
Regards Andrzej
************************************************************* diff -u --recursive linux-2.3.10-pre4/arch/alpha/kernel/alpha_ksyms.c linux/arch/alpha/kernel/alpha_ksyms.c --- linux-2.3.10-pre4/arch/alpha/kernel/alpha_ksyms.c Thu Jul 8 23:27:59 1999 +++ linux/arch/alpha/kernel/alpha_ksyms.c Thu Jul 8 21:20:44 1999 @@ -8,6 +8,7 @@ #include <linux/config.h> #include <linux/module.h> #include <linux/string.h> +#include <linux/sched.h> #include <linux/user.h> #include <linux/elfcore.h> #include <linux/socket.h> @@ -108,6 +109,7 @@ /* In-kernel system calls. */ EXPORT_SYMBOL(__kernel_thread); +EXPORT_SYMBOL(init_task_union); EXPORT_SYMBOL(sys_open); EXPORT_SYMBOL(sys_dup); EXPORT_SYMBOL(sys_exit); diff -u --recursive linux-2.3.10-pre4/arch/i386/kernel/i386_ksyms.c linux/arch/i386/kernel/i386_ksyms.c --- linux-2.3.10-pre4/arch/i386/kernel/i386_ksyms.c Thu Jul 8 23:28:01 1999 +++ linux/arch/i386/kernel/i386_ksyms.c Thu Jul 8 21:20:44 1999 @@ -41,6 +41,7 @@ EXPORT_SYMBOL(disable_irq); EXPORT_SYMBOL(disable_irq_nosync); EXPORT_SYMBOL(kernel_thread); +EXPORT_SYMBOL(init_task_union); EXPORT_SYMBOL_NOVERS(__down_failed); EXPORT_SYMBOL_NOVERS(__down_failed_interruptible); diff -u --recursive linux-2.3.10-pre4/arch/m68k/kernel/m68k_ksyms.c linux/arch/m68k/kernel/m68k_ksyms.c --- linux-2.3.10-pre4/arch/m68k/kernel/m68k_ksyms.c Tue May 11 18:57:14 1999 +++ linux/arch/m68k/kernel/m68k_ksyms.c Thu Jul 8 21:20:44 1999 @@ -74,3 +74,4 @@ EXPORT_SYMBOL_NOVERS(__down_failed_interruptible); EXPORT_SYMBOL_NOVERS(__down_failed_trylock); EXPORT_SYMBOL_NOVERS(__up_wakeup); +EXPORT_SYMBOL(init_task_union); diff -u --recursive linux-2.3.10-pre4/arch/mips/kernel/mips_ksyms.c linux/arch/mips/kernel/mips_ksyms.c --- linux-2.3.10-pre4/arch/mips/kernel/mips_ksyms.c Thu Jul 8 23:28:02 1999 +++ linux/arch/mips/kernel/mips_ksyms.c Thu Jul 8 21:20:44 1999 @@ -11,6 +11,7 @@ #include <linux/config.h> #include <linux/module.h> #include <linux/string.h> +#include <linux/sched.h> #include <linux/mm.h> #include <linux/interrupt.h> #include <asm/irq.h> @@ -60,6 +61,7 @@ EXPORT_SYMBOL(enable_irq); EXPORT_SYMBOL(disable_irq); EXPORT_SYMBOL(kernel_thread); +EXPORT_SYMBOL(init_task_union); /* * Userspace access stuff. @@ -107,7 +109,6 @@ * Kernel hacking ... */ #include <asm/branch.h> -#include <linux/sched.h> int register_fpe(void (*handler)(struct pt_regs *regs, unsigned int fcr31)); int unregister_fpe(void (*handler)(struct pt_regs *regs, unsigned int fcr31)); diff -u --recursive linux-2.3.10-pre4/arch/sparc/kernel/sparc_ksyms.c linux/arch/sparc/kernel/sparc_ksyms.c --- linux-2.3.10-pre4/arch/sparc/kernel/sparc_ksyms.c Thu Jul 8 23:28:21 1999 +++ linux/arch/sparc/kernel/sparc_ksyms.c Thu Jul 8 21:20:44 1999 @@ -13,6 +13,7 @@ #include <linux/module.h> #include <linux/types.h> #include <linux/string.h> +#include <linux/sched.h> #include <linux/interrupt.h> #include <linux/in6.h> @@ -196,6 +197,7 @@ /* Should really be in linux/kernel/ksyms.c */ EXPORT_SYMBOL(dump_thread); +EXPORT_SYMBOL(init_task_union); /* prom symbols */ EXPORT_SYMBOL(idprom); diff -u --recursive linux-2.3.10-pre4/arch/sparc64/kernel/sparc64_ksyms.c linux/arch/sparc64/kernel/sparc64_ksyms.c --- linux-2.3.10-pre4/arch/sparc64/kernel/sparc64_ksyms.c Thu Jul 8 23:28:21 1999 +++ linux/arch/sparc64/kernel/sparc64_ksyms.c Thu Jul 8 21:20:44 1999 @@ -209,6 +209,7 @@ /* Should really be in linux/kernel/ksyms.c */ EXPORT_SYMBOL(dump_thread); +EXPORT_SYMBOL(init_task_union); /* math-emu wants this */ EXPORT_SYMBOL(die_if_kernel); diff -u --recursive linux-2.3.10-pre4/kernel/ksyms.c linux/kernel/ksyms.c --- linux-2.3.10-pre4/kernel/ksyms.c Thu Jul 8 23:28:39 1999 +++ linux/kernel/ksyms.c Thu Jul 8 21:20:44 1999 @@ -89,6 +89,9 @@ EXPORT_SYMBOL(exit_sighand); /* internal kernel memory management */ +EXPORT_SYMBOL(__find_get_page); +EXPORT_SYMBOL(__find_lock_page); +EXPORT_SYMBOL(add_to_page_cache_unique); EXPORT_SYMBOL(__get_free_pages); EXPORT_SYMBOL(free_pages); EXPORT_SYMBOL(__free_page); diff -u --recursive linux-2.3.10-pre4/net/netsyms.c linux/net/netsyms.c --- linux-2.3.10-pre4/net/netsyms.c Thu Jul 8 23:28:42 1999 +++ linux/net/netsyms.c Thu Jul 8 21:20:44 1999 @@ -178,7 +178,9 @@ #endif EXPORT_SYMBOL(pneigh_lookup); EXPORT_SYMBOL(pneigh_enqueue); +EXPORT_SYMBOL(neigh_create); EXPORT_SYMBOL(neigh_destroy); +EXPORT_SYMBOL(neigh_lookup); EXPORT_SYMBOL(neigh_parms_alloc); EXPORT_SYMBOL(neigh_parms_release); EXPORT_SYMBOL(neigh_rand_reach_time); ******************************************************************** -- ======================================================================= Andrzej M. Krzysztofowicz ankry@mif.pg.gda.pl phone (48)(58) 347 14 61 Faculty of Applied Phys. & Math., Technical University of Gdansk - 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/
| |