LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 03-07-2005, 09:40 AM   #1
Subbeh
LQ Newbie
 
Registered: Mar 2005
Posts: 10

Rep: Reputation: 0
compiling madwifi


Hi,

Im trying to intall madwifi but i get the following errors when i do 'make':

/usr/src/linux-2.4.27-0.pre2.1mdk/include/linux/smp.h:29: error: conflicting types for 'smp_send_reschedule'
/usr/src/linux-2.4.27-0.pre2.1mdk/include/asm/smp.h:41: error: previous declaration of 'smp_send_reschedule' was here
/usr/src/linux-2.4.27-0.pre2.1mdk/include/linux/smp.h:29: error: conflicting types for 'smp_send_reschedule'
/usr/src/linux-2.4.27-0.pre2.1mdk/include/asm/smp.h:41: error: previous declaration of 'smp_send_reschedule' was here
make[3]: *** [ah_osdep.o] Error 1
make[3]: Leaving directory `/home/subbeh/madwifi/ath_hal'
make[2]: *** [_mod_/home/subbeh/madwifi/ath_hal] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.27-0.pre2.1mdk'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/subbeh/madwifi/ath_hal'
make: *** [all] Error 1

can anyone tell me what I'm doing wrong or what i should do?
 
Old 03-07-2005, 11:37 AM   #2
bunnadik
Member
 
Registered: Jan 2005
Location: Ívik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
It's a hack and it might screw things up later, but you can try commenting out one of the smp_send_reschedule declarations.
Compile madwifi and remove the commenting.

- Peder
 
Old 03-07-2005, 01:02 PM   #3
DeusExLinux
Member
 
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
are you root?
what else have you done? and you are sure you have the kernel source and gcc installed?
 
Old 03-07-2005, 01:12 PM   #4
bunnadik
Member
 
Registered: Jan 2005
Location: Ívik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
@DeusExLinux: Of course he has the kernel source and gcc installed; gcc's complaining that two include files from
the 2.4.27-0.pre2.1mdk source have conflicting types. It's an error that can happen some times.

root or not doesn't matter in this case (at this stage anyways).

- Peder
 
Old 03-07-2005, 04:53 PM   #5
Subbeh
LQ Newbie
 
Registered: Mar 2005
Posts: 10

Original Poster
Rep: Reputation: 0
I just reinstalled Mandrake again, the only thing i did so far is 'urpmi kernel-source' and it still doesn't work.
Quote:
It's a hack and it might screw things up later, but you can try commenting out one of the smp_send_reschedule declarations.
how do i do that?

Edit: it already works, i just did a urpmi --auto-select

Last edited by Subbeh; 03-07-2005 at 05:02 PM.
 
Old 03-07-2005, 05:18 PM   #6
Subbeh
LQ Newbie
 
Registered: Mar 2005
Posts: 10

Original Poster
Rep: Reputation: 0
Ok now i get some more errors while setting it up..;
[root@localhost madwifi]# insmod wlan
insmod: can't read 'wlan': No such file or directory
[root@localhost madwifi]# insmod ath_hal
insmod: can't read 'ath_hal': Is a directory
[root@localhost madwifi]# modprobe ath_pci
FATAL: Module ath_pci not found.

I didnt get any errors with make and make install, what could it be this time?

Last edited by Subbeh; 03-07-2005 at 05:21 PM.
 
Old 03-07-2005, 08:17 PM   #7
DeusExLinux
Member
 
Registered: May 2004
Location: Tampa, Fl
Distribution: Arch
Posts: 648

Rep: Reputation: 30
It seems to not be able to find the modules .... when I ran make, it inserted the modules itself. Why are you trying to do it manually? try running these instead
Code:
 insmod wlan/wlan.ko
    insmod ath_hal/ath_hal.ko
    insmod driver/ath_pci.ko
...but keep in mind this
Quote:
note you must load the wlan and ath_hal modules first as the driver
depends on them). More likely though you will want to install the
modules so the system will load them for you as needed:

make install

(doing this is also necessary for the wlan module to locate those modules
it loads on demand). To complete installation you may need to modify
your system's configuration files so the necessary modules are loaded
when an Atheros device is recognized. The exact procedure varies from
system to system.
 
  


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
madwifi....how? flystar06 Linux - Wireless Networking 48 02-06-2006 02:42 PM
Error compiling Madwifi Drivers kf8rd Linux - Networking 0 06-17-2005 06:08 AM
Error compiling madwifi drivers thiqued Linux - Software 0 09-24-2004 04:11 PM
Can someone email me "madwifi-2.6.8_and_-mm-040821.patch.bz2"? (madwifi 2.6.8 patch) 95se Linux - Wireless Networking 0 09-01-2004 10:34 AM
MADWifi k1ng Linux - Hardware 0 05-25-2004 08:27 AM


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

Main Menu
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