Hi this is happening because u have compiled your module for kernel 2.4.20-8 (redhat 9.0) .now ur installing that module on kernel 2.4.20 which is different from kernel 2.4.20-8 (redhat 9.0). please compile ur code with following command (for example i am taking ur source file name as module.c) : gcc -c module.c -D__KERNEL__ -DMODULE -I/usr/src/linux-2.4.20/include then to install module give command : insmod module.o notes:- a> if u have already defined __KERNEL__ & MODULE in ur source file then u can skip those here. b> -I/usr/src/linux-2.4.20/include in this linux-2.4.20 points to ur kernel in /usr/src directory .If u have some othername for ur kernel in /usr/src e.g linux then u shld define as -I/usr/src/linux/include for assistance refer 2nd chapter of linux device driver book , rubini . --- Sudeep Sudha <sudeep_246@xxxxxxxxxxxxxx> wrote: > hi kernel friends > > I wrote, compiled a small hello world prog on my > system which runs Red Hat Linux 9.0, kernel version > 2.4.20-8. I never got an error msg ven i compiled > but ven i tried to execute on the same system, i got > this error..... > > This program was compiled for kernel 2.4.20, but > this is kernel 2.4.20-8. > > How can this error msg appear ven i compiled and > execute the prog on the same system?????????? > > please help me out...... i am stuck > > > __________________________________ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250 -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/