LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Make problems (https://www.linuxquestions.org/questions/slackware-14/make-problems-631066/)

BlindFate 03-27-2008 12:50 PM

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

Alien Bob 03-27-2008 01:58 PM

Did you install the Linux kernel sources?
What release of Slackware are you runnning?

Eric

BlindFate 03-27-2008 02:14 PM

Quote:

Originally Posted by Alien Bob (Post 3102247)
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.

General Failure 03-27-2008 02:34 PM

Quote:

Originally Posted by BlindFate (Post 3102266)
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.

BlindFate 03-27-2008 02:37 PM

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?

ice_nine 03-27-2008 03:12 PM

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.

BlindFate 03-27-2008 03:19 PM

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

gnashley 03-27-2008 03:51 PM

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.

BlindFate 03-27-2008 04:03 PM

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

ice_nine 03-28-2008 12:58 AM

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 :D

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 '->'

rworkman 03-28-2008 08:48 AM

Which kernel did you boot?

BlindFate 03-28-2008 09:15 AM

uname -r returns 2.6.21.5


Im about to try a slackbuild

BlindFate 03-28-2008 09:34 AM

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.

rworkman 03-28-2008 09:50 AM

Quote:

Originally Posted by BlindFate (Post 3103115)
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/

BlindFate 03-28-2008 10:05 AM

Quote:

Originally Posted by rworkman (Post 3103145)
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.


All times are GMT -5. The time now is 08:06 PM.