can not build hostapd with nl80211 support

Alexey Klimenok alexey.klimenok at gmail.com
Sat Oct 9 17:23:52 EDT 2010


Hi,

Im experiencing a problem with building hostapd with nl80211 support. I've
tried to build it as described here:

http://acx100.erley.org/git.html#libnl

I've got the latest versions of hostapd and libnl from git:

git://w1.fi/srv/git/hostap.git
git://git.kernel.org/pub/scm/libs/netlink/libnl.git

There are no erros when i build it without nl80211 support. Additional info:

System: CentOS 5.5 x32
Kernel: 2.6.18-194.11.3.el5

Here is a part of .config file i modified:

# Driver interface for drivers using the nl80211 kernel interface
CONFIG_DRIVER_NL80211=y
# driver_nl80211.c requires a rather new libnl (version 1.1) which may not
be
# shipped with your distribution yet. If that is the case, you need to build
# newer libnl version and point the hostapd build to use it.
LIBNL=/usr/src/libnl
CFLAGS += -I$(LIBNL)/include
LIBS += -L$(LIBNL)/lib

Here is the error im getting:

  CC  main.c
  CC  config_file.c
  CC  ../src/ap/hostapd.c
  CC  ../src/ap/wpa_auth_glue.c
  CC  ../src/ap/drv_callbacks.c
  CC  ../src/ap/ap_drv_ops.c
  CC  ../src/ap/utils.c
  CC  ../src/ap/authsrv.c
  CC  ../src/ap/ieee802_1x.c
  CC  ../src/ap/ap_config.c
  CC  ../src/ap/ieee802_11_auth.c
  CC  ../src/ap/sta_info.c
  CC  ../src/ap/wpa_auth.c
  CC  ../src/ap/tkip_countermeasures.c
  CC  ../src/ap/ap_mlme.c
  CC  ../src/ap/wpa_auth_ie.c
  CC  ../src/ap/preauth_auth.c
  CC  ../src/ap/pmksa_cache_auth.c
  CC  ../src/drivers/drivers.c
  CC  ../src/utils/eloop.c
  CC  ../src/utils/common.c
  CC  ../src/utils/wpa_debug.c
  CC  ../src/utils/wpabuf.c
  CC  ../src/utils/os_unix.c
  CC  ../src/utils/ip_addr.c
  CC  ../src/common/ieee802_11_common.c
  CC  ../src/common/wpa_common.c
  CC  ../src/eapol_auth/eapol_auth_sm.c
  CC  dump_state.c
  CC  ../src/eapol_auth/eapol_auth_dump.c
  CC  ../src/radius/radius.c
  CC  ../src/radius/radius_client.c
  CC  ../src/ap/accounting.c
  CC  ../src/ap/vlan_init.c
  CC  ctrl_iface.c
  CC  ../src/ap/ctrl_iface_ap.c
  CC  ../src/crypto/md5.c
  CC  ../src/ap/iapp.c
  CC  ../src/ap/peerkey_auth.c
  CC  ../src/drivers/driver_hostap.c
../src/drivers/driver_nl80211.c: In function send_and_recv:
../src/drivers/driver_nl80211.c:206: warning: passing argument 1 of
nl_send_auto_complete from incompatible pointer type
../src/drivers/driver_nl80211.c:221: warning: passing argument 1 of
nl_recvmsgs from incompatible pointer type
../src/drivers/driver_nl80211.c: In function family_handler:
../src/drivers/driver_nl80211.c:255: error: CTRL_ATTR_MCAST_GROUPS
undeclared (first use in this function)
../src/drivers/driver_nl80211.c:255: error: (Each undeclared identifier is
reported only once
../src/drivers/driver_nl80211.c:255: error: for each function it appears
in.)
../src/drivers/driver_nl80211.c:259: error: CTRL_ATTR_MCAST_GRP_MAX
undeclared (first use in this function)
../src/drivers/driver_nl80211.c:262: error: CTRL_ATTR_MCAST_GRP_NAME
undeclared (first use in this function)
../src/drivers/driver_nl80211.c:263: error: CTRL_ATTR_MCAST_GRP_ID
undeclared (first use in this function)
../src/drivers/driver_nl80211.c:259: warning: unused variable tb2
../src/drivers/driver_nl80211.c: In function nl_get_multicast_id:
../src/drivers/driver_nl80211.c:286: warning: passing argument 1 of
genl_ctrl_resolve from incompatible pointer type
../src/drivers/driver_nl80211.c: In function
wpa_driver_nl80211_event_receive:
../src/drivers/driver_nl80211.c:1177: warning: passing argument 1 of
nl_recvmsgs from incompatible pointer type
../src/drivers/driver_nl80211.c: In function wpa_driver_nl80211_init_nl:
../src/drivers/driver_nl80211.c:1347: warning: implicit declaration of
function nl_handle_alloc_cb
../src/drivers/driver_nl80211.c:1347: warning: assignment makes pointer from
integer without a cast
../src/drivers/driver_nl80211.c:1354: warning: assignment makes pointer from
integer without a cast
../src/drivers/driver_nl80211.c:1361: warning: passing argument 1 of
genl_connect from incompatible pointer type
../src/drivers/driver_nl80211.c:1367: warning: passing argument 1 of
genl_connect from incompatible pointer type
../src/drivers/driver_nl80211.c:1386: warning: passing argument 1 of
genl_ctrl_alloc_cache from incompatible pointer type
../src/drivers/driver_nl80211.c:1386: error: too few arguments to function
genl_ctrl_alloc_cache
../src/drivers/driver_nl80211.c:1392: warning: passing argument 1 of
genl_ctrl_alloc_cache from incompatible pointer type
../src/drivers/driver_nl80211.c:1392: error: too few arguments to function
genl_ctrl_alloc_cache
../src/drivers/driver_nl80211.c:1409: warning: passing argument 1 of
nl_socket_add_membership from incompatible pointer type
../src/drivers/driver_nl80211.c:1419: warning: passing argument 1 of
nl_socket_add_membership from incompatible pointer type
../src/drivers/driver_nl80211.c:1427: warning: passing argument 1 of
nl_socket_get_fd from incompatible pointer type
../src/drivers/driver_nl80211.c:1437: warning: implicit declaration of
function nl_handle_destroy
../src/drivers/driver_nl80211.c: In function wpa_driver_nl80211_init:
../src/drivers/driver_nl80211.c:1546: warning: passing argument 1 of
nl_socket_get_fd from incompatible pointer type
../src/drivers/driver_nl80211.c: In function wpa_driver_nl80211_deinit:
../src/drivers/driver_nl80211.c:1766: warning: passing argument 1 of
nl_socket_get_fd from incompatible pointer type
make: *** [../src/drivers/driver_nl80211.o] Error 1


Im not a programmer, so i have no ideas what causes the problem. Any
suggestions from your side will be appreciated.

Thanks in advance
-----
Alexey Klimenok
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20101010/d5885709/attachment.htm 


More information about the HostAP mailing list