[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Symbol Versioning [Was Re: Unresolved Symbol in Module]



On Fri, 9 Mar 2001, Mark McLoughlin wrote:

> On Thu, 8 Mar 2001, Narayana, Venkat A. wrote:
> 
> > Hi,
> > I am learning to write kernel modules, and while experimenting
> > with a simple module, i got
> > " hello.o: unresolved symbol printk_Rsmp_1b7d4074" error
> > while loading this module via insmod hello.o command.
> >
> > I noticed that /proc/ksyms contains printk symbol.
> >
> > What is that i am doing which is not correct?
> > Help me out.
> 
> As other people have pointed out this has to do with versioning.
> 
> The simple answer to the question is that you need to include modversions.h
> before the header file for printk if you want the module to load into a kernel
> with CONFIG_MODVERSIONS turned on.

I believe if you *ever* have to include modversions.h explicitly something
has gone badly wrong ...

Just turn the damn thing off :)

john

-- 
"I try to keep an open mind, but not so open that my brains fall out."
	- Judge Harold T. Stone   

-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.surriel.com/kernelnewbies.shtml