Re: compilation problem of modules

2005-03-02 Thread Tommy Reynolds
Uttered "Randy.Dunlap" <[EMAIL PROTECTED]>, spake thus: > compile/build is wrong. > a minimum 2.4 kernel build needs at least: > > gcc -c -D__KERNEL__ -DMODULE -O2 -nostdinc proc.c Don't forget the kernel headers! # gcc -c -D__KERNEL__ -DMODULE -O2 -I/usr/src/linux/include -nostdinc proc.c and

Re: compilation problem of modules

2005-03-02 Thread Randy.Dunlap
sounak chakraborty wrote: the code of the module that i written is as follows: #define MODULE #include #include #define MODULE_NAME "manti" struct manti { char mm[20]; }; static struct proc_dir_entry *example_dir; struct manti m1; int init_module(void) { example_dir=proc_mkdir(MODULE_NAM

compilation problem of modules

2005-03-02 Thread sounak chakraborty
the code of the module that i written is as follows: #define MODULE #include #include #define MODULE_NAME "manti" struct manti { char mm[20]; }; static struct proc_dir_entry *example_dir; struct manti m1; int init_module(void) { example_dir=proc_mkdir(MODULE_NAME,NULL); if(example_dir=