depmod/modprobe failures in 2.3.23 -- FIX

BJerrick@easystreet.com
Sun, 24 Oct 1999 07:23:31 -0700


depmod -a and certain modprobes fail in 2.3.23, with "Unresolved symbols".
The fix is to add EXPORT_SYMBOL()'s to kernel/ksyms.c; a diff is below.

The following modules need console_loglevel (ref'd by BUG() macro):

fs/lockd.o
fs/minix.o
fs/fat.o
fs/nfs.o
fs/nfsd.o
fs/ufs.o
fs/romfs.o
misc/sound.o

The following need console_loglevel and __get_pages (ref'd by
page_cache_alloc() macro):

fs/fat.o
fs/nfs.o

These are probably not complete lists.

The following diff fixes the problem; it's against linux-2.3.23 from
linux.kernel.org . Expect an offset of 4 lines (my RCS stuff has
been elided):

--- kernel/ksyms.c 1999/10/24 11:46:53 1.1
+++ kernel/ksyms.c 1999/10/24 11:54:52
@@ -92,6 +97,7 @@

/* internal kernel memory management */
EXPORT_SYMBOL(__get_free_pages);
+EXPORT_SYMBOL(__get_pages);
EXPORT_SYMBOL(free_pages);
EXPORT_SYMBOL(__free_page);
EXPORT_SYMBOL(kmem_find_general_cachep);
@@ -257,6 +263,7 @@
EXPORT_SYMBOL(tty_get_baud_rate);
EXPORT_SYMBOL(do_SAK);
EXPORT_SYMBOL(console_print);
+EXPORT_SYMBOL(console_loglevel);

/* filesystem registration */
EXPORT_SYMBOL(register_filesystem);

Bruce Jerrick
Portland, Oregon, USA
email: bjerrick@easystreet.com

-
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/