Re: Netgear FA311--compiling the module
At 9:02 PM -0400 4/30/2001, Rob Warner wrote: I'm running potato, and I'm trying to get my Netgear FA311 nic card going. I downloaded the natsemi driver from scyld, but when I try to compile it using: I'm not too familiar with 2.2.X Kernels, but is there a kernel module in 2.2 for natsemi? If not, do you have the kernel header files for you specific kernel installed (or the compiled sources)? I got fed up with the pseudo-tulip Linksys and got the FA311. Since I run 2.4.3, I just compiled in the driver. -- Anthony Lau
Re: Netgear FA311--compiling the module
> gcc -DMODULE -D__KERNEL__ -O6 -c natsemi.c > In file included from /usr/include/linux/string.h:37, > from natsemi.c:107: > /usr/include/asm/string.h:46: parse error before `size_t' > /usr/include/asm/string.h: In function `strncpy': > /usr/include/asm/string.h:47: number of arguments doesn't match > prototype /usr/include/linux/string.h:13: prototype declaration > /usr/include/asm/string.h:61: `src' undeclared (first use in this > function) /usr/include/asm/string.h:61: (Each undeclared identifier is > reported only once > > It appears that either I'm missing some environment variables, or my > gcc is incorrectly set up, but I'm kind of stumped. Any thoughts? TIA, > Rob looks like gcc is calling the wrong header files. check the docs for that driver and/or join the mailing list for it and see if you can figure out how to get it to use the include files that are part of the kernel source and not the ones part of libc6-dev. on most systems the kernel source is in /usr/src/linux. this is a common problem and is the source of many flamewars from time to time between kernel hackers and libc hackers :) of course be sure to have the headers/source installed. some drivers won't install without doing a 'make dep' in the source tree either. nate
Netgear FA311--compiling the module
I'm running potato, and I'm trying to get my Netgear FA311 nic card going. I downloaded the natsemi driver from scyld, but when I try to compile it using: gcc -DMODULE -D__KERNEL__ -O6 -c natsemi.c I'm inundated with errors. I've attached the complete log, but they start like this: In file included from /usr/include/linux/string.h:37, from natsemi.c:107: /usr/include/asm/string.h:46: parse error before `size_t' /usr/include/asm/string.h: In function `strncpy': /usr/include/asm/string.h:47: number of arguments doesn't match prototype /usr/include/linux/string.h:13: prototype declaration /usr/include/asm/string.h:61: `src' undeclared (first use in this function) /usr/include/asm/string.h:61: (Each undeclared identifier is reported only once It appears that either I'm missing some environment variables, or my gcc is incorrectly set up, but I'm kind of stumped. Any thoughts? TIA, Rob