hostapd-0.6.3 compilation against libnl-1.1 fails(mabe bad config)

GNUtoo at no-log.org GNUtoo
Sat May 24 04:40:27 PDT 2008


hello,i want to make an ap with my rt2500 or my broadcom card...but in
order to do so i need to compile hostapd against libnl(i already compiled
iw and it compiled fine,by the way i also patched the kernel with
allow-ap-vlan-modes.patch from
http://johannes.sipsolutions.net/patches/kernel/all/LATEST/ and i have a
2.6.26 kernel)
here what i added to the .config file :
CFLAGS += -I/usr/include/netlink/
LIBS += -L/usr/lib/

here are my libnl files:
/usr
/usr/include
/usr/include/netlink
/usr/include/netlink/addr.h
/usr/include/netlink/attr.h
/usr/include/netlink/cache-api.h
/usr/include/netlink/cache.h
/usr/include/netlink/data.h
/usr/include/netlink/fib_lookup
/usr/include/netlink/fib_lookup/lookup.h
/usr/include/netlink/fib_lookup/request.h
/usr/include/netlink/genl
/usr/include/netlink/genl/ctrl.h
/usr/include/netlink/genl/family.h
/usr/include/netlink/genl/genl.h
/usr/include/netlink/genl/mngt.h
/usr/include/netlink/handlers.h
/usr/include/netlink/list.h
/usr/include/netlink/msg.h
/usr/include/netlink/netlink-compat.h
/usr/include/netlink/netlink-kernel.h
/usr/include/netlink/netlink.h
/usr/include/netlink/object-api.h
/usr/include/netlink/object.h
/usr/include/netlink/route
/usr/include/netlink/route/addr.h
/usr/include/netlink/route/class-modules.h
/usr/include/netlink/route/class.h
/usr/include/netlink/route/classifier-modules.h
/usr/include/netlink/route/classifier.h
/usr/include/netlink/route/cls
/usr/include/netlink/route/cls/fw.h
/usr/include/netlink/route/cls/police.h
/usr/include/netlink/route/cls/u32.h
/usr/include/netlink/route/link.h
/usr/include/netlink/route/neighbour.h
/usr/include/netlink/route/neightbl.h
/usr/include/netlink/route/nexthop.h
/usr/include/netlink/route/qdisc-modules.h
/usr/include/netlink/route/qdisc.h
/usr/include/netlink/route/route.h
/usr/include/netlink/route/rtnl.h
/usr/include/netlink/route/rule.h
/usr/include/netlink/route/sch
/usr/include/netlink/route/sch/cbq.h
/usr/include/netlink/route/sch/dsmark.h
/usr/include/netlink/route/sch/fifo.h
/usr/include/netlink/route/sch/htb.h
/usr/include/netlink/route/sch/netem.h
/usr/include/netlink/route/sch/prio.h
/usr/include/netlink/route/sch/red.h
/usr/include/netlink/route/sch/sfq.h
/usr/include/netlink/route/sch/tbf.h
/usr/include/netlink/route/tc.h
/usr/include/netlink/socket.h
/usr/include/netlink/types.h
/usr/include/netlink/utils.h
/usr/lib
/usr/lib/libnl.so -> libnl.so.1
/usr/lib/libnl.so.1 -> libnl.so.1.1
/usr/lib/libnl.so.1.1
/usr/lib/pkgconfig
/usr/lib/pkgconfig/libnl-1.pc
/usr/share
/usr/share/doc
/usr/share/doc/libnl-1.1-r1
/usr/share/doc/libnl-1.1-r1/ChangeLog.bz2

and here's the compilation faillure:
KEY -DCONFIG_IEEE80211W -DCONFIG_IEEE80211R -DCONFIG_DRIVER_HOSTAP
-DCONFIG_DRIVER_WIRED -DCONFIG_DRIVER_PRISM54 -DCONFIG_DRIVER_NL80211
-DEAP_MD5 -DEAP_TLS -DEAP_PEAP -DEAP_TTLS -DEAP_MSCHAPv2 -DEAP_GTC
-DEAP_SIM -DEAP_AKA -DEAP_PAX -DEAP_PSK -DEAP_SAKE -DEAP_GPSK
-DEAP_GPSK_SHA256 -DEAP_TLV -DEAP_SERVER -DEAP_TLS_FUNCS -DPKCS12_FUNCS
-DINTERNAL_SHA256 -DCONFIG_NO_T_PRF -DRADIUS_SERVER   -c -o driver_wired.o
driver_wired.c
i686-pc-linux-gnu-gcc -O1 -pipe -g -ggdb -DHOSTAPD_DUMP_STATE -I../src
-I../src/crypto -I../src/utils -I../src/common -I/usr/include/netlink/
-DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -DCONFIG_IAPP
-DCONFIG_RSN_PREAUTH -DCONFIG_PEERKEY -DCONFIG_IEEE80211W
-DCONFIG_IEEE80211R -DCONFIG_DRIVER_HOSTAP -DCONFIG_DRIVER_WIRED
-DCONFIG_DRIVER_PRISM54 -DCONFIG_DRIVER_NL80211 -DEAP_MD5 -DEAP_TLS
-DEAP_PEAP -DEAP_TTLS -DEAP_MSCHAPv2 -DEAP_GTC -DEAP_SIM -DEAP_AKA
-DEAP_PAX -DEAP_PSK -DEAP_SAKE -DEAP_GPSK -DEAP_GPSK_SHA256 -DEAP_TLV
-DEAP_SERVER -DEAP_TLS_FUNCS -DPKCS12_FUNCS -DINTERNAL_SHA256
-DCONFIG_NO_T_PRF -DRADIUS_SERVER   -c -o driver_prism54.o
driver_prism54.c
i686-pc-linux-gnu-gcc -O1 -pipe -g -ggdb -DHOSTAPD_DUMP_STATE -I../src
-I../src/crypto -I../src/utils -I../src/common -I/usr/include/netlink/
-DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX -DCONFIG_IAPP
-DCONFIG_RSN_PREAUTH -DCONFIG_PEERKEY -DCONFIG_IEEE80211W
-DCONFIG_IEEE80211R -DCONFIG_DRIVER_HOSTAP -DCONFIG_DRIVER_WIRED
-DCONFIG_DRIVER_PRISM54 -DCONFIG_DRIVER_NL80211 -DEAP_MD5 -DEAP_TLS
-DEAP_PEAP -DEAP_TTLS -DEAP_MSCHAPv2 -DEAP_GTC -DEAP_SIM -DEAP_AKA
-DEAP_PAX -DEAP_PSK -DEAP_SAKE -DEAP_GPSK -DEAP_GPSK_SHA256 -DEAP_TLV
-DEAP_SERVER -DEAP_TLS_FUNCS -DPKCS12_FUNCS -DINTERNAL_SHA256
-DCONFIG_NO_T_PRF -DRADIUS_SERVER   -c -o driver_nl80211.o
driver_nl80211.c
driver_nl80211.c: In function 'i802_set_encryption':
driver_nl80211.c:190: error: 'NL80211_CMD_DEL_KEY' undeclared (first use
in this function)
driver_nl80211.c:190: error: (Each undeclared identifier is reported only
once
driver_nl80211.c:190: error: for each function it appears in.)
driver_nl80211.c:193: error: 'NL80211_CMD_NEW_KEY' undeclared (first use
in this function)
driver_nl80211.c:194: error: 'NL80211_ATTR_KEY_DATA' undeclared (first use
in this function)
driver_nl80211.c:197: error: 'NL80211_ATTR_KEY_CIPHER' undeclared (first
use in this function)
driver_nl80211.c:211: error: 'NL80211_ATTR_MAC' undeclared (first use in
this function)
driver_nl80211.c:212: error: 'NL80211_ATTR_KEY_IDX' undeclared (first use
in this function)
driver_nl80211.c:213: error: 'NL80211_ATTR_IFINDEX' undeclared (first use
in this function)
driver_nl80211.c:239: error: 'NL80211_CMD_SET_KEY' undeclared (first use
in this function)
driver_nl80211.c:242: error: 'NL80211_ATTR_KEY_DEFAULT' undeclared (first
use in this function)
driver_nl80211.c: In function 'get_key_handler':
driver_nl80211.c:271: error: 'NL80211_ATTR_MAX' undeclared (first use in
this function)
driver_nl80211.c:283: error: 'NL80211_ATTR_KEY_SEQ' undeclared (first use
in this function)
driver_nl80211.c: In function 'i802_get_seqnum':
driver_nl80211.c:305: error: 'NL80211_CMD_GET_KEY' undeclared (first use
in this function)
driver_nl80211.c:308: error: 'NL80211_ATTR_MAC' undeclared (first use in
this function)
driver_nl80211.c:309: error: 'NL80211_ATTR_KEY_IDX' undeclared (first use
in this function)
driver_nl80211.c:310: error: 'NL80211_ATTR_IFINDEX' undeclared (first use
in this function)
driver_nl80211.c: In function 'i802_flush':
driver_nl80211.c:573: error: 'NL80211_CMD_NEW_STATION' undeclared (first
use in this function)
driver_nl80211.c:578: error: 'NL80211_ATTR_IFINDEX' undeclared (first use
in this function)
driver_nl80211.c: In function 'get_sta_handler':
driver_nl80211.c:598: error: 'NL80211_ATTR_MAX' undeclared (first use in
this function)
driver_nl80211.c:601: error: 'NL80211_STA_STAT_MAX' undeclared (first use
in this function)
driver_nl80211.c:603: error: 'NL80211_STA_STAT_INACTIVE_TIME' undeclared
(first use in this function)
driver_nl80211.c:603: error: array index in initializer not of integer type
driver_nl80211.c:603: error: (near initialization for 'stats_policy')
driver_nl80211.c:603: error: field name not in record or union initializer
driver_nl80211.c:603: error: (near initialization for 'stats_policy')
driver_nl80211.c:604: error: 'NL80211_STA_STAT_RX_BYTES' undeclared (first
use in this function)
driver_nl80211.c:604: error: array index in initializer not of integer type
driver_nl80211.c:604: error: (near initialization for 'stats_policy')
driver_nl80211.c:604: error: field name not in record or union initializer
driver_nl80211.c:604: error: (near initialization for 'stats_policy')
driver_nl80211.c:605: error: 'NL80211_STA_STAT_TX_BYTES' undeclared (first
use in this function)
driver_nl80211.c:605: error: array index in initializer not of integer type
driver_nl80211.c:605: error: (near initialization for 'stats_policy')
driver_nl80211.c:605: error: field name not in record or union initializer
driver_nl80211.c:605: error: (near initialization for 'stats_policy')
driver_nl80211.c:617: error: 'NL80211_ATTR_STA_STATS' undeclared (first
use in this function)
driver_nl80211.c: In function 'i802_read_sta_data':
driver_nl80211.c:654: error: 'NL80211_CMD_GET_STATION' undeclared (first
use in this function)
driver_nl80211.c:656: error: 'NL80211_ATTR_MAC' undeclared (first use in
this function)
driver_nl80211.c:657: error: 'NL80211_ATTR_IFINDEX' undeclared (first use
in this function)
driver_nl80211.c: In function 'i802_sta_add':
driver_nl80211.c:769: error: 'NL80211_CMD_NEW_STATION' undeclared (first
use in this function)
driver_nl80211.c:771: error: 'NL80211_ATTR_IFINDEX' undeclared (first use
in this function)
driver_nl80211.c:773: error: 'NL80211_ATTR_MAC' undeclared (first use in
this function)
driver_nl80211.c:774: error: 'NL80211_ATTR_STA_AID' undeclared (first use
in this function)
driver_nl80211.c:775: error: 'NL80211_ATTR_STA_SUPPORTED_RATES' undeclared
(first use in this function)
driver_nl80211.c:777: error: 'NL80211_ATTR_STA_LISTEN_INTERVAL' undeclared
(first use in this function)
driver_nl80211.c: In function 'i802_sta_remove':
driver_nl80211.c:807: error: 'NL80211_CMD_DEL_STATION' undeclared (first
use in this function)
driver_nl80211.c:809: error: 'NL80211_ATTR_IFINDEX' undeclared (first use
in this function)
driver_nl80211.c:811: error: 'NL80211_ATTR_MAC' undeclared (first use in
this function)
driver_nl80211.c: In function 'i802_sta_set_flags':
driver_nl80211.c:844: error: 'NL80211_CMD_SET_STATION' undeclared (first
use in this function)
driver_nl80211.c:846: error: 'NL80211_ATTR_IFINDEX' undeclared (first use
in this function)
driver_nl80211.c:848: error: 'NL80211_ATTR_MAC' undeclared (first use in
this function)
driver_nl80211.c:851: error: 'NL80211_STA_FLAG_AUTHORIZED' undeclared
(first use in this function)
driver_nl80211.c:854: error: 'NL80211_STA_FLAG_WME' undeclared (first use
in this function)
driver_nl80211.c:857: error: 'NL80211_STA_FLAG_SHORT_PREAMBLE' undeclared
(first use in this function)
driver_nl80211.c:859: error: 'NL80211_ATTR_STA_FLAGS' undeclared (first
use in this function)
driver_nl80211.c: In function 'nl80211_remove_iface':
driver_nl80211.c:913: error: 'NL80211_CMD_DEL_INTERFACE' undeclared (first
use in this function)
driver_nl80211.c:914: error: 'NL80211_ATTR_IFINDEX' undeclared (first use
in this function)
driver_nl80211.c: In function 'nl80211_create_iface':
driver_nl80211.c:938: error: 'NL80211_CMD_NEW_INTERFACE' undeclared (first
use in this function)
driver_nl80211.c:939: error: 'NL80211_ATTR_IFINDEX' undeclared (first use
in this function)
driver_nl80211.c:941: error: 'NL80211_ATTR_IFNAME' undeclared (first use
in this function)
driver_nl80211.c:942: error: 'NL80211_ATTR_IFTYPE' undeclared (first use
in this function)
driver_nl80211.c:951: error: 'NL80211_MNTR_FLAG_COOK_FRAMES' undeclared
(first use in this function)
driver_nl80211.c:953: error: 'NL80211_ATTR_MNTR_FLAGS' undeclared (first
use in this function)
driver_nl80211.c: In function 'i802_set_beacon':
driver_nl80211.c:1044: error: 'NL80211_CMD_NEW_BEACON' undeclared (first
use in this function)
driver_nl80211.c:1052: error: 'NL80211_CMD_SET_BEACON' undeclared (first
use in this function)
driver_nl80211.c:1056: error: 'NL80211_ATTR_BEACON_HEAD' undeclared (first
use in this function)
driver_nl80211.c:1057: error: 'NL80211_ATTR_BEACON_TAIL' undeclared (first
use in this function)
driver_nl80211.c:1058: error: 'NL80211_ATTR_IFINDEX' undeclared (first use
in this function)
driver_nl80211.c:1059: error: 'NL80211_ATTR_BEACON_INTERVAL' undeclared
(first use in this function)
driver_nl80211.c:1063: error: 'NL80211_ATTR_DTIM_PERIOD' undeclared (first
use in this function)
driver_nl80211.c: In function 'i802_del_beacon':
driver_nl80211.c:1090: error: 'NL80211_CMD_DEL_BEACON' undeclared (first
use in this function)
driver_nl80211.c:1091: error: 'NL80211_ATTR_IFINDEX' undeclared (first use
in this function)
driver_nl80211.c: In function 'i802_set_beacon_int':
driver_nl80211.c:1153: error: 'NL80211_CMD_SET_BEACON' undeclared (first
use in this function)
driver_nl80211.c:1154: error: 'NL80211_ATTR_IFINDEX' undeclared (first use
in this function)
driver_nl80211.c:1156: error: 'NL80211_ATTR_BEACON_INTERVAL' undeclared
(first use in this function)
driver_nl80211.c: In function 'i802_set_dtim_period':
driver_nl80211.c:1182: error: 'NL80211_CMD_SET_BEACON' undeclared (first
use in this function)
driver_nl80211.c:1183: error: 'NL80211_ATTR_IFINDEX' undeclared (first use
in this function)
driver_nl80211.c:1186: error: 'NL80211_ATTR_DTIM_PERIOD' undeclared (first
use in this function)
driver_nl80211.c: In function 'phy_info_handler':
driver_nl80211.c:1265: error: 'NL80211_ATTR_MAX' undeclared (first use in
this function)
driver_nl80211.c:1269: error: 'NL80211_BAND_ATTR_MAX' undeclared (first
use in this function)
driver_nl80211.c:1271: error: 'NL80211_FREQUENCY_ATTR_MAX' undeclared
(first use in this function)
driver_nl80211.c:1273: error: 'NL80211_FREQUENCY_ATTR_FREQ' undeclared
(first use in this function)
driver_nl80211.c:1273: error: array index in initializer not of integer type
driver_nl80211.c:1273: error: (near initialization for 'freq_policy')
driver_nl80211.c:1273: error: field name not in record or union initializer
driver_nl80211.c:1273: error: (near initialization for 'freq_policy')
driver_nl80211.c:1274: error: 'NL80211_FREQUENCY_ATTR_DISABLED' undeclared
(first use in this function)
driver_nl80211.c:1274: error: array index in initializer not of integer type
driver_nl80211.c:1274: error: (near initialization for 'freq_policy')
driver_nl80211.c:1274: error: field name not in record or union initializer
driver_nl80211.c:1274: error: (near initialization for 'freq_policy')
driver_nl80211.c:1275: error: 'NL80211_FREQUENCY_ATTR_PASSIVE_SCAN'
undeclared (first use in this function)
driver_nl80211.c:1275: error: array index in initializer not of integer type
driver_nl80211.c:1275: error: (near initialization for 'freq_policy')
driver_nl80211.c:1275: error: field name not in record or union initializer
driver_nl80211.c:1275: error: (near initialization for 'freq_policy')
driver_nl80211.c:1276: error: 'NL80211_FREQUENCY_ATTR_NO_IBSS' undeclared
(first use in this function)
driver_nl80211.c:1276: error: array index in initializer not of integer type
driver_nl80211.c:1276: error: (near initialization for 'freq_policy')
driver_nl80211.c:1276: error: field name not in record or union initializer
driver_nl80211.c:1276: error: (near initialization for 'freq_policy')
driver_nl80211.c:1277: error: 'NL80211_FREQUENCY_ATTR_RADAR' undeclared
(first use in this function)
driver_nl80211.c:1277: error: array index in initializer not of integer type
driver_nl80211.c:1277: error: (near initialization for 'freq_policy')
driver_nl80211.c:1277: error: field name not in record or union initializer
driver_nl80211.c:1277: error: (near initialization for 'freq_policy')
driver_nl80211.c:1280: error: 'NL80211_BITRATE_ATTR_MAX' undeclared (first
use in this function)
driver_nl80211.c:1282: error: 'NL80211_BITRATE_ATTR_RATE' undeclared
(first use in this function)
driver_nl80211.c:1282: error: array index in initializer not of integer type
driver_nl80211.c:1282: error: (near initialization for 'rate_policy')
driver_nl80211.c:1282: error: field name not in record or union initializer
driver_nl80211.c:1282: error: (near initialization for 'rate_policy')
driver_nl80211.c:1283: error: 'NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE'
undeclared (first use in this function)
driver_nl80211.c:1283: error: array index in initializer not of integer type
driver_nl80211.c:1283: error: (near initialization for 'rate_policy')
driver_nl80211.c:1283: error: field name not in record or union initializer
driver_nl80211.c:1283: error: (near initialization for 'rate_policy')
driver_nl80211.c:1296: error: 'NL80211_ATTR_WIPHY_BANDS' undeclared (first
use in this function)
driver_nl80211.c:1314: error: 'NL80211_BAND_ATTR_FREQS' undeclared (first
use in this function)
driver_nl80211.c:1366: error: 'NL80211_BAND_ATTR_RATES' undeclared (first
use in this function)
driver_nl80211.c: In function 'i802_get_hw_feature_data':
driver_nl80211.c:1427: error: 'NL80211_CMD_GET_WIPHY' undeclared (first
use in this function)
driver_nl80211.c:1429: error: 'NL80211_ATTR_IFINDEX' undeclared (first use
in this function)
driver_nl80211.c: In function 'i802_set_sta_vlan':
driver_nl80211.c:1473: error: 'NL80211_CMD_SET_STATION' undeclared (first
use in this function)
driver_nl80211.c:1475: error: 'NL80211_ATTR_IFINDEX' undeclared (first use
in this function)
driver_nl80211.c:1477: error: 'NL80211_ATTR_MAC' undeclared (first use in
this function)
driver_nl80211.c: In function 'nl80211_set_master_mode':
driver_nl80211.c:1839: error: 'NL80211_CMD_SET_INTERFACE' undeclared
(first use in this function)
driver_nl80211.c:1840: error: 'NL80211_ATTR_IFINDEX' undeclared (first use
in this function)
driver_nl80211.c:1842: error: 'NL80211_ATTR_IFTYPE' undeclared (first use
in this function)
make: *** [driver_nl80211.o] Error 1
make: *** Waiting for unfinished jobs....



More information about the Hostap mailing list