I solved the problem by compiling a new kernel. I was using Slackware 10.2, but the compiled sources for that kernel were not on the computer, and that is what ndiswrapper needs.
I read in the ndiswrapper documentation that all the kernel source headers should be available. The way you make them available is by compiling the kernel.
The steps on compiling a 2.6.x kernel for slackware are outlined in the LQ tutorial at:
Here is a play-by-play you can try (as root):
* Note that these are basically the steps outlined in the article referenced above. If you're confused as to what a certain step does and want to learn more, I recommend reading the article.
# cd /usr/src
# wget http://www.kernel.org/pub/linux/kern...2.6.10.tar.bz2
# tar xvjf linux-2.6.10.tar.bz2 (this creates a directory named linux-2.6.10)
# cd linux-2.6.10
# wget ftp://ftp.slackware.no/linux/slackwa.../config-2.6.10
# mv config-2.6.10 .config
# make menuconfig
# make bzImage
# make modules
# make modules_install
# cp arch/i386/boot/bzImage /boot/bzImage-2.6.10
# cp System.map /boot/System.map-2.6.10
# vi /etc/lilo.conf
Modify lilo, and add the following lines for the new kernel:
image = /boot/bzImage-2.6.10
root = /dev/hda1 (*This must be the root partition on your system)
label = Slack_2.6.10
The re-run lilo to update the MBR:
Then reboot and select the new kernel, labeled "Slack_2.6.10".
The cd into the ndiswrapper source directory, do a "make distclean" and "make uninstall", and start over with:
# make install
I hope this works for you like it did for me. Ndiswrapper is a very cool project. If you have any questions I can try to help best I can.