When I do:
uname -a
Code:
Linux foo 2.6.16-2-686 #1 Mon Aug 21 11:33:09 CEST 2006 i686 GNU/Linux
apt-get install module-assistant <-- That works fine
module-assistant auto-install ndiswrapper <-- On this I get a blue screen saying:
Code:
Warning, /usr/src/linux-headers-2.6.16-2 seems to contain unconfigured kernel source
Then it installs and brings up an error with this log file, and doesn't proceed:
Code:
for templ in ; do \ #
cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.16-2-686/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.16-2-686/g ;s/#KVERS#/2.6.16-2-686/g ;
s/_KVERS_/2.6.16-2-686/g ; s/##KDREV##//g ; s/#KDREV#//g ; s/_KDREV_//g'
< $templ > ${templ%.modules.in}; \
done
dh_clean
/usr/bin/make clean
make[1]: Entering directory `/usr/src/modules/ndiswrapper'
rm -rf ndiswrapper.ko ndiswrapper.o hal.o iw_ndis.o loader.o
misc_funcs.o ndis.o ntoskernel.o pe_linker.o proc.o wrapper.o usb.o
divdi3.o usb.o x86_64_stubs.o \
divdi3.o .*.ko.cmd .*.o.cmd ndiswrapper.mod.[oc] *~ .tmp_versions
make[1]: Leaving directory `/usr/src/modules/ndiswrapper'
/usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules #
make[1]: Entering directory `/usr/src/modules/ndiswrapper'
for templ in ; do \
cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.16-2-686/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.16-2-686/g ;s/#KVERS#/2.6.16-2-686/g ;
s/_KVERS_/2.6.16-2-686/g ; s/##KDREV##//g ; s/#KDREV#//g ; s/_KDREV_//g'
< $templ > ${templ%.modules.in}; \
done
dh_clean
/usr/bin/make clean
make[2]: Entering directory `/usr/src/modules/ndiswrapper'
rm -rf ndiswrapper.ko ndiswrapper.o hal.o iw_ndis.o loader.o
misc_funcs.o ndis.o ntoskernel.o pe_linker.o proc.o wrapper.o usb.o
divdi3.o usb.o x86_64_stubs.o \
divdi3.o .*.ko.cmd .*.o.cmd ndiswrapper.mod.[oc] *~ .tmp_versions
make[2]: Leaving directory `/usr/src/modules/ndiswrapper' #
make[1]: Nothing to be done for `kdist_config'.
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs lib/modules/2.6.16-2-686/misc
# build and install the module
/usr/bin/make KPKG_EXTRAV_ARG= KSRC=/usr/src/linux-headers-2.6.16-2-686 \
KVER=2.6.16-2-686 \
INST_DIR=debian/ndiswrapper-modules-2.6.16-2-686/lib/modules/2.6.16-2-686
/misc/ install
make[2]: Entering directory `/usr/src/modules/ndiswrapper'
/usr/bin/make -C /usr/src/linux-headers-2.6.16-2-686
SUBDIRS=/usr/src/modules/ndiswrapper \
NDISWRAPPER_VERSION=1.1 \
EXTRA_VERSION= modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.16-2-686'
CC [M] /usr/src/modules/ndiswrapper/hal.o
CC [M] /usr/src/modules/ndiswrapper/iw_ndis.o
CC [M] /usr/src/modules/ndiswrapper/loader.o #
/usr/src/modules/ndiswrapper/loader.c: In function `register_devices':
/usr/src/modules/ndiswrapper/loader.c:861: warning: assignment from
incompatible pointer type
/usr/src/modules/ndiswrapper/loader.c:873: error: structure has no
member named `owner'
make[4]: *** [/usr/src/modules/ndiswrapper/loader.o] Error 1
make[3]: *** [_module_/usr/src/modules/ndiswrapper] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.16-2-686'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/usr/src/modules/ndiswrapper'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/modules/ndiswrapper'
make: *** [kdist_build] Error 2
I get this far through the installation
Code:
Reading Package Lists... Done
Building Dependency Tree... Done
ndiswrapper-source is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Updated infos about 1 packages
Extracting the package tarball, /usr/src/ndiswrapper-source.tar.bz2
modules/
modules/ndiswrapper/
modules/ndiswrapper/debian/
modules/ndiswrapper/debian/changelog
modules/ndiswrapper/debian/compat
modules/ndiswrapper/debian/copyright
modules/ndiswrapper/debian/control.modules.in
modules/ndiswrapper/debian/postinst.modules.in
modules/ndiswrapper/debian/rules
modules/ndiswrapper/Makefile
modules/ndiswrapper/divdi3.c
modules/ndiswrapper/hal.c
modules/ndiswrapper/iw_ndis.c
modules/ndiswrapper/iw_ndis.h
modules/ndiswrapper/loader.c
modules/ndiswrapper/loader.h
modules/ndiswrapper/longlong.h
modules/ndiswrapper/misc_funcs.c
modules/ndiswrapper/ndis.c
modules/ndiswrapper/ndis.h
modules/ndiswrapper/ndiswrapper.h
modules/ndiswrapper/ntoskernel.c
modules/ndiswrapper/ntoskernel.h
modules/ndiswrapper/pe_linker.c
modules/ndiswrapper/pe_linker.h
modules/ndiswrapper/proc.c
modules/ndiswrapper/usb.c
modules/ndiswrapper/usb.h
modules/ndiswrapper/winnt_types.h
modules/ndiswrapper/wrapper.c
modules/ndiswrapper/wrapper.h
modules/ndiswrapper/x86_64_stubs.S
modules/ndiswrapper/INSTALL
modules/ndiswrapper/version
Now here's some strange things:
Code:
apt-cache search ndiswrapper
ndiswrapper-modules-2.6.8-2-386 - Ndiswrapper linux kernel module
ndiswrapper-modules-2.6.8-2-686 - Ndiswrapper linux kernel module
ndiswrapper-modules-2.6.8-2-686-smp - Ndiswrapper linux kernel module
ndiswrapper-modules-2.6.8-2-k7 - Ndiswrapper linux kernel module
ndiswrapper-modules-2.6.8-2-k7-smp - Ndiswrapper linux kernel module
ndiswrapper-modules-2.6.8-3-386 - Ndiswrapper linux kernel module
ndiswrapper-modules-2.6.8-3-686 - Ndiswrapper linux kernel module
ndiswrapper-modules-2.6.8-3-686-smp - Ndiswrapper linux kernel module
ndiswrapper-modules-2.6.8-3-k7 - Ndiswrapper linux kernel module
ndiswrapper-modules-2.6.8-3-k7-smp - Ndiswrapper linux kernel module
ndiswrapper-source - Source for the ndiswrapper linux kernel module
ndiswrapper-utils - Userspace utilities for ndiswrapper
Nothing matches my kernel 2.6.16-2-686
Also this is odd as well:
Code:
apt-cache show kernel-headers-`uname -r`
W: Unable to locate package kernel-headers-2.6.16-2-686
E: No packages found
Any ideas, someone said to install my kernel source but when I do:
foo:/home/daveyb# apt-get install kernel-headers-`uname -r`
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package kernel-headers-2.6.16-2-686
Man so confused, what am I doing wrong, all I want to do is load NDISWRAPPER so i can configure my WIFI card