Re: "no version for struct_module: found" error

From: randy_dunlap
Date: Tue Jun 21 2005 - 23:11:20 EST


On Tue, 21 Jun 2005 18:04:32 -0700 (PDT) Anil kumar wrote:

| Hi,
|
| I am loading an non-gpl module. I am getting error:
| "no version for struct_module found":tainted kernel.
|
| Its for > 2.6.8 kernels.
|
| I know that I get tainted kernel error when its not
| GPL, but what does the error "no version for
| struct_module found" mean?

That the kernel was built with CONFIG_MODVERSIONS=y but the
module was built with CONFIG_MODVERSIONS=n (i.e., without
symbol versioning information).

| How to get rid of this?

Build the kernel and module with the same config options.

| I checked the module.c under kernel dir, I guess I am
| getting this error for
| if(!(tainted & TAINTED_FORCED_MODULE)...

Yes.

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