Getting 8139cp (1.3) and 8139too (0.9.28) on Centos 5.8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Subject says it all.

How can I get the 1.3 version and 0.9.28
to compile on CentOS 5.8 ???

When I compile the two as modules I get errors.

My Makefile is:
obj-m += 8139cp.o 8139too.o

all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

The errors I get are:

Entering directory `/usr/src/kernels/2.6.18-308.4.1.el5-i686'
CC [M] /home/silentm/MessageNet/realtek/8139cp.o
/home/silentm/MessageNet/realtek/8139cp.c: In function ‘cp_rx_skb’:
/home/silentm/MessageNet/realtek/8139cp.c:430: error: ‘struct 
net_device’ has no member named ‘stats’
/home/silentm/MessageNet/realtek/8139cp.c:431: error: ‘struct 
net_device’ has no member named ‘stats’
/home/silentm/MessageNet/realtek/8139cp.c: In function ‘cp_rx_err_acct’:
/home/silentm/MessageNet/realtek/8139cp.c:444: error: ‘struct 
net_device’ has no member named ‘stats’
/home/silentm/MessageNet/realtek/8139cp.c:446: error: ‘struct 
net_device’ has no member named ‘stats’
/home/silentm/MessageNet/realtek/8139cp.c:448: error: ‘struct 
net_device’ has no member named ‘stats’
/home/silentm/MessageNet/realtek/8139cp.c:450: error: ‘struct 
net_device’ has no member named ‘stats’
/home/silentm/MessageNet/realtek/8139cp.c:452: error: ‘struct 
net_device’ has no member named ‘stats’
/home/silentm/MessageNet/realtek/8139cp.c:454: error: ‘struct 
net_device’ has no member named ‘stats’
/home/silentm/MessageNet/realtek/8139cp.c: In function ‘cp_rx_poll’:
/home/silentm/MessageNet/realtek/8139cp.c:504: error: ‘struct 
net_device’ has no member named ‘stats’
/home/silentm/MessageNet/realtek/8139cp.c:519: error: ‘struct 
net_device’ has no member named ‘stats’
/home/silentm/MessageNet/realtek/8139cp.c:568: error: implicit 
declaration of function ‘__napi_complete’
/home/silentm/MessageNet/realtek/8139cp.c: In function ‘cp_interrupt’:
/home/silentm/MessageNet/realtek/8139cp.c:605: error: implicit 
declaration of function ‘napi_schedule_prep’
/home/silentm/MessageNet/realtek/8139cp.c:607: error: implicit 
declaration of function ‘__napi_schedule’
/home/silentm/MessageNet/realtek/8139cp.c: In function ‘cp_tx’:
/home/silentm/MessageNet/realtek/8139cp.c:673: error: ‘struct 
net_device’ has no member named ‘stats’

Thanks,

Jerry
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux