Build of netselect with musl toolchain

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

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

SLOCLanguage
911 ansic
74 makefile
67 sh
1,052 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

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...

There were existing files in /sysroot, using those
# /sysroot/lib
# /sysroot/share
# /sysroot/bin
# /sysroot/include
# /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=clang CXX=clang++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: netselect 0.3-3 (Tue Apr 4 23:41:18 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -O2 -Wall -I. -g -c -o netselect.o netselect.c
# In file included from netselect.c:59:
# ./netinet/ip.h:51:2: error: unknown type name 'u_char'; did you mean 'char'?
# u_char ip_hl:4, /* header length */
# ^~~~~~
# char
# ./netinet/ip.h:58:2: error: unknown type name 'u_char'; did you mean 'char'?
# u_char ip_tos; /* type of service */
# ^~~~~~
# char
# ./netinet/ip.h:60:2: error: unknown type name 'u_short'; did you mean 'n_short'?
# u_short ip_id; /* identification */
# ^~~~~~~
# n_short
# /sysroot/include/netinet/in_systm.h:6:18: note: 'n_short' declared here
# typedef uint16_t n_short;
# ^
# In file included from netselect.c:59:
# ./netinet/ip.h:65:2: error: unknown type name 'u_char'; did you mean 'char'?
# u_char ip_ttl; /* time to live */
# ^~~~~~
# char
# ./netinet/ip.h:66:2: error: unknown type name 'u_char'; did you mean 'char'?
# u_char ip_p; /* protocol */
# ^~~~~~
# char
# ./netinet/ip.h:67:2: error: unknown type name 'u_short'; did you mean 'n_short'?
# u_short ip_sum; /* checksum */
# ^~~~~~~
# n_short
# /sysroot/include/netinet/in_systm.h:6:18: note: 'n_short' declared here
# typedef uint16_t n_short;
# ^
# In file included from netselect.c:59:
# ./netinet/ip.h:130:2: error: unknown type name 'u_char'; did you mean 'char'?
# u_char ipt_code; /* IPOPT_TS */
# ^~~~~~
# char
# ./netinet/ip.h:131:2: error: unknown type name 'u_char'; did you mean 'char'?
# u_char ipt_len; /* size of structure (variable) */
# ^~~~~~
# char
# ./netinet/ip.h:132:2: error: unknown type name 'u_char'; did you mean 'char'?
# u_char ipt_ptr; /* index of current entry */
# ^~~~~~
# char
# ./netinet/ip.h:134:2: error: unknown type name 'u_char'; did you mean 'char'?
# u_char ipt_flg:4, /* flags, see below */
# ^~~~~~
# char
# In file included from netselect.c:60:
# ./netinet/ip_icmp.h:45:2: error: unknown type name 'u_char'; did you mean 'char'?
# u_char icmp_type; /* type of message, see below */
# ^~~~~~
# char
# ./netinet/ip_icmp.h:46:2: error: unknown type name 'u_char'; did you mean 'char'?
# u_char icmp_code; /* type sub code */
# ^~~~~~
# char
# ./netinet/ip_icmp.h:47:2: error: unknown type name 'u_short'; did you mean 'n_short'?
# u_short icmp_cksum; /* ones complement cksum of struct */
# ^~~~~~~
# n_short
# /sysroot/include/netinet/in_systm.h:6:18: note: 'n_short' declared here
# typedef uint16_t n_short;
# ^
# In file included from netselect.c:60:
# ./netinet/ip_icmp.h:49:3: error: unknown type name 'u_char'; did you mean 'char'?
# u_char ih_pptr; /* ICMP_PARAMPROB */
# ^~~~~~
# char
# ./netinet/ip_icmp.h:80:3: error: unknown type name 'u_long'; did you mean 'n_long'?
# u_long id_mask;
# ^~~~~~
# n_long
# /sysroot/include/netinet/in_systm.h:7:18: note: 'n_long' declared here
# typedef uint32_t n_long, n_time;
# ^
# In file included from netselect.c:61:
# ./netinet/udp.h:41:2: error: unknown type name 'u_short'; did you mean 'n_short'?
# u_short uh_sport; /* source port */
# ^~~~~~~
# n_short
# /sysroot/include/netinet/in_systm.h:6:18: note: 'n_short' declared here
# typedef uint16_t n_short;
# ^
# In file included from netselect.c:61:
# ./netinet/udp.h:42:2: error: unknown type name 'u_short'; did you mean 'n_short'?
# u_short uh_dport; /* destination port */
# ^~~~~~~
# n_short
# /sysroot/include/netinet/in_systm.h:6:18: note: 'n_short' declared here
# typedef uint16_t n_short;
# ^
# In file included from netselect.c:61:
# ./netinet/udp.h:44:2: error: unknown type name 'u_short'; did you mean 'n_short'?
# u_short uh_sum; /* udp checksum */
# ^~~~~~~
# n_short
# /sysroot/include/netinet/in_systm.h:6:18: note: 'n_short' declared here
# typedef uint16_t n_short;
# ^
# netselect.c:85:5: error: unknown type name 'u_char'; did you mean 'char'?
# u_char seq; /* sequence number of this packet */
# ^~~~~~
# char
# fatal error: too many errors emitted, stopping now [-ferror-limit=]
# 20 errors generated.
# make: *** [: netselect.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...