Compiling a module

2005-12-11 Thread Amish Rughoonundon
Hi, I tried to follow the first example hello.c in the book linux device driver 2nd edition but I am getting a bunch of errors: hello.c: #define MODULE #include int init_module(void) { printk("<1>Hello, world\n"); return 0; } void cleanup_module(void) { printk("<1>Goodbye cruel world\n"); } Er

Re: problem compiling a module!

2000-03-27 Thread Dave Thayer
On Sun, Mar 26, 2000 at 07:22:21PM -0600, Luis Gustavo Madrigal Salazar wrote: > > I've found the solution > I edited the file .config (in /usr/src/linux) and added the dollowing > line: > CONFIG_RTL8139=m > > Then make modules, etc!! > thanks!! I'm jumping in a little late here, but I thought t

Re: problem compiling a module!

2000-03-27 Thread Luis Gustavo Madrigal Salazar
I've found the solution I edited the file .config (in /usr/src/linux) and added the dollowing line: CONFIG_RTL8139=m Then make modules, etc!! thanks!!

Re: problem compiling a module!

2000-03-27 Thread Luis Gustavo Madrigal Salazar
Yeap!! It's selected..What can I do? I tried to copile the module by myself with the following line: gcc -DMODVERSIONS -DMODUKE -D__KERNEL__ -I/usr/src/linux/net/inet -O5 -c rtl8139.c but then the compiler tells me the CAP_NET_ADMIN is undeclared! any other ideas?? On Mon, 27 Mar 2000, Paul J. Ke

Re: problem compiling a module!

2000-03-27 Thread Paul J. Keenan
On Sun, Mar 26, 2000 at 05:38:14PM -0600, Luis Gustavo Madrigal Salazar wrote: > I have a realtek 8139 compatible network card, and I downloaded the kernel > 2.2.14 sources. And evrything compiled fine!..except that 'make xconfig' > doesn't allow me to select the realtek 8139 as a module...it appea

problem compiling a module!

2000-03-26 Thread Luis Gustavo Madrigal Salazar
I have a realtek 8139 compatible network card, and I downloaded the kernel 2.2.14 sources. And evrything compiled fine!..except that 'make xconfig' doesn't allow me to select the realtek 8139 as a module...it appears disabled!! How do I compile the rtl8139.o module???