Re: unknown symbols loading modules under 2.6.x

From: Sam Ravnborg
Date: Mon Sep 22 2003 - 11:36:43 EST


On Mon, Sep 22, 2003 at 09:18:00AM -0700, Randy.Dunlap wrote:
> On Mon, 22 Sep 2003 12:07:45 -0400 Kirk Reiser <kirk@xxxxxxxxxxxxxx> wrote:
>
> | Hello Everyone: I have been trying to hunt down the answer to
> | aproblem I am having attempting to load my modules under the 2.6.x
> | kernels. They load just fine under the 2.4.x kernels. Have there
> | been changes which need to be made to get symbols found with modprobe
> | other than the EXPORT_SYMBOL() macro? The symbols show up in the
> | modules.symbols file created by depmod. They appear to reference the
> | correct loadable module. The loadable module these symbols are
> | exported in however is comprised of two separate .o files during
> | compile. I am not sure whether that has anything to do with it or
> | not.
> |
> | If someone could give me an idea what to read to solve this I'd
> | appreciate it.
>
> Make sure that you have the current version of module-init-tools
> installed from http://www.kernel.org/pub/linux/kernel/people/rusty/modules/
> and that scripts are using them (ie, check PATH).

Also make sure that you use kbuild when compiling your module.
See Documentation/modules.txt (or Documentation/kbuild/modules.txt
in BK-latest).

Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/