I'm having trouble getting ndiswrapper to compile. I'm using stable Debian Sarge, downloaded and installed today.
I follow the directions
here, but I get errors on the "make install" when compiling the ndiswrapper. Here is what I get:
Code:
marcus:/home/matt/ndiswrapper-1.2# make install
make -C driver install
make[1]: Entering directory `/home/matt/ndiswrapper-1.2/driver'
cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.27-2-386/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.27-2-386/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2 -c -o hal.o hal.c
cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.27-2-386/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.27-2-386/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2 -c -o iw_ndis.o iw_ndis.c
cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.27-2-386/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.27-2-386/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2 -c -o loader.o loader.c
loader.c: In function `ndiswrapper_add_pci_device':
loader.c:211: warning: implicit declaration of function `pci_set_consistent_dma_mask'
cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.27-2-386/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.27-2-386/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2 -c -o misc_funcs.o misc_funcs.c
cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.27-2-386/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.27-2-386/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2 -c -o ndis.o ndis.c
cc -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.27-2-386/build/include/linux/modversions.h -DNDISWRAPPER_VERSION=\"1.2\" -DEXTRA_VERSION=\"\" -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.27-2-386/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -O2 -mpreferred-stack-boundary=2 -c -o ntoskernel.o ntoskernel.c
ntoskernel.c: In function `wakeup_event':
ntoskernel.c:826: error: `task_t' undeclared (first use in this function)
ntoskernel.c:826: error: (Each undeclared identifier is reported only once
ntoskernel.c:826: error: for each function it appears in.)
ntoskernel.c:826: error: syntax error before ')' token
make[1]: *** [ntoskernel.o] Error 1
make[1]: Leaving directory `/home/matt/ndiswrapper-1.2/driver'
make: *** [install] Error 2
I am unsure if I did the correct steps for getting kernel headers. I was confused as to if I should get the "headers" or "source" package, so I got both, in that order.
I have this ln setup:
Code:
ln -s /usr/src/kernel-headers-2.4.27-2-386 /lib/modules/2.4.27-2-386/build
I've tried compiling with this pointing at various things (the source, the headers), but I always get the same deal. The error above.
Here is my uname -a
Code:
Linux marcus 2.4.27-2-386 #1 Mon May 16 16:47:51 JST 2005 i686 GNU/Linux
My system hardware is as seen in my signature.
This is really stumping me. This is my first Debian install (well, I tried it a long time ago, but I wasn't linux-smart enough to get it working at all then) and this is the first snag I've hit. I'm loving the Debian so far, save for this.
I appreciate your help.