[realtek] Can not compile rtl8139.c

Jeff Garzik jgarzik@mandrakesoft.com
Mon, 23 Apr 2001 12:07:27 -0400


Juan Fco Rodriguez Hervella wrote:
> 
> Hi:
> 
> I am trying to compile the latest "rtl8139.c" file, like a module.
> When I run "gcc -DMODULE -D__KERNEL__ -O6 -c rtl8139.c", the following
> errors appear:
> 
> root@tarantula:~/realtek-8139# gcc -DMODULE -D__KERNEL__ -O6 -c
> rtl8139.c
> rtl8139.c: In function `rtl8129_open':
> rtl8139.c:675: structure has no member named `tbusy'
> rtl8139.c:676: structure has no member named `interrupt'
> rtl8139.c:677: structure has no member named `start'
> rtl8139.c: In function `rtl8129_timer':
> rtl8139.c:777: structure has no member named `interrupt'
> rtl8139.c:783: structure has no member named `tbusy'
> rtl8139.c: In function `rtl8129_tx_timeout':
> rtl8139.c:910: structure has no member named `tbusy'
> rtl8139.c: In function `rtl8129_start_xmit':
> rtl8139.c:940: structure has no member named `tbusy'
> rtl8139.c:963: structure has no member named `tbusy'
> rtl8139.c:967: structure has no member named `tbusy'
> rtl8139.c: In function `rtl8129_interrupt':
> rtl8139.c:992: structure has no member named `interrupt'
> rtl8139.c:995: structure has no member named `interrupt'
> rtl8139.c:1072: structure has no member named `tbusy'
> rtl8139.c:1073: `NET_BH' undeclared (first use in this function)
> rtl8139.c:1073: (Each undeclared identifier is reported only once
> rtl8139.c:1073: for each function it appears in.)
> rtl8139.c:1152: structure has no member named `interrupt'
> rtl8139.c: In function `rtl8129_close':
> rtl8139.c:1275: structure has no member named `start'
> rtl8139.c:1276: structure has no member named `tbusy'
> rtl8139.c: In function `rtl8129_get_stats':
> rtl8139.c:1354: structure has no member named `start'
> 
> root@tarantula:~/realtek-8139#
> 
> My kernel is 2.2.19, with USAGI patches for IPv6, and I have
> the rtl8139 compiled as a module.

2.2.19 most certainly has structure members 'start', 'busy', and
'interrupt'.

The output you give is the classic example of trying to compile
rtl8139.c under 2.4.x.  Use the included CONFIG_8139TOO instead.

-- 
Jeff Garzik      | The difference between America and England is that
Building 1024    | the English think 100 miles is a long distance and
MandrakeSoft     | the Americans think 100 years is a long time.
                 |      (random fortune)