PDA

View Full Version : I know, I'm a newbie - ndiswrapper


RushB
18th February 2004, 03:02 AM
What am I doing wrong trying to get ndiswrapper set up?

[root@admin-fedora ndiswrapper]# make
make -C driver DRV_VERSION=0.4+CVS
make[1]: Entering directory `/root/ndiswrapper/driver'
grep: /lib/modules/2.4.22-1.2166.nptl/build/.config: No such file or directory
cc -DTEST_PM -DEXPORT_SYMTAB -DMODVERSIONS -include /lib/modules/2.4.22-1.2166.nptl/build/include/linux/modversions.h -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.22-1.2166.nptl/build/include -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -O2 -c -o wrapper.o wrapper.c
wrapper.c:42:2: #error You must run make from the toplevel directory
wrapper.c: In function `wrapper_init':
wrapper.c:2317: error: `DRV_VERSION' undeclared (first use in this function)
wrapper.c:2317: error: (Each undeclared identifier is reported only once
wrapper.c:2317: error: for each function it appears in.)
make[1]: *** [wrapper.o] Error 1
make[1]: Leaving directory `/root/ndiswrapper/driver'
make: *** [all] Error 2

mhelios
18th February 2004, 05:24 AM
The part of the error output:
"error You must run make from the toplevel directory"

May be why. Check your at the top level of the ndiswrapper source tree and try again.

Also did you d/l version 0.4? Try 0.3 to see if that version works. Remember to read the INSTALL and README files carefully. (as boring as this can be sometimes..but it can save a lot of head ache now and then)

RushB
19th February 2004, 02:04 AM

I have tried running it from within the ndiswrapper dir, running it from / - and everywhere I could think of to do it.

right now it is at /root/ndiswrapper

I'm going to play with it some more tonight and see what happens.

Thanks,
RushB

LineS
1st March 2004, 08:14 PM
It has something to with the .config not being found because it's in another directory.

Anyway i'll fetch an rpm package from mandrake and try to compile it for fedora.

I'll post it here.

Ug
2nd March 2004, 12:00 PM
That would help.

micha
5th March 2004, 11:20 AM
I have compiles ndiswrapper without any problem. Make sure you have the kernel source package installed and a link /usr/src/linux to it. In my case:
ln -s /usr/src/linux-2.4.22-1.2174.nptl/ /usr/src/linux

It should work.