[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

compiling ndiswrapper



Today I have installed linux-kernel 2.6.16-1-686 alongwith headers. I
tried to compile ndiswrapper module from source. I get the following
error.
lvgdell600m:/usr/src/modules/ndiswrapper# debian/rules binary-modules
/usr/bin/gcc
for templ in ; do \
    cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.15/g'` ; \
  done
for templ in `ls debian/*.modules.in` ; do \
    test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in}
${templ%.modules.in}.backup 2>/dev/null || true; \
    sed -e 's/##KVERS##/2.6.15/g ;s/#KVERS#/2.6.15/g ;
s/_KVERS_/2.6.15/g ; s/##KDREV##//g ; s/#KDREV#//g ; s/_KDREV_//g' <
$templ > ${templ%.modules.in}; \
  done
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs lib/modules/2.6.15/misc
# build and install the module
/usr/bin/make KPKG_EXTRAV_ARG= KSRC=/usr/src/linux \
        KVER=2.6.15 \
        INST_DIR=debian/ndiswrapper-modules-2.6.15/lib/modules/2.6.15/misc/
install
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
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/usr/src/modules/ndiswrapper'
make: *** [binary-modules] Error 2

 Is kernel source necessary for compiling or headers sufficient?

--
L.V.Gandhi
http://lvgandhi.tripod.com/
linux user No.205042

Reply to: