Applying ./patches/0001-switch-to-new-alsa-api.patch using plaintext: 
patching file audio_alsa.c
configure: loading site script /builder/shared-workdir/build/sdk/include/site/i386
checking for a BSD-compatible install... /builder/shared-workdir/build/sdk/staging_dir/host/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i486-openwrt-linux-strip... i486-openwrt-linux-musl-strip
checking build system type... x86_64-pc-linux-gnu
checking host system type... i486-openwrt-linux-gnu
checking for i486-openwrt-linux-gcc... i486-openwrt-linux-musl-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i486-openwrt-linux-musl-gcc accepts -g... yes
checking for i486-openwrt-linux-musl-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of i486-openwrt-linux-musl-gcc... none
checking for a sed that does not truncate output... /builder/shared-workdir/build/sdk/staging_dir/host/bin/sed
checking for egrep... grep -E
checking for ld used by i486-openwrt-linux-musl-gcc... i486-openwrt-linux-musl-ld
checking if the linker (i486-openwrt-linux-musl-ld) is GNU ld... yes
checking for i486-openwrt-linux-musl-ld option to reload object files... -r
checking for BSD-compatible nm... i486-openwrt-linux-musl-gcc-nm
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... i486-openwrt-linux-musl-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for i486-openwrt-linux-g++... i486-openwrt-linux-musl-g++
checking whether we are using the GNU C++ compiler... yes
checking whether i486-openwrt-linux-musl-g++ accepts -g... yes
checking dependency style of i486-openwrt-linux-musl-g++... none
checking how to run the C++ preprocessor... i486-openwrt-linux-musl-g++ -E
checking for i486-openwrt-linux-g77... no
checking for i486-openwrt-linux-f77... no
checking for i486-openwrt-linux-xlf... no
checking for i486-openwrt-linux-frt... no
checking for i486-openwrt-linux-pgf77... no
checking for i486-openwrt-linux-fort77... no
checking for i486-openwrt-linux-fl32... no
checking for i486-openwrt-linux-af77... no
checking for i486-openwrt-linux-f90... no
checking for i486-openwrt-linux-xlf90... no
checking for i486-openwrt-linux-pgf90... no
checking for i486-openwrt-linux-epcf90... no
checking for i486-openwrt-linux-f95... no
checking for i486-openwrt-linux-fort... no
checking for i486-openwrt-linux-xlf95... no
checking for i486-openwrt-linux-ifc... no
checking for i486-openwrt-linux-efc... no
checking for i486-openwrt-linux-pgf95... no
checking for i486-openwrt-linux-lf95... no
checking for i486-openwrt-linux-gfortran... no
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse i486-openwrt-linux-musl-gcc-nm output from i486-openwrt-linux-musl-gcc object... ok
checking for objdir... .libs
checking for i486-openwrt-linux-ar... i486-openwrt-linux-musl-gcc-ar
checking for i486-openwrt-linux-ranlib... i486-openwrt-linux-musl-gcc-ranlib
checking for i486-openwrt-linux-strip... (cached) i486-openwrt-linux-musl-strip
checking if i486-openwrt-linux-musl-gcc static flag  works... yes
checking if i486-openwrt-linux-musl-gcc supports -fno-rtti -fno-exceptions... no
checking for i486-openwrt-linux-musl-gcc option to produce PIC... -fPIC
checking if i486-openwrt-linux-musl-gcc PIC flag -fPIC works... yes
checking if i486-openwrt-linux-musl-gcc supports -c -o file.o... yes
checking whether the i486-openwrt-linux-musl-gcc linker (i486-openwrt-linux-musl-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by i486-openwrt-linux-musl-g++... i486-openwrt-linux-musl-ld
checking if the linker (i486-openwrt-linux-musl-ld) is GNU ld... yes
checking whether the i486-openwrt-linux-musl-g++ linker (i486-openwrt-linux-musl-ld) supports shared libraries... yes
checking for i486-openwrt-linux-musl-g++ option to produce PIC... -fPIC
checking if i486-openwrt-linux-musl-g++ PIC flag -fPIC works... yes
checking if i486-openwrt-linux-musl-g++ supports -c -o file.o... yes
checking whether the i486-openwrt-linux-musl-g++ linker (i486-openwrt-linux-musl-ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking whether NLS is requested... no
checking for msgfmt... no
checking for gmsgfmt... :
checking for xgettext... no
checking for msgmerge... no
checking for i486-openwrt-linux-ranlib... (cached) i486-openwrt-linux-musl-gcc-ranlib
checking for library containing strerror... none required
checking for an ANSI C-conforming const... yes
checking for signed... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking for long long... yes
checking for long double... yes
checking for wchar_t... yes
checking for wint_t... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for intmax_t... yes
checking whether printf() supports POSIX/XSI format strings... guessing yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... no
checking whether we are using the GNU C Library 2.1 or newer... no
checking whether integer division by zero raises SIGFPE... guessing no
checking for unsigned long long... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for stdint.h... (cached) yes
checking for ld used by GCC... i486-openwrt-linux-musl-ld
checking if the linker (i486-openwrt-linux-musl-ld) is GNU ld... yes
checking for shared library run path origin... done
checking for ptrdiff_t... yes
checking argz.h usability... no
checking argz.h presence... no
checking for argz.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for asprintf... yes
checking for fwprintf... yes
checking for getcwd... (cached) yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... (cached) yes
checking for snprintf... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for wcslen... yes
checking for __argz_count... no
checking for __argz_stringify... no
checking for __argz_next... no
checking for __fsetlocking... yes
checking whether _snprintf is declared... no
checking whether _snwprintf is declared... no
checking whether feof_unlocked is declared... yes
checking whether fgets_unlocked is declared... no
checking whether getc_unlocked is declared... yes
checking for iconv... yes
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 3.8.2, ok
checking whether NLS is requested... no
checking whether to use NLS... no
checking for ANSI C header files... (cached) yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking for sys/types.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking machine/soundcard.h usability... no
checking machine/soundcard.h presence... no
checking for machine/soundcard.h... no
checking mad.h usability... yes
checking mad.h presence... yes
checking for mad.h... yes
checking id3tag.h usability... no
checking id3tag.h presence... no
checking for id3tag.h... no
configure: error: id3tag.h was not found
*** You must first install libid3tag before you can build this package.
*** If libid3tag is already installed, you may need to use the CPPFLAGS
*** environment variable to specify its installed location, e.g. -I<dir>.
make[3]: *** [Makefile:67: /builder/shared-workdir/build/sdk/build_dir/target-i386_pentium-mmx_musl/madplay-0.15.2b/.configured_a17fb5ef857664f03cd0ce37cc5ea591] Error 1
time: package/feeds/packages/madplay/compile#12.24#3.88#102.89