2002-04-24 00:02:25

by ilmari

[permalink] [raw]
Subject: Unresolved symbols in 2.4.9-dj1


--
Dagfinn I. Manns?ker
aka. Ilmari


Attachments:
(No filename) (506.00 B)
config-2.5.9-dj1 (23.17 kB)
Kernel configuration
Download all attachments

2002-04-24 02:22:41

by ilmari

[permalink] [raw]
Subject: Re: Unresolved symbols in 2.4.9-dj1

[email protected] (Dagfinn Ilmari Manns?ker) writes:

> Hi,
>
> When compiling 2.5.9-dj1 with modular MD/LVM and EXT3, I got the
> following unresolved symbols:
>
> % depmod -ae -F System.map -b debian/tmp-image -r 2.5.9-dj1
> depmod: *** Unresolved symbols in
> debian/tmp-image/lib/modules/2.5.9-dj1/kernel/drivers/md/md.o
> depmod: blk_get_readahead
> depmod: *** Unresolved symbols in
> debian/tmp-image/lib/modules/2.5.9-dj1/kernel/fs/jbd/jbd.o
> depmod: exit_files
>
> Seems like some missing EXPORT_SYMBOL statements.

It worked when I added EXPORT_SYMBOL statements for these symbols to
ksyms.c. Here's the patch (I hope they're in the right locations).

--
Dagfinn I. Manns?ker
aka. Ilmari

--- kernel/ksyms.c.orig Wed Apr 24 04:17:42 2002
+++ kernel/ksyms.c Wed Apr 24 04:20:52 2002
@@ -340,6 +340,7 @@
EXPORT_SYMBOL(init_buffer);
EXPORT_SYMBOL(refile_buffer);
EXPORT_SYMBOL(wipe_partitions);
+EXPORT_SYMBOL(blk_get_readahead);

/* tty routines */
EXPORT_SYMBOL(tty_hangup);
@@ -553,6 +554,7 @@
EXPORT_SYMBOL(is_bad_inode);
EXPORT_SYMBOL(event);
EXPORT_SYMBOL(brw_page);
+EXPORT_SYMBOL(exit_files);

#ifdef CONFIG_UID16
EXPORT_SYMBOL(overflowuid);