Problem compiling rtl8139.c
Mark Cote <[email protected]> Fri, 5 Dec 2003 14:56:38 -0500
| Newsgroups | gmane.linux.drivers.realtek.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm trying to compile rtl8139.c for a cardbus device on a Debian system running kernel 2.4.22. I have pcmcia-cs 3.1.34 source in /usr/src/modules/pcmcia-cs. I've tried compiling rtl8139.c with gcc -DCARDBUS -DMODULE -Wall -Wstrict-prototypes -O6 -c rtl8139.c -o realtek_cb.o -I/usr/src/modules/pcmcia-cs/include/ and I've tried putting "-I/usr/src/linux/include/" at the end as well. However, I always end up with a lot of implicit declarations, as I've included below. I don't have the kernel compiled at the moment, just untarred. Would that make a difference? If not, does anyone have any ideas? Thanks, Mark rtl8139.c: In function `rtl8129_open': rtl8139.c:739: warning: implicit declaration of function `netif_start_tx_queue' rtl8139.c: In function `rtl8129_timer': rtl8139.c:852: warning: implicit declaration of function `netif_queue_paused' rtl8139.c: In function `rtl8129_tx_timeout': rtl8139.c:988: warning: implicit declaration of function `netif_unpause_tx_queue' rtl8139.c: In function `rtl8129_start_xmit': rtl8139.c:1017: warning: implicit declaration of function `netif_pause_tx_queue' rtl8139.c:1046: warning: implicit declaration of function `netif_stop_tx_queue' rtl8139.c: In function `rtl8129_interrupt': rtl8139.c:1143: warning: implicit declaration of function `dev_free_skb_irq' rtl8139.c:1148: warning: implicit declaration of function `netif_resume_tx_queue' rtl8139.c: In function `rtl_error': rtl8139.c:1334: warning: implicit declaration of function `netif_link_down' rtl8139.c:1336: warning: implicit declaration of function `netif_link_up' rtl8139.c: In function `mii_ioctl': rtl8139.c:1455: error: `SIOCGPARAMS' undeclared (first use in this function) rtl8139.c:1455: error: (Each undeclared identifier is reported only once rtl8139.c:1455: error: for each function it appears in.) rtl8139.c:1461: error: `SIOCSPARAMS' undeclared (first use in this function) rtl8139.c: In function `set_rx_mode': rtl8139.c:1518: error: `NETIF_MSG_RXFILTER' undeclared (first use in this function)