Re: [CentOS] Getting 8139cp (1.3) and 8139too (0.9.28) on Centos 5.8

2012-10-24 Thread Ned Slider
On 24/10/12 02:18, Jerry Geis wrote:
 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.


Well, at the risk of stating the obvious, you will need to fix the errors.

Start by diffing your code against that of the distro driver around the 
functions that fail, understand why it's failing to compile (the error 
messages should give you a pretty good clue) and fix it.

Why are you trying to update this driver? Presumably there's a specific 
bug in the current driver that is fixed in the latest driver that 
affects your hardware? If that's the case, try taking the latest distro 
code as a base and just backporting the relevant patch rather than 
trying to build the whole new driver out of tree. This approach will 
probably be far more simplistic, and if it works consider submitting the 
patch for inclusion in the CentOSPlus kernel.

OTOH, if it's a case that you have an issue you can't nail down and 
you're thinking you'd just like to try the latest driver to see if it 
fixes it then there are easier ways of clutching at that particular straw.

So some more detailed information would help provide a more detailed answer.


 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@centos.org
 http://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


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

2012-10-23 Thread Jerry Geis
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@centos.org
http://lists.centos.org/mailman/listinfo/centos