compiling hostapd against madwifi

and hansen and0806 at yahoo.dk
Wed Jun 29 10:31:23 EDT 2005


Are you pointing out the right madwifi source
here is a part of my hostapd compile .config file
# Driver interface for madwifi driver
CONFIG_DRIVER_MADWIFI=y
CFLAGS += -I /root/madwifi_bsd_28-6-2005/madwifi/

--- Joachim Schiele wrote:

> after several hours i can compile some parts of the
> hostapd but still fail at 
> this important part:
> 
> root at moon:/usr/src/hostap/hostapd# make
> gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I.
> -I../driver/modules -I../utils 
> -I../wpa_supplicant -I/usr/src/madwifi/ 
> -I/usr/include/ -DCONFIG_IAPP 
> -DCONFIG_RSN_PREAUTH -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
> driver_madwifi.c: In function
> `madwifi_wireless_event_wireless':
> driver_madwifi.c:803: `IW_EV_LCP_LEN' undeclared
> (first use in this function)
> driver_madwifi.c:803: (Each undeclared identifier is
> reported only once
> driver_madwifi.c:803: for each function it appears
> in.)
> driver_madwifi.c:806: dereferencing pointer to
> incomplete type
> driver_madwifi.c:806: dereferencing pointer to
> incomplete type
> driver_madwifi.c:807: dereferencing pointer to
> incomplete type
> driver_madwifi.c:809: dereferencing pointer to
> incomplete type
> driver_madwifi.c:810: `IWEVEXPIRED' undeclared
> (first use in this function)
> driver_madwifi.c:811: dereferencing pointer to
> incomplete type
> driver_madwifi.c:813: `IWEVREGISTERED' undeclared
> (first use in this function)
> driver_madwifi.c:814: dereferencing pointer to
> incomplete type
> driver_madwifi.c:816: `IWEVCUSTOM' undeclared (first
> use in this function)
> driver_madwifi.c:817: `IW_EV_POINT_LEN' undeclared
> (first use in this 
> function)
> driver_madwifi.c:818: dereferencing pointer to
> incomplete type
> driver_madwifi.c:820: dereferencing pointer to
> incomplete type
> driver_madwifi.c:823: dereferencing pointer to
> incomplete type
> driver_madwifi.c:824: dereferencing pointer to
> incomplete type
> driver_madwifi.c:811: warning: unreachable code at
> beginning of switch 
> statement
> driver_madwifi.c:830: dereferencing pointer to
> incomplete type
> make: *** [driver_madwifi.o] Error 1
> 
> the problem seems to be missing include, namely:
> CFLAGS += -I/usr/src/linux/include/linux/
>  or?!
> CFLAGS += -I/usr/include/
> 
> the problem is, when i include the files from the
> kernel, which seems to be 
> the only way because the variables like
> `IW_EV_LCP_LEN' used in the hostapd's 
> madwifi part depend on the variables only defined in
> the kernel include dir.
> 
> but after adding the CFLAGS +=
> -I/usr/src/linux/include/linux/
> i get the output, at the end of the mail.
> 
> can anyone help me? i'm lost ;P
> 
> thanks
> 
> 
> 
> ======== error ==================
> 
> root at moon:/usr/src/hostap/hostapd# make
> rm -f driver_conf.c
> echo '/* THIS FILE AUTOMATICALLY GENERATED, DO NOT
> EDIT! */' \
>                                         >
> driver_conf.c
> echo '#include <stdlib.h>'                      >>
> driver_conf.c
> echo '#include <stdio.h>'                       >>
> driver_conf.c
> echo '#include <sys/types.h>'                   >>
> driver_conf.c
> echo '#include <netinet/in.h>'                  >>
> driver_conf.c
> echo '#include "hostapd.h"'                     >>
> driver_conf.c
> echo '#include "driver.h"'                      >>
> driver_conf.c
> echo "void madwifi_driver_register(void);"      >>
> driver_conf.c
> echo 'void register_drivers(void) {'            >>
> driver_conf.c
> echo "madwifi_driver_register();"               >>
> driver_conf.c
> echo '}'                                        >>
> driver_conf.c
> gcc -MMD -O2 -Wall -g -DHOSTAPD_DUMP_STATE -I.
> -I../driver/modules -I../utils 
> -I../wpa_supplicant -I/usr/src/madwifi/ 
> -I/usr/src/linux/include/linux/ 
> -DCONFIG_IAPP -DCONFIG_RSN_PREAUTH
> -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_conf.o driver_conf.c
> In file included from /usr/include/sys/types.h:215,
>                  from /usr/include/stdlib.h:390,
>                  from driver_conf.c:2:
> /usr/include/sys/select.h:58: warning: `__NFDBITS'
> redefined
> /usr/include/linux/posix_types.h:22: warning: this
> is the location of the 
> previous definition
> /usr/include/sys/select.h:60: warning: `__FDMASK'
> redefined
> /usr/include/linux/posix_types.h:34: warning: this
> is the location of the 
> previous definition
> /usr/include/sys/select.h:89: warning: `FD_SET'
> redefined
> /usr/src/linux/include/linux/time.h:129: warning:
> this is the location of the 
> previous definition
> /usr/include/sys/select.h:90: warning: `FD_CLR'
> redefined
> /usr/src/linux/include/linux/time.h:130: warning:
> this is the location of the 
> previous definition
> /usr/include/sys/select.h:91: warning: `FD_ISSET'
> redefined
> /usr/src/linux/include/linux/time.h:131: warning:
> this is the location of the 
> previous definition
> /usr/include/sys/select.h:92: warning: `FD_ZERO'
> redefined
> /usr/src/linux/include/linux/time.h:132: warning:
> this is the location of the 
> previous definition
> In file included from driver_conf.c:2:
> /usr/include/stdlib.h:133: parse error before
> `__ctype_get_mb_cur_max'
> /usr/include/stdlib.h:133: warning: data definition
> has no type or storage 
> class
> In file included from /usr/include/bits/types.h:143,
>                  from /usr/include/sys/types.h:30,
>                  from /usr/include/stdlib.h:390,
>                  from driver_conf.c:2:
> /usr/include/bits/pthreadtypes.h:50: parse error
> before `size_t'
> /usr/include/bits/pthreadtypes.h:50: warning: no
> semicolon at end of struct or 
> union
> /usr/include/bits/pthreadtypes.h:53: parse error
> before `__stacksize'
> /usr/include/bits/pthreadtypes.h:53: warning: data
> definition has no type or 
> storage class
> /usr/include/bits/pthreadtypes.h:54: warning: data
> definition has no type or 
> storage class
> In file included from /usr/include/sys/types.h:132,
>                  from /usr/include/stdlib.h:390,
>                  from driver_conf.c:2:
> /usr/src/linux/include/linux/time.h:13: parse error
> before `time_t'
> /usr/src/linux/include/linux/time.h:13: warning: no
> semicolon at end of struct 
> or union
> /usr/src/linux/include/linux/time.h:15: parse error
> before `}'
> /usr/src/linux/include/linux/time.h:19: parse error
> before `time_t'
> /usr/src/linux/include/linux/time.h:19: warning: no
> semicolon at end of struct 
> or union
> /usr/src/linux/include/linux/time.h:20: warning:
> type defaults to `int' in 
> declaration of `tv_usec'
> /usr/src/linux/include/linux/time.h:20: warning:
> data definition has no type 
> or storage class
> /usr/src/linux/include/linux/time.h:143: field
> `it_interval' has incomplete 
> type
> /usr/src/linux/include/linux/time.h:144: field
> `it_value' 
=== message truncated ===>
_______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
> 




More information about the HostAP mailing list