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

Re: undefined reference



On Thu, Jul 19, 2001 at 01:56:33PM +0200, Martin Maletinsky wrote:

> Hello,
> 
> Your kernel has been compiled with the symbol versioning enabled. This means that the symbols exported by your kernel have a checksum attached (the 'load of characters'),
> which depends on the symbol name and the kernel version.
> In order to have your module properly compiled, include the following lines:
> 
> #define MODVERSIONS
> #include <linux/modversions.h>

please don't. instead #include <linux/module.h> as the first thing
then -DMODVERSIONS in the compile line depending on what is set in the kernel.

You should not need to include modversions.h afaik

john

-- 
"Voodoo Programming:  Things programmers do that they know shouldn't work but
 they try anyway, and which sometimes actually work, such as recompiling
 everything."
	- Karl Lehenbauer
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/