Build of arptables with android toolchain

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

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

SLOCLanguage
4,311 ansic
90 sh
81 perl
60 makefile
4,542 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: arptables 0.0.4-3 (Tue Apr 4 20:56:36 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# arm-linux-androideabi-gcc -O2 -Wall -Wunused -I.//include/ -Iinclude/ -DARPTABLES_VERSION=\"0.0.4\" -c -o arptables-standalone.o arptables-standalone.c
# arm-linux-androideabi-gcc -O2 -Wall -Wunused -I.//include/ -Iinclude/ -DARPTABLES_VERSION=\"0.0.4\" -c -o arptables.o arptables.c
# arm-linux-androideabi-gcc -O2 -Wall -Wunused -I.//include/ -Iinclude/ -DARPTABLES_VERSION=\"0.0.4\" -c -o libarptc/libarptc.o libarptc/libarptc.c
# arm-linux-androideabi-gcc -O2 -Wall -Wunused -I.//include/ -Iinclude/ -DARPTABLES_VERSION=\"0.0.4\" -c -o extensions/arpt_standard.o extensions/arpt_standard.c
# libarptc/libarptc.c:27:22: error: conflicting types for 'socklen_t'
# typedef unsigned int socklen_t;
# ^
# In file included from /sysroot/sysroot/usr/include/strings.h:42:0,
# from /sysroot/sysroot/usr/include/stdlib.h:36,
# from libarptc/libarptc.c:17:
# /sysroot/sysroot/usr/include/sys/types.h:127:21: note: previous declaration of 'socklen_t' was here
# typedef __socklen_t socklen_t;
# ^
# arptables.c:251:32: error: 'ETH_ALEN' undeclared here (not in a function)
# unsigned char mac_type_unicast[ETH_ALEN] = {0,0,0,0,0,0};
# ^
# arptables.c: In function 'getmac_and_mask':
# arptables.c:299:3: warning: implicit declaration of function 'ether_aton' [-Wimplicit-function-declaration]
# if (!(addr = ether_aton(p + 1)))
# ^
# arptables.c:299:14: warning: assignment makes pointer from integer without a cast [enabled by default]
# if (!(addr = ether_aton(p + 1)))
# ^
# arptables.c:304:13: warning: assignment makes pointer from integer without a cast [enabled by default]
# if (!(addr = ether_aton(from)))
# ^
# arptables.c: In function 'get16_and_mask':
# arptables.c:342:3: warning: implicit declaration of function 'htons' [-Wimplicit-function-declaration]
# *mask = htons((uint16_t)i);
# ^
# arptables.c: In function 'network_to_addr':
# arptables.c:424:3: warning: implicit declaration of function 'htonl' [-Wimplicit-function-declaration]
# addr.s_addr = htonl((unsigned long) net->n_net);
# ^
# arptables.c: In function 'addr_to_network':
# arptables.c:894:2: warning: implicit declaration of function 'ntohl' [-Wimplicit-function-declaration]
# if ((net = getnetbyaddr((long) ntohl(addr->s_addr), AF_INET)) != NULL)
# ^
# arptables.c: In function 'print_firewall':
# arptables.c:1324:3: warning: implicit declaration of function 'ntohs' [-Wimplicit-function-declaration]
# int tmp = ntohs(fw->arp.arpop);
# ^
# libarptc/libarptc.c: In function 'dump_entry':
# libarptc/libarptc.c:125:9: warning: implicit declaration of function 'ntohl' [-Wimplicit-function-declaration]
# IP_PARTS(e->arp.src.s_addr),IP_PARTS(e->arp.smsk.s_addr));
# ^
# make: *** [Makefile:31: libarptc/libarptc.o] Error 1
# make: *** Waiting for unfinished jobs....
# make: *** [Makefile:25: arptables.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...