[lkml]   [2003]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Kernel module symbol versioning?
Kendall Bennett wrote:

> Hi,
> I have been reading the book "Linux Device Drivers, 2nd Edition" and have
> some questions about symbol versioning. In Chapter 11 it mentions that
> you can use the <linux/modversions.h> header file to compile your module
> with symbol versions enabled, so that your module will load on multiple
> kernels and fail if the symbol CRC's do not match. I tested this out on a
> simple test module, but this module fails to load unless I pass the '-f'
> flag to insmod (Red Hat 7.3 and 8.0).
> Is there a way to compile the module so that insmod will only complain if
> there is a version conflict? Or do you always have to use -f in this case
> to force the module to load? If you have to do that, will -f still fail
> to load if the versioned symbols don't match?

Isn't the confict cause here (just) that one is compiled with gcc 2.x
and the other with gcc 3.x?

In other words, retry compiling this module on one system with the two
different kernels, as you want to compare kernel source level interface
differences and not kernel ABI (Application Binairy Interface IIRC)



To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:48    [W:0.042 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site