Build of p3scan with musl toolchain

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

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

SLOCLanguage
14,622 ansic
253 makefile
148 sh
15,023 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: p3scan 2.3.2-11 (Wed Apr 5 00:47:44 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -Wall -DLOGOPT="LOG_PID|LOG_CONS" -DLOGFAC="LOG_DAEMON" -c getlinep3.c
# gcc -Wall -DLOGOPT="LOG_PID|LOG_CONS" -DLOGFAC="LOG_DAEMON" -c getline_ssl.c
# gcc -Wall -DLOGOPT="LOG_PID|LOG_CONS" -DLOGFAC="LOG_DAEMON" -c parsefile.c
# gcc -Wall -DLOGOPT="LOG_PID|LOG_CONS" -DLOGFAC="LOG_DAEMON" -c p3scan.c
# In file included from parsefile.c:77:
# In file included from ./p3scan.h:42:
# ./getline_ssl.h:42:10: fatal error: 'openssl/ssl.h' file not found
# #include
# ^
# 1 error generated.
# In file included from p3scan.c:56:
# /sysroot/include/sys/signal.h:1:2: warning: redirecting incorrect #include to [-W#warnings]
# #warning redirecting incorrect #include to
# ^
# make: *** [Makefile:83: parsefile.o] Error 1
# make: *** Waiting for unfinished jobs....
# In file included from getline_ssl.c:54:
# ./getline_ssl.h:42:10: fatal error: 'openssl/ssl.h' file not found
# #include
# ^
# p3scan.c:64:10: fatal error: 'linux/netfilter_ipv4.h' file not found
# #include
# ^
# 1 error generated.
# make: *** [Makefile:83: getline_ssl.o] Error 1
# 1 warning and 1 error generated.
# make: *** [Makefile:82: p3scan.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...