[realtek] Compile errors with the 'test' directory code.
Lloyd B. Park
lpark@kent.edu
Thu Jan 31 06:38:00 2002
I have been trying to compile the rtl8139 driver as a module for a 2.4.17
kernel for about week. I saw the realtek list messages in which the new
(Jan 29) drivers were discussed and decided to try them. Now I get this
message when I compile:
rtl8139.c: In function `set_rx_mode':
rtl8139.c:1440: `NETIF_MSG_RXFILTER' undeclared (first use in this
function)
rtl8139.c:1440: (Each undeclared identifier is reported only once
rtl8139.c:1440: for each function it appears in.)
make: *** [rtl8139.o] Error 1
rtl8139.c includes linux/netdevice.h and then later includes kern_compat.h
/usr/src/linux/include/linux/netdevice.h includes this section of code:
#define HAVE_NETIF_MSG 1
enum {
NETIF_MSG_DRV = 0x0001,
NETIF_MSG_PROBE = 0x0002,
NETIF_MSG_LINK = 0x0004,
NETIF_MSG_TIMER = 0x0008,
NETIF_MSG_IFDOWN = 0x0010,
NETIF_MSG_IFUP = 0x0020,
NETIF_MSG_RX_ERR = 0x0040,
NETIF_MSG_TX_ERR = 0x0080,
NETIF_MSG_TX_QUEUED = 0x0100,
NETIF_MSG_INTR = 0x0200,
NETIF_MSG_TX_DONE = 0x0400,
NETIF_MSG_RX_STATUS = 0x0800,
NETIF_MSG_PKTDATA = 0x1000,
};
kern_compat.h from netdrivers.tgz contains this section of code:
#if !defined(HAVE_NETIF_MSG)
enum {
NETIF_MSG_DRV = 0x0001,
NETIF_MSG_PROBE = 0x0002,
NETIF_MSG_LINK = 0x0004,
NETIF_MSG_TIMER = 0x0008,
NETIF_MSG_IFDOWN = 0x0010,
NETIF_MSG_IFUP = 0x0020,
NETIF_MSG_RX_ERR = 0x0040,
NETIF_MSG_TX_ERR = 0x0080,
NETIF_MSG_TX_QUEUED = 0x0100,
NETIF_MSG_INTR = 0x0200,
NETIF_MSG_TX_DONE = 0x0400,
NETIF_MSG_RX_STATUS = 0x0800,
NETIF_MSG_PKTDATA = 0x1000,
/* 2000 is reserved. */
NETIF_MSG_WOL = 0x4000,
NETIF_MSG_MISC = 0x8000,
NETIF_MSG_RXFILTER = 0x10000,
};
#endif
So when compiling for th 2.4.17 kernel, the last three NETIF_MSG_xxx
variables are not set and the compile fails.
--
------------------------------------
Lloyd B. Park (330) 672-0384
310 Moulton Hall
Kent State University
Kent, OH 44242
------------------------------------