getting kaweth driver to compile in mandrake 9.1
I'm having a dickens of a time getting the kaweth driver to compile for my Linksys USB10T (not the TX). My kernel is 2.4.21-0.13mdk, and I have installed the package containing the kernel source. Usbview reports that the usb nic does indeed use the kawasaki chipset. I changed kaweth.c to use gcc instead of kgcc, but when I run make, i get the following:
# make
gcc -I/usr/src/linux/include -O2 -Wall -Wstrict-prototypes -Winline -fno-strict-aliasing -fno-strength-reduce -malign-loops=2 -malign-functions=2 -malign-jumps=2 -DCPU=686 -D__SMP__ -D__KERNEL__ -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -c -fomit-frame-pointer kaweth.c
cc1: warning: -malign-loops is obsolete, use -falign-loops
cc1: warning: -malign-jumps is obsolete, use -falign-jumps
cc1: warning: -malign-functions is obsolete, use -falign-functions
In file included from kaweth.c:34:
/usr/src/linux/include/linux/malloc.h:4:2: warning: #warning linux/malloc.h is deprecated, use linux/slab.h instead.
kaweth.c:82: warning: initialization from incompatible pointer type
kaweth.c: In function `kaweth_control':
kaweth.c:206: `purb_t' undeclared (first use in this function)
kaweth.c:206: (Each undeclared identifier is reported only once
kaweth.c:206: for each function it appears in.)
kaweth.c:206: parse error before "urb"
kaweth.c:207: `devrequest' undeclared (first use in this function)
kaweth.c:207: `dr' undeclared (first use in this function)
kaweth.c:215: `urb' undeclared (first use in this function)
make: *** [kaweth.o] Error 1
what is going on here? why so many warnings about using obsolete #include files? any suggestions to make this bugger compile so i can give this old usb nic a try? any help would be vastly appreciated.
Definition: [/I] temp firm (n.) [/I] - A brokerage selling people who are broke. See l/I] leech. [/I]
|