From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 18996 invoked from network); 3 Nov 1998 02:23:17 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 3 Nov 1998 02:23:17 -0000 Received: from zephyr.cybercom.net (zephyr.cybercom.net [209.21.146.100]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id VAA27991 for ; Mon, 2 Nov 1998 21:10:35 -0500 Received: from shell1.cybercom.net (toaster@shell1.cybercom.net [209.21.136.6]) by zephyr.cybercom.net (8.8.7/8.8.7) with ESMTP id VAA12890 for ; Mon, 2 Nov 1998 21:10:35 -0500 (EST) Received: from localhost (toaster@localhost) by shell1.cybercom.net (8.8.5/8.8.5) with SMTP id VAA19055 for ; Mon, 2 Nov 1998 21:10:34 -0500 (EST) Date: Mon, 2 Nov 1998 21:10:34 -0500 (EST) From: Keith Baker To: axp-list@redhat.com Subject: Re: Ack!!! Modules!!! In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII These are not compile errors... The erros only happen when I load the module... I think its a mismatch with name mangling for kernel versions... Many thanks to all who helped... now how do I compile it with the version symbols On Mon, 2 Nov 1998, Bob McElrath wrote: > On Mon, 2 Nov 1998, Keith Baker wrote: > > > can anyone tell me if this works? > > > > #define MODULE > > #include > > > > int init_module(void) {printk("<1>Hello World\n"); return 0;} > > void cleanup_module(void) {printk("<1>Goodbye\n");} > > > > Its from Oriellys book... I am attempting to write a kernel module and > > this was their first example.. it just gives me unresolved symbols for > > printk... Shouldn't this exist? What am I doing :-( > > printk is the kernel logging facility. Calls to printk usually end up > routed to syslogd (klogd). #include to fix the > compile-time warnings. > > -- Bob > > ./'^`\._./'~`\._./'~`\._./'~`\._./'#`\._./'~`\._./'~`\._./'~`\._./'^`\. > / Rube Goldberg? Bah! Amateur! I give you..Windows 98! Linux everywhere \ > | Linux, because everyone's work is mission critical. ANYTHING inside. | > |_Bob McElrath (mcelrath@wisconsin.cern.ch) Univ. of Wisconsin at Madison_| > \.___________________________________________________________________./ > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > >