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.
bash-3.1# cd /root/Desktop/Networkcard/ndiswrapper-1.50/ndiswrapper-1.50
bash-3.1# make
make -C driver
make[1]: Entering directory `/root/Desktop/Networkcard/ndiswrapper-1.50/ndiswrapper-1.50/driver'
Makefile:64: *** No .config found in , please set KBUILD to configured kernel. Stop.
make[1]: Leaving directory `/root/Desktop/Networkcard/ndiswrapper-1.50/ndiswrapper-1.50/driver'
make: *** [all] Error 2
How do I fix this? I really appreciate any suggestions
You should have a link /usr/src/linux, which points to the kernel sources linux-2.6.21.5. You need to place a .config file inside the sources (or create one by running either 'make menuconfig' or 'make oldconfig'. Once you have run one of these commands you should be able to compile ndiswrapper. In oredr to compile some programs you need to have the sources installed and they need to have been, at least, configured. This means you may not really need to compile the kernel sources -just that they be configured. This is because some programs that you want to compile will look for a file called 'version.h' inside the directory /usr/src/linux in order to know what version of kernel you are running. And sources which will compile a kernel module will reference some of the source files for the kernel.
I ran make menuconfig first, but I wasn't sure of what to change so I ran make oldconfig then tried to compile:
Code:
bash-3.1# cd /root/Desktop/Networkcard/ndiswrapper-1.50/ndiswrapper-1.50
bash-3.1# make install
make -C driver install
make[1]: Entering directory `/root/Desktop/Networkcard/ndiswrapper-1.50/ndiswrapper-1.50/driver'
Makefile:64: *** No .config found in , please set KBUILD to configured kernel. Stop.
make[1]: Leaving directory `/root/Desktop/Networkcard/ndiswrapper-1.50/ndiswrapper-1.50/driver'
make: *** [install] Error 2
bash-3.1#
make oldconfig said "configuration written to .config" at the end. or was I supposed to run that in a directory other than usr/src/linux
Nope, you ran make oldconfig in the right directory.
However, in the /boot directory there are a bunch of configs for the kernels that ship with slackware. As your likely using one of those kernels (probably the huge kernel, but you can check with 'uname -r'), your best bet would be to copy the associated config file from /boot to /usr/src/linux, rename it to .config (overwriting whatever's there), and run 'make oldconfig'. But since your error message didn't change, this may not be your problem, and I really don't think this is a necessary step anyways.
Another option for you would be to build an ndiswrapper package using the slackbuild found here (http://slackbuilds.org/repository/12...k/ndiswrapper/). There's a Howto on the site that explains how to use slackbuilds. I personally prefer this method as it generates a slackware package for easy maintenance.
EDIT: you know what... it looks like you didn't configure ndiswrapper before running make. Try running ./configure before make. So your steps would be: './configure', 'make', 'make install'. But I still recommend the slackbuild
EDIT 2:And this line 'lrwxrwxrwx 1 root root 14 2008-03-20 18:34 linux -> linux-2.6.21.5' indicates the symlink. Notice the 'l' at the beginning and the '->'
Last edited by ice_nine; 03-28-2008 at 01:04 AM.
Reason: reread OP
When I run ndiswrapper -m (modprobe it) it returns:
Code:
module configuration already contains alias directive
module configuration already contains alias directive
module configuration already contains alias directive
module configuration already contains alias directive
module configuration already contains alias directive
bash-3.1#
Am I missing something here?
Edit: Oh, I forgot, there was something about a 4K Stack in the middle of the build, but it didnt cause any errors that stopped it and a missing symbolic link, but I dont think it said where it was.
Last edited by BlindFate; 03-28-2008 at 09:49 AM.
Reason: forgot something
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.