LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices



Reply
 
Search this Thread
Old 05-08-2006, 10:18 PM   #1
itsonlyme
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 5
Posts: 19

Rep: Reputation: 0
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!
 
Old 05-09-2006, 03:09 AM   #2
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,604

Rep: Reputation: 47
http://sourceforge.net/project/showf...group_id=93482
Suggest you use newer versions
 
Old 05-09-2006, 06:10 PM   #3
itsonlyme
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 5
Posts: 19

Original Poster
Rep: Reputation: 0
I looked at the newer versions and it said it is recommended that you have a kernel version higher than what i have.

Do you know what causes those error messages?

Thanks!
 
Old 05-10-2006, 02:01 AM   #4
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,604

Rep: Reputation: 47
>>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)
 
Old 05-10-2006, 05:49 PM   #5
itsonlyme
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 5
Posts: 19

Original Poster
Rep: Reputation: 0
Hey thanks!

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!

Thanks for the help though!
 
Old 05-11-2006, 02:14 AM   #6
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,604

Rep: Reputation: 47
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)
 
Old 05-11-2006, 11:06 AM   #7
itsonlyme
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 5
Posts: 19

Original Poster
Rep: Reputation: 0
Hey

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.
 
Old 05-11-2006, 01:46 PM   #8
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,604

Rep: Reputation: 47
>>I wonder why no one else is responding to this.
because this is no helpdesk, read LQ rules

you may need to be root
try this as root to check it is there
which ndiswrapper

ndiswrapper -i Wg311v2.inf
to do that you need to in the directory where the inf file is
 
Old 05-11-2006, 05:30 PM   #9
itsonlyme
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 5
Posts: 19

Original Poster
Rep: Reputation: 0
Oh ok.

I'll try. I have ndiswrapper-1.16.tar.gz
 
Old 05-11-2006, 06:02 PM   #10
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,604

Rep: Reputation: 47
>>rpmbuild -tb ndiswrapper-1.16.tar.gz
I've never tried this
do you then need to do
rpm -i nameofpackage to install it?

I usually untar the file then make, make install, then use checkinstall to make a rpm

Last edited by Emmanuel_uk; 05-11-2006 at 06:04 PM.
 
Old 05-12-2006, 05:30 PM   #11
itsonlyme
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 5
Posts: 19

Original Poster
Rep: Reputation: 0
Hey,

No, all i did was those commands that I stated earlier. Do you know anything about the missing .config file?
 
Old 05-13-2006, 12:05 PM   #12
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,604

Rep: Reputation: 47
>>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
 
Old 05-13-2006, 02:25 PM   #13
itsonlyme
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 5
Posts: 19

Original Poster
Rep: Reputation: 0
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.
 
Old 05-13-2006, 02:36 PM   #14
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
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.
 
Old 05-14-2006, 01:09 PM   #15
itsonlyme
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 5
Posts: 19

Original Poster
Rep: Reputation: 0
THANK YOU!

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?)

Thanks for the help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 11:55 AM
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 10 02-23-2008 06:40 AM
errors installing ndiswrapper-0.9 in red hat 9.0 Roel Thijs Linux - Wireless Networking 21 09-17-2004 08:15 PM
Error while installing package.tar.tar isone Linux - Software 2 11-03-2003 12:58 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 07:30 AM


All times are GMT -5. The time now is 08:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration