build error with compat-wireless-2008-05-30 headers

Pavel Roskin proski
Fri May 30 13:04:29 PDT 2008


On Fri, 2008-05-30 at 21:49 +0200, Hauke Mehrtens wrote:
> I get a build error, when using the compat-wireless-2008-05-30 headers.
> 
> cc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I../src -I../src/crypto
> -I../src/utils -I../src/common -DUSE_KERNEL_HEADERS
> -I/home/hauke/compat-wireless/compat-wireless-2008-05-30/include
> -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -DCONFIG_IAPP
> -DCONFIG_RSN_PREAUTH -DCONFIG_PEERKEY -DCONFIG_DRIVER_HOSTAP
> -DCONFIG_DRIVER_NL80211 -DEAP_MD5 -DEAP_TLS -DEAP_PEAP -DEAP_TTLS
> -DEAP_MSCHAPv2 -DEAP_GTC -DEAP_SERVER -DEAP_TLS_FUNCS -DPKCS12_FUNCS
> -DINTERNAL_SHA256 -DCONFIG_NO_FIPS186_2_PRF -DCONFIG_NO_T_PRF
> -DCONFIG_IPV6   -c -o driver_hostap.o driver_hostap.c
> In file included from driver_hostap.c:23:
> /home/hauke/compat-wireless/compat-wireless-2008-05-30/include/linux/wireless.h:673:

The thing it doesn't like is "__user".

I guess you enabled USE_KERNEL_HEADERS in the hostapd Makefile.  I think
the fix belongs to hostapd.  If it uses kernel includes, it should
include a kernel compatibility include first, which should define __user
among other things.

-- 
Regards,
Pavel Roskin



More information about the Hostap mailing list