From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21765 invoked by alias); 7 Sep 2004 11:30:20 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 21758 invoked from network); 7 Sep 2004 11:30:19 -0000 Received: from unknown (HELO web53008.mail.yahoo.com) (206.190.39.198) by sourceware.org with SMTP; 7 Sep 2004 11:30:19 -0000 Message-ID: <20040907113019.40163.qmail@web53008.mail.yahoo.com> Received: from [202.164.100.133] by web53008.mail.yahoo.com via HTTP; Tue, 07 Sep 2004 04:30:19 PDT Date: Tue, 07 Sep 2004 11:30:00 -0000 From: rinku rathore Subject: kernel modules To: Dirk Bergmann , gcc , gcc-help , Eljay Love-Jensen , lrtaylor , Majordomo , Matthias Stein , Zack Weinberg MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-09/txt/msg00279.txt.bz2 Hello, I am trying to build a kernel module that is:- /*module name is "hello.c"*/ #include // Needed by all modules #include int init_module(void) { printk("<1>Hello world 1.\n"); // A non 0 return means init_module failed; module can't be loaded. return 0; } void cleanup_module(void) { printk("<1>Goodbye world 1.\n"); } And then compiling it with the command:- gcc -c hello.c it get successfully compiled and then I am trying to insert it with command insmod ./hello.o An error as followed is arived how can I remove this error:- error: ./hell.o: couldn't find the kernel version the module was compiled for Thanx Rinku Rathore __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail