[tulip] Error building Tulip driver on Mandrake 9 : 'tulip.c:3249: `NETIF_MSG_RXFILTER' undeclared (first use in this function)'
Peter McClure
mcclurep@yahoo.com
Wed Nov 27 14:21:01 2002
More debugging of the source code. It never occurred to me (until now) that
there might be #if in the header files. Dumb.
>From kern_compat.h
#if !defined(HAVE_NETIF_MSG)
enum {
.
.
.
NETIF_MSG_RXFILTER = 0x10000,
};
#endif
Okayyyy. Sooo,
[peter@lin133 netdrivers-3.1]$ grep HAVE_NETIF_MSG
/lib/modules/`uname -r`/build/include/linux/*h
/lib/modules/2.4.19-16mdksecure/build/include/linux/netdevice.h:#define
HAVE_NETIF_MSG 1
[peter@lin133 netdrivers-3.1]$ grep NETIF_MSG_RXFILTER
/lib/modules/`uname -r`/build/include/linux/*h
[peter@lin133 netdrivers-3.1]$
OK. So Mandrake claim to have NETIF_MSG and do - except for the one that we
need. I added
enum {
NETIF_MSG_RXFILTER = 0x10000
};
to kern_compat.h
I then tried to rebuild the module and I get :-
[root@lin133 netdrivers-3.1]# make tulip.o
gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -I/lib/modules/2.4.1
9-16mdksecure/build/include -pipe -fno-strength-reduce -DMODVERSIONS -c -o
tulip.o tulip.c
tulip.c: In function `set_rx_mode':
tulip.c:3291: warning: operation on `setup_frm' may be undefined
tulip.c:3299: warning: operation on `setup_frm' may be undefined
tulip.c:3300: warning: operation on `setup_frm' may be undefined
tulip.c:3301: warning: operation on `setup_frm' may be undefined
tulip.c:3309: warning: operation on `setup_frm' may be undefined
tulip.c:3310: warning: operation on `setup_frm' may be undefined
tulip.c:3311: warning: operation on `setup_frm' may be undefined
Any suggestions ?
Regards
Peter
--
Peter McClure
Home : +44 (0)20 8306 6908
Mobile : +44 (0)7788 410464
Fax : +44(0)870 1643153