SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm also having the same problem with the 2.6.12 source and debian. Going by ndiswrappers make file it uses $KSRC/include/linux/version.h to verify the kernel source is there. It looks like in 2.6.12 and up (it might be like it earlier but i havent tested) this file is missing.
A little bit of digging through the main Makefile for the linux source revealed that it is a generated file.
I used the following to generate it
Code:
make include/linux/version.h
Now my ndiswrapper is attempting to compile. It generates a load of warnings but it is at least a step forwards
Just tried building ndiswrapper 1.4rc1 on my Slackware 10.2 box, kernel 2.6.13 and that went without any problem.
During build I get warning about the kernel using 4K stack size, and that you might expect the Windows driver to crash the kernel at sometime (Windows drivers seem to demand 8, some even 12K stacks) and that you should in fact rebuild the kernel and remove 4kstacks (the CONFIG_4KSTACKS option).
Regarding the OP's problem with compiling, I suspect that you're using vanilla kernel sources? You should at least have run "make oldconfig ; make dep" (although I'm not sure if 'make dep' is still needed with 2.6 kernels. For 2.4 kernels that is mandatory).
Originally posted by Alien Bob During build I get warning about the kernel using 4K stack size, and that you might expect the Windows driver to crash the kernel at sometime (Windows drivers seem to demand 8, some even 12K stacks) and that you should in fact rebuild the kernel and remove 4kstacks (the CONFIG_4KSTACKS option)
Replying to myself here :-)
I checked the ndiswrapper Makefile, and the 2.6 kernel configuration process, and it looks like:
the stock Slackware 2.6 kernel uses 8K stack size. Since the stack size is only configurable in the "Kernel hacking" section and by default 4K stacks is not turned on, the option "CONFIG_4KSTACKS" does not even appear in the kernel's .config file
ndiswrapper checks for the existence of the word "CONFIG_4KSTACKS" in the kernel's .config file to determine if you have a kernel with 4K stack size, and spits out warnings if that is not found.
My conclusion, this is all harmless chatter, and ndiswrapper should function normally on a Slackware box. Can someone test this and report back?
Binary package for the 2.6.13 kenel, as well as a build script, tarball et.al. are available at my SlackBuild repository
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.