Build of isdn4k-utils with musl toolchain

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

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

SLOCLanguage
101,104 ansic
27,961 sh
4,923 perl
2,708 cpp
905 makefile
22 tcl
137,623 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: isdn4k-utils 3.27-2 (Wed Apr 5 01:07:32 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# make[1]: Entering directory '/tmp/isdn4k-utils/src/isdn4k-utils/scripts/lxdialog'
# gcc -O2 -Wall -fomit-frame-pointer -DLOCALE -DCURSES_LOC="" -c -o lxdialog.o lxdialog.c
# In file included from lxdialog.c:22:
# ./dialog.h:29:10: fatal error: 'ncurses.h' file not found
# #include CURSES_LOC
# ^
# :2:20: note: expanded from here
# #define CURSES_LOC
# ^
# 1 error generated.
# make[1]: *** [: lxdialog.o] Error 1
# make[1]: Leaving directory '/tmp/isdn4k-utils/src/isdn4k-utils/scripts/lxdialog'
# make: *** [Makefile:180: scripts/lxdialog/lxdialog] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...