errors while installing ndiswrapper-0.8.tar.gz and ndiswrapper-0.11.tar.gz
Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
errors while installing ndiswrapper-0.8.tar.gz and ndiswrapper-0.11.tar.gz
Hi Guys I have error messages while installing those files. I have a Netgear WG311 v2 wireless PCI card on Windows working fine. I have Fedora Core 5 with kernel 2.6.15-1.2054_FC5smp i686. I also have installed the corresponding kernel source file and kernel headers. The links between those files are working.
My problem is that when I try to install either the 0.8 or the 0.11 version of ndiswrapper, it gives the following error messages after typing "make install"
[root@mookie ndiswrapper-0.8]# make install
make -C driver install
make[1]: Entering directory `/usr/src/redhat/SOURCES/ndiswrapper-0.8/driver'
make -C /lib/modules/2.6.15-1.2054_FC5smp/build SUBDIRS=/usr/src/redhat/SOURCES/ndiswrapper-0.8/driver DRV_VERSION=0.8 modules
make[2]: Entering directory `/usr/src/kernels/2.6.15-1.2054_FC5-smp-i686'
CC [M] /usr/src/redhat/SOURCES/ndiswrapper-0.8/driver/wrapper.o
/usr/src/redhat/SOURCES/ndiswrapper-0.8/driver/wrapper.c:238:56: error: macro "halt" passed 1 arguments, but takes just 0
/usr/src/redhat/SOURCES/ndiswrapper-0.8/driver/wrapper.c: In function ‘call_halt’:
/usr/src/redhat/SOURCES/ndiswrapper-0.8/driver/wrapper.c:238: warning: statement with no effect
/usr/src/redhat/SOURCES/ndiswrapper-0.8/driver/wrapper.c: In function ‘ndis_suspend’:
/usr/src/redhat/SOURCES/ndiswrapper-0.8/driver/wrapper.c:816: error: too many arguments to function ‘pci_save_state’
/usr/src/redhat/SOURCES/ndiswrapper-0.8/driver/wrapper.c: In function ‘ndis_resume’:
/usr/src/redhat/SOURCES/ndiswrapper-0.8/driver/wrapper.c:846: error: too many arguments to function ‘pci_restore_state’
/usr/src/redhat/SOURCES/ndiswrapper-0.8/driver/wrapper.c: In function ‘ndis_init_one’:
/usr/src/redhat/SOURCES/ndiswrapper-0.8/driver/wrapper.c:1051: error: too many arguments to function ‘pci_restore_state’
/usr/src/redhat/SOURCES/ndiswrapper-0.8/driver/wrapper.c: In function ‘start_driver’:
/usr/src/redhat/SOURCES/ndiswrapper-0.8/driver/wrapper.c:1202: warning: assignment from incompatible pointer type
make[3]: *** [/usr/src/redhat/SOURCES/ndiswrapper-0.8/driver/wrapper.o] Error 1
make[2]: *** [_module_/usr/src/redhat/SOURCES/ndiswrapper-0.8/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.15-1.2054_FC5-smp-i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/usr/src/redhat/SOURCES/ndiswrapper-0.8/driver'
make: *** [install] Error 2
Please help me! I am new to Fedora and Linux! Thank You in advance!
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606
Rep:
>>2.6.15-1.2054_FC5-smp-i686
Either you upgrade your kernel,
or maybe downgrade it? Do you need smp = have you got more than 1 processor
(I do not know if smp is needed for multithreaded modern processors)
Surely FC5 has choices of other kernels, or downloadable ones.
You can have as many kernels installed as you wish, and boot whichever you want
(provided you install the source you should be able to compile against a given kernel)
Is 0.11, the lastest compatible? You can try 1.12 to 1.15 maybe.
Is 0.11 returning the same errors as 0.8?
>>Do you know what causes those error messages
Not really. So I am guessing about the smp.
It sounds like that the c code is not happy with something.
I would guess it is a kernel compatibility issue
What is the CPU (Is it a 64 bits?)
did you do a make before the make install (I cannot remember what it says in the INSTALL file for ndiswrapper)
Actually simply using the newest version worked. I used the commands:
cp ndiswrapper-1.16.tar.gz /usr/src/redhat/SOURCES/
cd /usr/src/redhat/SOURCES/
rpmbuild -tb ndiswrapper-1.16.tar.gz
It worked when i did those, but now i need to figure out the next step which is installing the driver. I am looking now on how to do that and then what to do after that. I have smp, i don't know if it is because i have HT technology, but maybe. My cpu is an i386, but linux kernel stuff uses i686. WOW, i am so stupid, i just remembered that the file comes with an install file! God!
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606
Rep:
smp will work with an i386, but it is probably not optimised for your pc.
Good luck with ndiswrapper. If any question look at there wiki: it is very good
ndiswrapper -i <someinf.file>
ndiswrapper -l
ndiswrapper -m
modprobe ndiswrapper
and then some configuration (or there about)
It gives me an error message when I type: ndiswrapper -i Wg311v2.inf
It says bash: ndiswrapper Command not found.
I think i know the problem, but not how to solve it. It says in the prerequisites of the installation guide, that in /lib/modules/"kernel"/build there should be a "include" folder and a
".config" file. Im missing the .config file. Do you know what that is and how to get it? Also i think it is linked but in /etc there isn't an ndiswrapper folder. there is supposed to be one.
I wonder why no one else is responding to this. Thanks for helping me.
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606
Rep:
>>bash: ndiswrapper Command not found.
this means either you ara calling ndiswrapper with the wrong user
(you must be root probably)
or that ndiswrapper cannot be found
please post ouput, when root of command
which ndiswrapper
I get that error while root, i do everything while in root. i am trying to get ndiswrapper-1.16 to work, the other ones i tried didn't work (.08, .11). They wouldn't do the make and make install commands. I am missing some kind of ".config" file, i don't know how to get it. Look in the prerequisites in the install file, it says I need in /lib/modules/"kernel"/build I need a "include" directory, which i do, and a ".config" file, I don't have that.
You can use the command "rpmbuild -bi ndiswrapper.spec" to install; provided the tarball is in the SOURCES directory and you copied the spec file to SPECS. That is how I installed it.
I think you built the RPMs (There are two produced) and they are in the RPMS directory under the subdirectory matching your computers architecture.
I would recommend leaving the tarball in the SOURCES directory. In the future, if you perform a security update, and the kernel is updated, you can rerun "rpmbuild -ba ndiswrapper.spec" and then
use rpm to install the new ndiswrapper-kernel-<version>.rpm module.
You are a savior! How do I use command line to copy files and place them into another directory? (spec file copied to SPECS) Where exactly is the SPECS directory? I've had the tarball in SOURCES and did the commands:
cp ndiswrapper-1.16.tar.gz /usr/src/redhat/SOURCES/
cd /usr/src/redhat/SOURCES/
rpmbuild -tb ndiswrapper-1.16.tar.gz (I also tried -ti)
It says in the prerequisites that I need an "include" directory and some kind of ".config" file in /lib/modules/"kernel version"/build (I have the include directory, but not the .config file; do you know where to get that?)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.