LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-27-2008, 12:50 PM   #1
BlindFate
LQ Newbie
 
Registered: Mar 2008
Posts: 12

Rep: Reputation: 0
Make problems


when I try to make NDISWrapper I get this error:

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

I'm running Slackware 12.0 with Kernel 2.6.21.5
 
Old 03-27-2008, 01:58 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Did you install the Linux kernel sources?
What release of Slackware are you runnning?

Eric
 
Old 03-27-2008, 02:14 PM   #3
BlindFate
LQ Newbie
 
Registered: Mar 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Alien Bob View Post
Did you install the Linux kernel sources?
What release of Slackware are you runnning?

Eric
Slackware 12.0

I'm pretty sure I installed Linux Kernel Sources, but I'm not 100% sure.
 
Old 03-27-2008, 02:34 PM   #4
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Rep: Reputation: 37
Quote:
Originally Posted by BlindFate View Post
I'm pretty sure I installed Linux Kernel Sources, but I'm not 100% sure.
Find out with
Code:
ls /var/log/packages | grep kernel
and paste the output.
 
Old 03-27-2008, 02:37 PM   #5
BlindFate
LQ Newbie
 
Registered: Mar 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Code:
kernel-generic-2.6.21.5-i486-2
kernel-generic-smp-2.6.21.5_smp-i686-2
kernel-headers-2.6.21.5_smp-i386-2
kernel-huge-2.6.21.5-i486-2
kernel-huge-smp-2.6.21.5_smp-i686-2
kernel-modules-2.6.21.5-i486-2
kernel-modules-smp-2.6.21.5_smp-i686-2
kernel-source-2.6.21.5_smp-noarch-2
bash-3.1#

Im still pretty new at Linux. I shouldn't have all those should I?
 
Old 03-27-2008, 03:12 PM   #6
ice_nine
Member
 
Registered: Sep 2007
Posts: 41

Rep: Reputation: 15
Nope, that looks fine.

Give a detailed output of /usr/src (ls -l /usr/src), there should be a symbolic link called linux pointing to the source directory.

Last edited by ice_nine; 03-27-2008 at 03:13 PM.
 
Old 03-27-2008, 03:19 PM   #7
BlindFate
LQ Newbie
 
Registered: Mar 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Code:
bash-3.1# ls -l /usr/src 
total 8
lrwxrwxrwx  1 root root   14 2008-03-20 18:34 linux -> linux-2.6.21.5
drwxr-xr-x 19 root root 4096 2007-06-19 15:48 linux-2.6.21.5
drwxr-xr-x  7 root root 4096 2003-10-29 01:08 rpm
bash-3.1#
I dont know what a symbolic link looks like. =| My linux experience is a week with slackware and about a year with Ubuntu
 
Old 03-27-2008, 03:51 PM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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.
 
Old 03-27-2008, 04:03 PM   #9
BlindFate
LQ Newbie
 
Registered: Mar 2008
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 03-28-2008, 12:58 AM   #10
ice_nine
Member
 
Registered: Sep 2007
Posts: 41

Rep: Reputation: 15
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
 
Old 03-28-2008, 08:48 AM   #11
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Which kernel did you boot?
 
Old 03-28-2008, 09:15 AM   #12
BlindFate
LQ Newbie
 
Registered: Mar 2008
Posts: 12

Original Poster
Rep: Reputation: 0
uname -r returns 2.6.21.5


Im about to try a slackbuild
 
Old 03-28-2008, 09:34 AM   #13
BlindFate
LQ Newbie
 
Registered: Mar 2008
Posts: 12

Original Poster
Rep: Reputation: 0
I used the slackbuild and:
Code:
bash-3.1# ndiswrapper -l
bcmwl5a : driver installed
        device (14E4:4320) present
bash-3.1# modprobe ndiswrapper
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.21.5/misc/ndiswrapper.ko): Invalid module format
bash-3.1#
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
 
Old 03-28-2008, 09:50 AM   #14
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by BlindFate View Post
uname -r returns 2.6.21.5
You need to either use one of the smp kernels (that's the easiest and the recommended way) or look at this: http://slackware.osuosl.org/slackwar...1.5-nosmp-sdk/
 
Old 03-28-2008, 10:05 AM   #15
BlindFate
LQ Newbie
 
Registered: Mar 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rworkman View Post
You need to either use one of the smp kernels (that's the easiest and the recommended way) or look at this: http://slackware.osuosl.org/slackwar...1.5-nosmp-sdk/
Ah poop. I guess I'll be reinstalling.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with make bauk Linux - Software 3 03-21-2007 07:52 AM
BASH problems: "configure, make, make install" commands don't work ditch* Linux - General 3 07-19-2005 04:37 PM
make and make install problems jabird Red Hat 1 10-11-2004 09:05 PM
make-problems stalemate Mandriva 10 09-20-2003 10:49 AM
make problems jayakrishnan Linux - General 1 09-13-2003 05:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration