lkml.org 
[lkml]   [1999]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Changes to interface from 2.0 to 2.2
Sean M Hollingsworth wrote:
> #define MODULE
> #include <linux/module.h>
>
> int init_module(void)
> {
> printk("<1>Hello, world\n");
> return 0;
> }
>
> void cleanup_module(void)
> {
> printk("<1>Goodbye cruel world\n");
> }
>
> Now if I compile this and insmod it on a machine running a 2.0.x kernel
> it does what it is supposed to do. If I insmod it on a machine running
> 2.2.1, I get an "unresolved symbol printk" error. I know many things

You most likely have CONFIG_MODVERSIONS in the 2.2 kernel. Either
recompile without that option or compile all you modules you make with
-DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h.

--
* Jens Axboe <axboe@image.dk>
* Linux CD-ROM Maintainer
* "The only thing that interferes with my
* learning is my education." -- A. Einstein

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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