Re: "couldn't find the kernel version the module was compiled for" - help!

2000-11-14 Thread David Schleef
On Tue, Nov 14, 2000 at 05:44:42PM -0600, Timur Tabi wrote: > ** Reply to message from Keith Owens <[EMAIL PROTECTED]> on Wed, 15 Nov 2000 > 10:41:42 +1100 > > > > __NO_VERSION__ must be defined before #include . > > It is: > > #ifdef LINUX > #ifndef __ENTRY_C__ > #define __NO_VERSION__ > #e

Re: "couldn't find the kernel version the module was compiled for" - help!

2000-11-14 Thread Timur Tabi
** Reply to message from Keith Owens <[EMAIL PROTECTED]> on Wed, 15 Nov 2000 10:41:42 +1100 > __NO_VERSION__ must be defined before #include . It is: #ifdef LINUX #ifndef __ENTRY_C__ #define __NO_VERSION__ #endif #include #include #include #include >Do it by hand. I don't know what you

Re: "couldn't find the kernel version the module was compiled for" - help!

2000-11-14 Thread Keith Owens
On Tue, 14 Nov 2000 17:35:37 -0600, Timur Tabi <[EMAIL PROTECTED]> wrote: >Ok, I made this change: > >#ifndef __ENTRY_C__ >#define __NO_VERSION__ >#endif >#include > >and in entry.c: > >#define __ENTRY_C__ >#include "include.h" > >Unfortunately, it still doesn't work. __NO_VERSION__ must be def

Re: "couldn't find the kernel version the module was compiled for" - help!

2000-11-14 Thread Timur Tabi
** Reply to message from Keith Owens <[EMAIL PROTECTED]> on Wed, 15 Nov 2000 10:31:22 +1100 > "#define __NO_VERSION__" must be in all but one of the sources that > also include module.h. It suppresses the module_version string in > module.h so it only make sense if the code includes module.h.

Re: "couldn't find the kernel version the module was compiled for" - help!

2000-11-14 Thread Keith Owens
On Tue, 14 Nov 2000 15:58:38 -0600, Timur Tabi <[EMAIL PROTECTED]> wrote: >First, I had a bunch of link errors on the redifintion of >__module_kernel_version. To fix that, someone told me to do this: > >#define __NO_VERSION__ >#include "#define __NO_VERSION__" must be in all but one of the sou

Re: "couldn't find the kernel version the module was compiled for" - help!

2000-11-14 Thread Timur Tabi
** Reply to message from Steven Walter <[EMAIL PROTECTED]> on Tue, 14 Nov 2000 16:31:54 -0600 > If my understanding is correct, you need to include version.h without > "#define __NO_VERSION__" in one and only one of your module's .c files. > More than one, and you get redefinition errors; less t

Re: "couldn't find the kernel version the module was compiled for" - help!

2000-11-14 Thread Steven Walter
If my understanding is correct, you need to include version.h without "#define __NO_VERSION__" in one and only one of your module's .c files. More than one, and you get redefinition errors; less than one, and its undefined. On Tue, Nov 14, 2000 at 03:58:38PM -0600, Timur Tabi wrote: > I'm at a lo

"couldn't find the kernel version the module was compiled for" - help!

2000-11-14 Thread Timur Tabi
I'm at a loss to explain why I can't get this working. I have a driver written for 2.4 that I'm porting back to 2.2. Every time I think I got it working, something surprises me. First, I had a bunch of link errors on the redifintion of __module_kernel_version. To fix that, someone told me to