Build of hostapd with android toolchain

The build took 00h 01m 06s and was NOT successful.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
206,044 ansic
1,279 makefile
270 python
48 perl
207,641 total

The process tree of the build process is here.

List of Errors

Log

To avoid scrolling, you may jump to the last line of the invocation of makepkg that was used to build this package.

Removed vanilla repositories from pacman.conf and added:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi
# /toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/SOURCES --> /sysroot/SOURCES
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/COPYING --> /sysroot/COPYING
# /toolchain_root/COPYING3 --> /sysroot/COPYING3
# /toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: hostapd 2.5-2 (Tue Apr 4 20:59:39 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# CC main.c
# CC ../src/ap/wpa_auth_glue.c
# CC ../src/ap/drv_callbacks.c
# CC config_file.c
# CC ../src/ap/ap_drv_ops.c
# CC ../src/ap/utils.c
# CC ../src/ap/authsrv.c
# CC ../src/ap/hostapd.c
# CC ../src/ap/eap_user_db.c
# CC ../src/ap/ieee802_11_auth.c
# CC ../src/ap/ap_config.c
# CC ../src/ap/ieee802_1x.c
# CC ../src/ap/tkip_countermeasures.c
# CC ../src/ap/sta_info.c
# CC ../src/ap/ap_mlme.c
# CC ../src/ap/preauth_auth.c
# CC ../src/ap/wpa_auth_ie.c
# CC ../src/ap/pmksa_cache_auth.c
# CC ../src/ap/bss_load.c
# CC ../src/ap/wpa_auth.c
# CC ../src/ap/ieee802_11_shared.c
# CC ../src/drivers/drivers.c
# CC ../src/ap/beacon.c
# CC ../src/utils/eloop.c
# CC ../src/utils/wpa_debug.c
# CC ../src/utils/common.c
# CC ../src/utils/wpabuf.c
# CC ../src/utils/ip_addr.c
# CC ../src/utils/os_unix.c
# CC ../src/common/hw_features_common.c
# CC ../src/common/ieee802_11_common.c
# CC ../src/eapol_auth/eapol_auth_dump.c
# CC ../src/common/wpa_common.c
# CC ../src/eapol_auth/eapol_auth_sm.c
# CC ../src/radius/radius_das.c
# CC ../src/radius/radius_client.c
# CC ../src/ap/accounting.c
# CC ../src/radius/radius.c
# CC ../src/ap/vlan_init.c
# CC ../src/ap/peerkey_auth.c
# CC ../src/ap/ctrl_iface_ap.c
# In file included from ../src/drivers/linux_wext.h:35:0,
# from ../src/drivers/driver_hostap.c:12:
# /sysroot/sysroot/usr/include/linux/wireless.h:451:12: error: 'IFNAMSIZ' undeclared here (not in a function)
# char name[IFNAMSIZ];
# ^
# In file included from ../src/drivers/driver_hostap.c:23:0:
# ../src/drivers/priv_netlink.h:48:0: warning: "NLMSG_ALIGNTO" redefined [enabled by default]
# #define NLMSG_ALIGNTO 4
# ^
# In file included from /sysroot/sysroot/usr/include/linux/if_link.h:22:0,
# from /sysroot/sysroot/usr/include/linux/netdevice.h:25,
# from /sysroot/sysroot/usr/include/linux/if_arp.h:21,
# from /sysroot/sysroot/usr/include/net/if_arp.h:2,
# from ../src/drivers/driver_hostap.c:20:
# /sysroot/sysroot/usr/include/linux/netlink.h:86:0: note: this is the location of the previous definition
# #define NLMSG_ALIGNTO 4U
# ^
# In file included from ../src/drivers/driver_hostap.c:23:0:
# ../src/drivers/priv_netlink.h:49:0: warning: "NLMSG_ALIGN" redefined [enabled by default]
# #define NLMSG_ALIGN(len) (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1))
# ^
# In file included from /sysroot/sysroot/usr/include/linux/if_link.h:22:0,
# from /sysroot/sysroot/usr/include/linux/netdevice.h:25,
# from /sysroot/sysroot/usr/include/linux/if_arp.h:21,
# from /sysroot/sysroot/usr/include/net/if_arp.h:2,
# from ../src/drivers/driver_hostap.c:20:
# /sysroot/sysroot/usr/include/linux/netlink.h:87:0: note: this is the location of the previous definition
# #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) )
# ^
# In file included from ../src/drivers/driver_hostap.c:23:0:
# ../src/drivers/priv_netlink.h:51:0: warning: "NLMSG_LENGTH" redefined [enabled by default]
# #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr)))
# ^
# In file included from /sysroot/sysroot/usr/include/linux/if_link.h:22:0,
# from /sysroot/sysroot/usr/include/linux/netdevice.h:25,
# from /sysroot/sysroot/usr/include/linux/if_arp.h:21,
# from /sysroot/sysroot/usr/include/net/if_arp.h:2,
# from ../src/drivers/driver_hostap.c:20:
# /sysroot/sysroot/usr/include/linux/netlink.h:90:0: note: this is the location of the previous definition
# #define NLMSG_LENGTH(len) ((len) + NLMSG_HDRLEN)
# ^
# In file included from ../src/drivers/driver_hostap.c:23:0:
# ../src/drivers/priv_netlink.h:53:0: warning: "NLMSG_DATA" redefined [enabled by default]
# #define NLMSG_DATA(nlh) ((void*) (((char*) nlh) + NLMSG_LENGTH(0)))
# ^
# In file included from /sysroot/sysroot/usr/include/linux/if_link.h:22:0,
# from /sysroot/sysroot/usr/include/linux/netdevice.h:25,
# from /sysroot/sysroot/usr/include/linux/if_arp.h:21,
# from /sysroot/sysroot/usr/include/net/if_arp.h:2,
# from ../src/drivers/driver_hostap.c:20:
# /sysroot/sysroot/usr/include/linux/netlink.h:92:0: note: this is the location of the previous definition
# #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
# ^
# In file included from ../src/drivers/driver_hostap.c:23:0:
# ../src/drivers/priv_netlink.h:54:0: warning: "NLMSG_NEXT" redefined [enabled by default]
# #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
# ^
# In file included from /sysroot/sysroot/usr/include/linux/if_link.h:22:0,
# from /sysroot/sysroot/usr/include/linux/netdevice.h:25,
# from /sysroot/sysroot/usr/include/linux/if_arp.h:21,
# from /sysroot/sysroot/usr/include/net/if_arp.h:2,
# from ../src/drivers/driver_hostap.c:20:
# /sysroot/sysroot/usr/include/linux/netlink.h:94:0: note: this is the location of the previous definition
# #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
# ^
# In file included from ../src/drivers/driver_hostap.c:23:0:
# ../src/drivers/priv_netlink.h:57:0: warning: "NLMSG_OK" redefined [enabled by default]
# #define NLMSG_OK(nlh,len) ((len) >= (int) sizeof(struct nlmsghdr) && \
# ^
# In file included from /sysroot/sysroot/usr/include/linux/if_link.h:22:0,
# from /sysroot/sysroot/usr/include/linux/netdevice.h:25,
# from /sysroot/sysroot/usr/include/linux/if_arp.h:21,
# from /sysroot/sysroot/usr/include/net/if_arp.h:2,
# from ../src/drivers/driver_hostap.c:20:
# /sysroot/sysroot/usr/include/linux/netlink.h:95:0: note: this is the location of the previous definition
# #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && (nlh)->nlmsg_len <= (len))
# ^
# In file included from ../src/drivers/driver_hostap.c:23:0:
# ../src/drivers/priv_netlink.h:76:8: error: redefinition of 'struct sockaddr_nl'
# struct sockaddr_nl
# ^
# In file included from /sysroot/sysroot/usr/include/linux/if_link.h:22:0,
# from /sysroot/sysroot/usr/include/linux/netdevice.h:25,
# from /sysroot/sysroot/usr/include/linux/if_arp.h:21,
# from /sysroot/sysroot/usr/include/net/if_arp.h:2,
# from ../src/drivers/driver_hostap.c:20:
# /sysroot/sysroot/usr/include/linux/netlink.h:54:8: note: originally defined here
# struct sockaddr_nl {
# ^
# In file included from ../src/drivers/driver_hostap.c:23:0:
# ../src/drivers/priv_netlink.h:84:8: error: redefinition of 'struct nlmsghdr'
# struct nlmsghdr
# ^
# In file included from /sysroot/sysroot/usr/include/linux/if_link.h:22:0,
# from /sysroot/sysroot/usr/include/linux/netdevice.h:25,
# from /sysroot/sysroot/usr/include/linux/if_arp.h:21,
# from /sysroot/sysroot/usr/include/net/if_arp.h:2,
# from ../src/drivers/driver_hostap.c:20:
# /sysroot/sysroot/usr/include/linux/netlink.h:61:8: note: originally defined here
# struct nlmsghdr {
# ^
# ../src/drivers/driver_hostap.c: In function 'hostap_init_sockets':
# ../src/drivers/driver_hostap.c:218:15: error: storage size of 'ifr' isn't known
# struct ifreq ifr;
# ^
# ../src/drivers/driver_hostap.c: In function 'hostap_set_iface_flags':
# ../src/drivers/driver_hostap.c:347:15: error: storage size of 'ifr' isn't known
# struct ifreq ifr;
# ^
# ../src/drivers/driver_hostap.c: In function 'hostapd_ioctl':
# ../src/drivers/driver_hostap.c:376:16: error: 'struct iwreq' has no member named 'ifr_name'
# os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ);
# ^
# ../src/drivers/driver_hostap.c: In function 'hostap_ioctl_prism2param':
# ../src/drivers/driver_hostap.c:490:16: error: 'struct iwreq' has no member named 'ifr_name'
# os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ);
# ^
# ../src/drivers/driver_hostap.c: In function 'hostap_set_ssid':
# ../src/drivers/driver_hostap.c:548:16: error: 'struct iwreq' has no member named 'ifr_name'
# os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ);
# ^
# ../src/drivers/driver_hostap.c: In function 'hostap_get_we_version':
# ../src/drivers/driver_hostap.c:911:16: error: 'struct iwreq' has no member named 'ifr_name'
# os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ);
# ^
# ../src/drivers/driver_hostap.c: In function 'hostap_set_freq':
# ../src/drivers/driver_hostap.c:1058:16: error: 'struct iwreq' has no member named 'ifr_name'
# os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ);
# ^
# make: *** [Makefile:958: ../src/drivers/driver_hostap.o] Error 1
# make: *** Waiting for unfinished jobs....
# CC ../src/ap/iapp.c
# CC ctrl_iface.c
# CC ../src/drivers/driver_wired.c
# ==> ERROR: A failure occurred in build().
# Aborting...