hostap-0.4.5 compilation problems on debian 3.1 with WE18 with madwifidriver

Beat Meier bmeier
Thu Oct 20 05:56:35 PDT 2005


Hello

hostapd-0.4.5 doesn't anymore compile on debian 3.1 with kernel 2.6.12 
(hostapd-0.4.4 did)
Problem is the new include file wireless_copy.h.
Here the output

gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I. -I. -I../utils -I. 
-I/usr/src/linux-2.6.12-2-wrap/include -I../../madwifi-20050910/src  
-DCONFIG_IAPP -DCONFIG_RSN_PREAUTH -DCONFIG_DRIVER_HOSTAP 
-DCONFIG_DRIVER_MADWIFI -DEAP_MD5 -DEAP_TLS -DEAP_PEAP -DEAP_TTLS 
-DEAP_MSCHAPv2 -DEAP_GTC -DEAP_TLV -DEAP_SERVER -DEAP_TLS_FUNCS 
-DPKCS12_FUNCS -DCONFIG_IPV6   -c -o driver_madwifi.o driver_madwifi.c
In file included from wireless_copy.h:88,
                 from driver_madwifi.c:35:
/usr/include/net/if.h:45: error: syntax error before numeric constant
/usr/include/net/if.h:111: error: redefinition of `struct ifmap'
/usr/include/net/if.h:126: error: redefinition of `struct ifreq'
/usr/include/net/if.h:176: error: redefinition of `struct ifconf'
In file included from driver_madwifi.c:35:
wireless_copy.h:89: error: redefinition of `__u32'
/usr/src/linux-2.6.12-2-wrap/include/asm/types.h:20: error: `__u32' 
previously declared here
wireless_copy.h:90: error: redefinition of `__s32'
/usr/src/linux-2.6.12-2-wrap/include/asm/types.h:19: error: `__s32' 
previously declared here
wireless_copy.h:91: error: redefinition of `__u16'
/usr/src/linux-2.6.12-2-wrap/include/asm/types.h:17: error: `__u16' 
previously declared here
wireless_copy.h:92: error: redefinition of `__s16'
/usr/src/linux-2.6.12-2-wrap/include/asm/types.h:16: error: `__s16' 
previously declared here
wireless_copy.h:93: error: redefinition of `__u8'
/usr/src/linux-2.6.12-2-wrap/include/asm/types.h:14: error: `__u8' 
previously declared here
driver_madwifi.c: In function `madwifi_set_iface_flags':
driver_madwifi.c:272: error: `IFF_UP' undeclared (first use in this 
function)
driver_madwifi.c:272: error: (Each undeclared identifier is reported 
only once
driver_madwifi.c:272: error: for each function it appears in.)
make: *** [driver_madwifi.o] Error 1

If I include <linux/wireless.h> instead of  wireless_copy.h it complais 
about

driver_madwifi.c: In function `madwifi_wireless_event_wireless':
driver_madwifi.c:825: error: `IW_EV_POINT_OFF' undeclared (first use in 
this function)
driver_madwifi.c:825: error: (Each undeclared identifier is reported 
only once
driver_madwifi.c:825: error: for each function it appears in.)
make: *** [driver_madwifi.o] Error 1

which is defined in wireless_copy.h.

I have WE18.
Does hostap-0.4.5 compile only with WE19?

And at last there are 2 if.h one in t/usr/include/net and one in
/usr/include/linux in the sytem path but in the kernel sources
there is only the /usr/include/linux one so if you add the kernel sources
(which was stripped away in the defconfig now - why?)
the if.h from system kernel is used. Is this the right one???


How can we change that and why was wireless_copy.h added?

Thanks for help

Beat




More information about the Hostap mailing list