PDA

View Full Version : Help me 'make' (madwifi)



zackiv31
15th September 2006, 05:24 AM
FC6T3 I have yum installed kernel-devel.

[root@localhost madwifi-0.9.2]# make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.17-1.2630.fc6/build SUBDIRS=/home/zivester/Desktop/madwifi-0.9.2 modules
make[1]: Entering directory `/usr/src/kernels/2.6.17-1.2630.fc6-i686'
CC [M] /home/zivester/Desktop/madwifi-0.9.2/ath/ah_osdep.o
In file included from /home/zivester/Desktop/madwifi-0.9.2/ath/../hal/linux/ah_osdep.c:44,
from /home/zivester/Desktop/madwifi-0.9.2/ath/ah_osdep.c:2:
include/linux/config.h:6:2: error: #warning Including config.h is deprecated.
make[3]: *** [/home/zivester/Desktop/madwifi-0.9.2/ath/ah_osdep.o] Error 1
make[2]: *** [/home/zivester/Desktop/madwifi-0.9.2/ath] Error 2
make[1]: *** [_module_/home/zivester/Desktop/madwifi-0.9.2] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.17-1.2630.fc6-i686'
make: *** [modules] Error 2

zackiv31
16th September 2006, 07:35 PM
[bump]

someone must know how to compile things...

hollywoodb
17th September 2006, 10:00 PM
you could save some time by having the livna developement repos enabled, if you don't have net connection on that box right now, just grab madwifi and kmod-madwifi from http://rpm.livna.org/fedora/development/

as far as your build error, I'm not sure. You do need kernel-devel package matching your kernel version to compile madwifi drivers.

I also needed a couple other steps to get madwifi working happily, see here:http://fedoraforum.org/forum/showthread.php?t=124492

(which incedentally is also your thread)

zackiv31
18th September 2006, 12:43 AM
Still wondering if someone can shed some light onto what exactly these make issues are... There is no reason that I can see why I shouldn't be able to make this correctly...

(also, as of now the method described in the other thread does not work)

JEO
18th September 2006, 01:03 AM
include/linux/config.h:6:2: error: #warning Including config.h is deprecated
<snip...>

Try doing an ascii search of your source files for config.h and comment out the include line.

zackiv31
18th September 2006, 01:30 AM
[root@localhost madwifi-0.9.2]# grep -r "config.h" .
./Makefile:modules: configcheck svnversion.h
./Makefile:configcheck: sanitycheck
./net80211/ieee80211_linux.c:#include <linux/config.h>
./net80211/ieee80211_proto.c:#include <linux/config.h>
./net80211/ieee80211_crypto.c:#include <linux/config.h>
./net80211/ieee80211_wireless.c:#include <linux/config.h>
./net80211/ieee80211_acl.c:#include <linux/config.h>
./net80211/ieee80211_power.c:#include <linux/config.h>
./net80211/if_media.c:#include <linux/config.h>
./net80211/ieee80211_output.c:#include <linux/config.h>
./net80211/ieee80211_scan_ap.c:#include <linux/config.h>
./net80211/ieee80211.c:#include <linux/config.h>
./net80211/ieee80211_beacon.c:#include <linux/config.h>
./net80211/ieee80211_scan_sta.c:#include <linux/config.h>
./net80211/ieee80211_crypto_tkip.c:#include <linux/config.h>
./net80211/ieee80211_crypto_none.c:#include <linux/config.h>
./net80211/ieee80211_crypto_ccmp.c:#include <linux/config.h>
./net80211/ieee80211_node.c:#include <linux/config.h>
./net80211/ieee80211_xauth.c:#include <linux/config.h>
./net80211/ieee80211_input.c:#include <linux/config.h>
./net80211/ieee80211_scan.c:#include <linux/config.h>
./net80211/ieee80211_monitor.c:#include <linux/config.h>
./net80211/ieee80211_crypto_wep.c:#include <linux/config.h>
./hal/linux/ah_osdep.c:#include <linux/config.h>
./ath_rate/amrr/amrr.c:#include <linux/config.h>
./ath_rate/sample/sample.c:#include <linux/config.h>
./ath_rate/onoe/onoe.c:#include <linux/config.h>
./ath/if_ath_pci.c:#include <linux/config.h>
./ath/if_ath_ahb.c:#include <linux/config.h>
./ath/if_ath.c:#include <linux/config.h>
./regression/wep/test_wep.c:#include <linux/config.h>
./regression/tkip/test_tkip.c:#include <linux/config.h>
./regression/ccmp/test_ccmp.c:#include <linux/config.h>



Is that what you mean? seems like a lot of commenting out..

JEO
18th September 2006, 12:25 PM
Yep, thats what I mean. You may want to show that error / warning to the maintainer of the driver also. These things need to be updated from time to time as kernels change.

zackiv31
18th September 2006, 05:57 PM
[root@localhost madwifi-0.9.2]# make
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /lib/modules/2.6.17-1.2647.fc6/build SUBDIRS=/home/zivester/Desktop/madwifi-0.9.2 modules
make[1]: Entering directory `/usr/src/kernels/2.6.17-1.2647.fc6-i686'
CC [M] /home/zivester/Desktop/madwifi-0.9.2/ath/ah_osdep.o
HOSTCC /home/zivester/Desktop/madwifi-0.9.2/ath/uudecode
UUDECODE /home/zivester/Desktop/madwifi-0.9.2/ath/i386-elf.hal.o
CC [M] /home/zivester/Desktop/madwifi-0.9.2/ath/if_ath.o
CC [M] /home/zivester/Desktop/madwifi-0.9.2/ath/if_ath_pci.o
LD [M] /home/zivester/Desktop/madwifi-0.9.2/ath/ath_pci.o
LD [M] /home/zivester/Desktop/madwifi-0.9.2/ath/ath_hal.o
CC [M] /home/zivester/Desktop/madwifi-0.9.2/ath_rate/sample/sample.o
LD [M] /home/zivester/Desktop/madwifi-0.9.2/ath_rate/sample/ath_rate_sample.o
CC [M] /home/zivester/Desktop/madwifi-0.9.2/net80211/if_media.o
CC [M] /home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211.o
CC [M] /home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_beacon.o
CC [M] /home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_crypto.o
CC [M] /home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_crypto_none.o
CC [M] /home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_input.o
CC [M] /home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_node.o
CC [M] /home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_output.o
CC [M] /home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_power.o
CC [M] /home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_proto.o
CC [M] /home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_scan.o
CC [M] /home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_wireless.o
CC [M] /home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.o
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c: In function 'proc_ieee80211_open':
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:380: error: implicit declaration of function 'PDE'
cc1: warnings being treated as errors
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:380: warning: initialization makes pointer from integer without a cast
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:381: error: dereferencing pointer to incomplete type
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c: In function 'ieee80211_sysctl_vattach':
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:643: error: 'proc_net' undeclared (first use in this function)
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:643: error: (Each undeclared identifier is reported only once
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:643: error: for each function it appears in.)
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:644: error: implicit declaration of function 'proc_mkdir'
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:644: warning: assignment makes pointer from integer without a cast
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:652: warning: assignment makes pointer from integer without a cast
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:663: error: implicit declaration of function 'create_proc_entry'
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:664: warning: assignment makes pointer from integer without a cast
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:665: error: dereferencing pointer to incomplete type
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:666: error: dereferencing pointer to incomplete type
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c: In function 'ieee80211_proc_vcreate':
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:735: warning: assignment makes pointer from integer without a cast
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:736: error: dereferencing pointer to incomplete type
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:737: error: dereferencing pointer to incomplete type
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c: In function 'ieee80211_sysctl_vdetach':
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:768: error: implicit declaration of function 'remove_proc_entry'
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:773: error: dereferencing pointer to incomplete type
/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.c:775: error: 'proc_net' undeclared (first use in this function)
make[3]: *** [/home/zivester/Desktop/madwifi-0.9.2/net80211/ieee80211_linux.o] Error 1
make[2]: *** [/home/zivester/Desktop/madwifi-0.9.2/net80211] Error 2
make[1]: *** [_module_/home/zivester/Desktop/madwifi-0.9.2] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.17-1.2647.fc6-i686'
make: *** [modules] Error 2


getting closer...