hostapd compile errors with devicescape/rt2x00

Paul Kench paulkench
Wed Nov 29 05:09:52 PST 2006


Hello,

Hopefully you can help. I'm trying to compile hostapd against devicescape, and I am getting hostapd compile errors. I'm using the devicescape from rt2x00 checked out yesterday (28/11) and I am using the latest hostapd (hostapd-0.5-2006-11-25). This did used to compile (it didn't work but it compiled)

In the .config file I put the following.....
CONFIG_DRIVER_DEVICESCAPE=y
CFLAGS += -I/usr/src/linux-source-2.6.18/include
CFLAGS += -I/usr/src/rt2x00-281106/ieee80211
CFLAGS += -D_LINUX_TYPES_H



When I compile I get this error:


 	  Code:			  


In file included from driver_devicescape.c:41:


/usr/src/rt2x00-281106/ieee80211/net/d80211_common.h:23: error: expected specifier-qualifier- list before '__be32'


driver_devicescape.c: In function 'dump_frame_info':


driver_devicescape.c:1312: error: 'struct ieee80211_frame_info' has no member named 'hosttime '


driver_devicescape.c:1312: error: 'struct ieee80211_frame_info' has no member named 'hosttime '


driver_devicescape.c:1312: error: 'struct ieee80211_frame_info' has no member named 'hosttime '


driver_devicescape.c:1312: error: 'struct ieee80211_frame_info' has no member named 'hosttime '


driver_devicescape.c:1312: error: 'struct ieee80211_frame_info' has no member named 'hosttime '


driver_devicescape.c:1312: error: 'struct ieee80211_frame_info' has no member named 'hosttime '


driver_devicescape.c:1312: error: 'struct ieee80211_frame_info' has no member named 'hosttime '


driver_devicescape.c:1312: error: 'struct ieee80211_frame_info' has no member named 'hosttime '


driver_devicescape.c:1312: error: 'struct ieee80211_frame_info' has no member named 'hosttime '


driver_devicescape.c:1312: error: 'struct ieee80211_frame_info' has no member named 'hosttime '


driver_devicescape.c:1316: error: 'struct ieee80211_frame_info' has no member named 'version'


driver_devicescape.c:1317: error: 'struct ieee80211_frame_info' has no member named 'length'


driver_devicescape.c:1318: error: 'struct ieee80211_frame_info' has no member named 'mactime'


driver_devicescape.c:1318: error: 'struct ieee80211_frame_info' has no member named 'mactime'


driver_devicescape.c:1318: error: 'struct ieee80211_frame_info' has no member named 'mactime'


driver_devicescape.c:1318: error: 'struct ieee80211_frame_info' has no member named 'mactime'


driver_devicescape.c:1318: error: 'struct ieee80211_frame_info' has no member named 'mactime'


driver_devicescape.c:1318: error: 'struct ieee80211_frame_info' has no member named 'mactime'


driver_devicescape.c:1318: error: 'struct ieee80211_frame_info' has no member named 'mactime'


driver_devicescape.c:1318: error: 'struct ieee80211_frame_info' has no member named 'mactime'


driver_devicescape.c:1318: error: 'struct ieee80211_frame_info' has no member named 'mactime'


driver_devicescape.c:1318: error: 'struct ieee80211_frame_info' has no member named 'mactime'


driver_devicescape.c:1320: error: 'struct ieee80211_frame_info' has no member named 'phytype'


driver_devicescape.c:1321: error: 'struct ieee80211_frame_info' has no member named 'channel'


driver_devicescape.c:1322: error: 'struct ieee80211_frame_info' has no member named 'datarate '


driver_devicescape.c:1323: error: 'struct ieee80211_frame_info' has no member named 'antenna'


driver_devicescape.c:1324: error: 'struct ieee80211_frame_info' has no member named 'priority '


driver_devicescape.c:1325: error: 'struct ieee80211_frame_info' has no member named 'ssi_type '


driver_devicescape.c:1326: error: 'struct ieee80211_frame_info' has no member named 'ssi_sign al'


driver_devicescape.c:1327: error: 'struct ieee80211_frame_info' has no member named 'ssi_nois e'


driver_devicescape.c:1328: error: 'struct ieee80211_frame_info' has no member named 'preamble '


driver_devicescape.c:1329: error: 'struct ieee80211_frame_info' has no member named 'encoding '


driver_devicescape.c:1330: error: 'struct ieee80211_frame_info' has no member named 'msg_type '


driver_devicescape.c: In function 'handle_frame':


driver_devicescape.c:1360: error: 'struct ieee80211_frame_info' has no member named 'msg_type '


driver_devicescape.c:1447: error: 'ieee80211_msg_monitor' undeclared (first use in this funct ion)


driver_devicescape.c:1447: error: (Each undeclared identifier is reported only once


driver_devicescape.c:1447: error: for each function it appears in.)


driver_devicescape.c:1465: error: 'struct ieee80211_frame_info' has no member named 'phytype'


driver_devicescape.c:1466: error: 'struct ieee80211_frame_info' has no member named 'channel'


driver_devicescape.c:1467: error: 'struct ieee80211_frame_info' has no member named 'datarate '


driver_devicescape.c:1468: error: 'struct ieee80211_frame_info' has no member named 'ssi_sign al'


driver_devicescape.c:1469: error: 'struct ieee80211_frame_info' has no member named 'msg_type '


driver_devicescape.c: In function 'handle_read':


driver_devicescape.c:1524: error: 'struct ieee80211_frame_info' has no member named 'version'


make: *** [driver_devicescape.o] Error 1





	




Someone on the rt2x00 forum suggested that I remove the CFLAGS += -D_LINUX_TYPES_H


When I do this I get: 





 	  Code:			  


gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I../utils -I.
-I/usr/src/linux-source-2.6.18/include
-I/usr/src/rt2x00-281106/ieee80211 -DCONFIG_CTRL_IFACE
-DCONFIG_CTRL_IFACE_UNIX -DCONFIG_IAPP -DCONFIG_RSN_PREAUTH
-DCONFIG_PEERKEY -DCONFIG_DRIVER_DEVICESCAPE -DEAP_MD5 -DEAP_TLS
-DEAP_PEAP -DEAP_TTLS -DEAP_MSCHAPv2 -DEAP_GTC -DEAP_TLV -DEAP_SERVER
-DEAP_TLS_FUNCS -DPKCS12_FUNCS -DINTERNAL_SHA256 -DCONFIG_IPV6   -c -o
driver_devicescape.o driver_devicescape.c


In file included from /usr/src/linux-source-2.6.18/include/linux/types.h:15,


                 from /usr/src/rt2x00-281106/ieee80211/net/d80211_common.h:13,


                 from driver_devicescape.c:41:


/usr/src/linux-source-2.6.18/include/asm/types.h:14: error: redefinition of typedef '__u8'


wireless_copy.h:93: error: previous declaration of '__u8' was here


/usr/src/linux-source-2.6.18/include/asm/types.h:16: error: redefinition of typedef '__s16'


wireless_copy.h:92: error: previous declaration of '__s16' was here


/usr/src/linux-source-2.6.18/include/asm/types.h:17: error: redefinition of typedef '__u16'


wireless_copy.h:91: error: previous declaration of '__u16' was here


/usr/src/linux-source-2.6.18/include/asm/types.h:19: error: redefinition of typedef '__s32'


wireless_copy.h:90: error: previous declaration of '__s32' was here


/usr/src/linux-source-2.6.18/include/asm/types.h:20: error: redefinition of typedef '__u32'


wireless_copy.h:89: error: previous declaration of '__u32' was here


driver_devicescape.c: In function 'handle_frame':


driver_devicescape.c:1447: error: 'ieee80211_msg_monitor' undeclared (first use in this function)


driver_devicescape.c:1447: error: (Each undeclared identifier is reported only once


driver_devicescape.c:1447: error: for each function it appears in.)


make: *** [driver_devicescape.o] Error 1


	





I am running debian unstable on arm (NSLU2) with a linksys usb dongle. I have rolled my own kernel etc.





Any clues?

Regards

Paul




		
___________________________________________________________ 
Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html




More information about the Hostap mailing list