Re: compiling ndiswrapper
On (22/04/06 11:05), L.V.Gandhi wrote:
> Today I have installed linux-kernel 2.6.16-1-686 alongwith headers.
> Itried to compile ndiswrapper module from source. I get the
> followingerror.
[snip]
> make[1]: Entering directory `/usr/src/modules/ndiswrapper'
> Can't find kernel sources in /usr/src/linux;
> give the path to kernel sources with KSRC=<path>
> argument to make
Yes, headers are sufficient, they contain all the necessary header
files to compile against the kernel, hence the name. However make is
looking for them in /usr/src/linux, but they are not there.
You can
a) symlink /usr/src/linux/ to your headers
/usr/src/linux-headers-`uname -r`
b) call
KSRC=/usr/src/linux-headers-`uname -r` make
The error message from make explains this well I think.
The disadvantage of a is that you need to change your symlink when you
change your kernel, or make will succeed, but the module will be for
the wrong kernel.
The disadvantage of b is remembering to do it everytime.
James
P.S. when I read your mails they are all on one line making it very
difficult to read, and I sometimes give up part way through. It
appears my mail server converts from base64 to 8bit before I get them,
and this may be the cause. I would appreciate it if you would check
your setup to make sure you are sending well formatted mails.
--
James Westby
jw+debian@jameswestby.net
http://jameswestby.net
Reply to: