LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   compiling madwifi (https://www.linuxquestions.org/questions/mandriva-30/compiling-madwifi-298694/)

Subbeh 03-07-2005 09:40 AM

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?

bunnadik 03-07-2005 11:37 AM

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

DeusExLinux 03-07-2005 01:02 PM

are you root?
what else have you done? and you are sure you have the kernel source and gcc installed?

bunnadik 03-07-2005 01:12 PM

@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

Subbeh 03-07-2005 04:53 PM

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

Subbeh 03-07-2005 05:18 PM

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?

DeusExLinux 03-07-2005 08:17 PM

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.


All times are GMT -5. The time now is 01:17 PM.