I have Ubuntu 9.10, kernel 2.6.31-14-generic.
I bought a network card D-LINK DGE-530T. Ubuntu tries to use skge module to run the card, but it's not working properly. sk98lin module is needed. So I downloaded the driver from manufacturer, after running install script i get compiling error message:
Code:
+++ Compile the driver
+++ ====================================
make: Entering directory `/usr/src/linux-headers-2.6.31-14-generic'
  CC [M]  /tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/sky2.o
  CC [M]  /tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.o
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c: In function ‘sk98lin_init_device’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:399: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:439: error: ‘struct net_device’ has no member named ‘open’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:440: error: ‘struct net_device’ has no member named ‘stop’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:441: error: ‘struct net_device’ has no member named ‘get_stats’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:442: error: ‘struct net_device’ has no member named ‘set_multicast_list’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:443: error: ‘struct net_device’ has no member named ‘set_mac_address’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:444: error: ‘struct net_device’ has no member named ‘do_ioctl’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:445: error: ‘struct net_device’ has no member named ‘change_mtu’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:448: error: ‘struct net_device’ has no member named ‘poll_controller’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:466: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:476: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:570: error: ‘struct proc_dir_entry’ has no member named ‘owner’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:599: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:605: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:613: error: ‘struct net_device’ has no member named ‘hard_start_xmit’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:624: error: ‘struct net_device’ has no member named ‘open’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:625: error: ‘struct net_device’ has no member named ‘stop’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:626: error: ‘struct net_device’ has no member named ‘get_stats’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:627: error: ‘struct net_device’ has no member named ‘set_multicast_list’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:628: error: ‘struct net_device’ has no member named ‘set_mac_address’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:629: error: ‘struct net_device’ has no member named ‘do_ioctl’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:630: error: ‘struct net_device’ has no member named ‘change_mtu’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:633: error: ‘struct net_device’ has no member named ‘poll_controller’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c: In function ‘sk98lin_resume’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:1117: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c: In function ‘sk98lin_suspend’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:1195: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c: In function ‘FreeResources’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:1509: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:1510: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c: In function ‘sk98lin_remove_device’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:1690: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:1749: error: ‘struct net_device’ has no member named ‘get_stats’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c: In function ‘SkGeIsr’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:2281: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:2294: error: implicit declaration of function ‘netif_rx_schedule_prep’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:2303: error: implicit declaration of function ‘__netif_rx_schedule’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c: In function ‘SkGeOpen’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:2407: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c: In function ‘SkGeClose’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:2727: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:2770: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c: In function ‘SkGeXmit’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:3006: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c: In function ‘SkGePoll’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:3096: error: implicit declaration of function ‘__netif_rx_complete’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c: In function ‘SkGeNetPoll’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:3128: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c: In function ‘SkGeSetMacAddr’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:4166: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c: In function ‘SkGeSetRxMode’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:4223: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c: In function ‘SkGeChangeMtu’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:4335: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c: In function ‘SkGeStats’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:4456: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c: In function ‘SkGeIoctl’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:4761: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c: In function ‘SkDrvEvent’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:6613: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c: In function ‘SkDrvEnterDiagMode’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:6905: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:6922: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.c:6923: error: ‘struct net_device’ has no member named ‘priv’
make[1]: *** [/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/skge.o] Error 1
make[1]: *** Waiting for unfinished jobs....
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/sky2.c: In function ‘SkY2Isr’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/sky2.c:397: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/sky2.c: In function ‘SkY2Xmit’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/sky2.c:503: error: ‘struct net_device’ has no member named ‘priv’
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/sky2.c: In function ‘AllocateAndInitLETables’:
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/sky2.c:2873: warning: cast to pointer from integer of different size
/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/sky2.c:2875: warning: cast from pointer to integer of different size
make[1]: *** [/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all/sky2.o] Error 1
make: *** [_module_/tmp/Sk98IEKQLJKoloqHRfCAbleQO/all] Error 2
make: Leaving directory `/usr/src/linux-headers-2.6.31-14-generic'
+++ Compiler error
Could someone explain to me what needs to be done to not get this error?