Re: NetGear FA511 card acting erratically
magicfox <[email protected]> Tue, 06 Jul 2004 19:22:35 +0200
| Newsgroups | gmane.linux.drivers.tulip.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, I saw somewhere... #ifdef __KERNEL__ /* externally defined structs */ ... struct net_device; ... So I suspect the change_mtu field isn't defined in the struct. If I add in ns820.c after #include </linux/netdevices.h> #undef HAVE_CHANGE_MTU I can compile it without problem. Don't ask to me why and if it works, I haven't this hardware. In case of, and if you can found that, I'm angry to known where those externals are defined. @+ Vsevolod (Simon) Ilyushchenko wrote: > Hi magicfox, > > Thanks for the answer! > > My file netdevice.h does contain the definition of change_mtu (after > #define HAVE_CHANGE_MTU), and I do have the parameter > -I/usr/src/linux-2.4/include (otherwise nothing compiles). Yet somehow > it's not picked up... I can't understand why. > > Simon > > magicfox wrote: > >> Vsevolod (Simon) Ilyushchenko wrote: : >> >>> I tried to compile the version of tulip.c that I downloaded from >>> ftp.scyld.com (0.98, 1/8/2004), but I got this error: >>> ... >>> ns820.c: In function `ns820_probe1': >>> ns820.c:526: error: `change_mtu' undeclared (first use in this function) >>> ns820.c:526: error: (Each undeclared identifier is reported only once >>> ns820.c:526: error: for each function it appears in.) >>> ns820.c: At top level: >>> ns820.c:798: error: `change_mtu' used prior to declaration >>> ns820.c:798: warning: `change_mtu' defined but not used >>> make: *** [ns820.o] Error 1 >>> >>> Any help will be appreciated. >>> >>> Thanks, >>> Simon >> >> >> >> This symbol is defined in both kernel headers as reporting a grep for me. >> $ grep -R change_mtu /usr/src/linux/include/* >> /usr/src/linux/include/linux/netdevice.h: int >> (*change_mtu)(struct net_device *dev, int new_mtu); >> >> Something wrong with your kernel include ? >> Try to add: >> -I/usr/src/linux/include >> in your command line. >> >> Best regards. >> _______________________________________________ >> tulip mailing list, [email protected] >> To change to digest mode or unsubscribe visit >> http://www.scyld.com/mailman/listinfo/tulip >> > _______________________________________________ tulip mailing list, [email protected] To change to digest mode or unsubscribe visit http://www.scyld.com/mailman/listinfo/tulip