[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Ack!!! Modules!!!



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 <linux/module.h>
> > 
> > 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 <linux/kernel.h> 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
> 
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []