Applying /builder/shared-workdir/build/sdk/feeds/telephony/libs/dahdi-tools/patches/020-fix-undefined-reference-to-get_ver.patch using plaintext: 
patching file xpp/echo_loader.c

Applying /builder/shared-workdir/build/sdk/feeds/telephony/libs/dahdi-tools/patches/030-cdefs.patch using plaintext: 
patching file xpp/hexfile.h
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: /builder/shared-workdir/build/sdk/staging_dir/host/bin/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/target-riscv64_riscv64_musl/host/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/target-riscv64_riscv64_musl/usr/share/aclocal -I m4 -I . --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: creating directory auxdir
autoreconf: running: /builder/shared-workdir/build/sdk/staging_dir/host/bin/libtoolize --install --force
OpenWrt-libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'auxdir'.
OpenWrt-libtoolize: linking file 'auxdir/config.guess'
OpenWrt-libtoolize: linking file 'auxdir/config.sub'
OpenWrt-libtoolize: linking file 'auxdir/install-sh'
OpenWrt-libtoolize: linking file 'auxdir/ltmain.sh'
OpenWrt-libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
OpenWrt-libtoolize: linking file 'm4/libtool.m4'
OpenWrt-libtoolize: linking file 'm4/ltoptions.m4'
OpenWrt-libtoolize: linking file 'm4/ltsugar.m4'
OpenWrt-libtoolize: linking file 'm4/ltversion.m4'
OpenWrt-libtoolize: linking file 'm4/lt~obsolete.m4'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /builder/shared-workdir/build/sdk/staging_dir/host/bin/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/target-riscv64_riscv64_musl/host/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/target-riscv64_riscv64_musl/usr/share/aclocal -I m4 -I . --force -I m4
autoreconf: running: /builder/shared-workdir/build/sdk/staging_dir/host/bin/autoconf --include=/builder/shared-workdir/build/sdk/staging_dir/target-riscv64_riscv64_musl/host/share/aclocal --include=/builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal --include=/builder/shared-workdir/build/sdk/staging_dir/target-riscv64_riscv64_musl/usr/share/aclocal --include=m4 --include=. --prepend-include=/builder/shared-workdir/build/sdk/staging_dir/host/share/aclocal --force
configure.ac:66: warning: The macro `AC_CONFIG_HEADER' is obsolete.
configure.ac:66: You should run autoupdate.
./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from...
configure.ac:66: the top level
configure.ac:69: warning: The macro `AC_GNU_SOURCE' is obsolete.
configure.ac:69: You should run autoupdate.
./lib/autoconf/specific.m4:312: AC_GNU_SOURCE is expanded from...
configure.ac:69: the top level
configure.ac:82: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:82: You should run autoupdate.
aclocal.m4:1250: AC_PROG_LIBTOOL is expanded from...
configure.ac:82: the top level
configure.ac:177: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:177: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
acinclude.m4:30: AST_EXT_LIB_SETUP is expanded from...
configure.ac:177: the top level
configure.ac:178: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:178: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
acinclude.m4:30: AST_EXT_LIB_SETUP is expanded from...
configure.ac:178: the top level
configure.ac:179: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:179: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
acinclude.m4:30: AST_EXT_LIB_SETUP is expanded from...
configure.ac:179: the top level
configure.ac:180: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:180: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
acinclude.m4:30: AST_EXT_LIB_SETUP is expanded from...
configure.ac:180: the top level
autoreconf: running: /builder/shared-workdir/build/sdk/staging_dir/host/bin/autoheader --include=/builder/shared-workdir/build/sdk/staging_dir/target-riscv64_riscv64_musl/host/share/aclocal --include=/builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal --include=/builder/shared-workdir/build/sdk/staging_dir/target-riscv64_riscv64_musl/usr/share/aclocal --include=m4 --include=. --prepend-include=/builder/shared-workdir/build/sdk/staging_dir/host/share/aclocal --force
autoreconf: running: /builder/shared-workdir/build/sdk/staging_dir/host/bin/automake --add-missing --force-missing
configure.ac:69: installing 'auxdir/compile'
configure.ac:15: installing 'auxdir/missing'
Makefile.am: installing 'auxdir/depcomp'
autoreconf: Leaving directory '.'
configure: WARNING: unrecognized options: --disable-nls
configure: loading site script /builder/shared-workdir/build/sdk/include/site/riscv64
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 riscv64-openwrt-linux-strip... riscv64-openwrt-linux-musl-strip
checking for a race-free mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
checking for riscv64-openwrt-linux-gcc... riscv64-openwrt-linux-musl-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether riscv64-openwrt-linux-musl-gcc accepts -g... yes
checking for riscv64-openwrt-linux-musl-gcc option to enable C11 features... none needed
checking whether riscv64-openwrt-linux-musl-gcc understands -c and -o together... yes
checking dependency style of riscv64-openwrt-linux-musl-gcc... none
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for riscv64-openwrt-linux-ld... riscv64-openwrt-linux-musl-ld.bfd
checking whether the compiler supports GNU C++... yes
checking whether riscv64-openwrt-linux-musl-g++ accepts -g... yes
checking for riscv64-openwrt-linux-musl-g++ option to enable C++11 features... none needed
checking dependency style of riscv64-openwrt-linux-musl-g++... none
checking for riscv64-openwrt-linux-gcc... (cached) riscv64-openwrt-linux-musl-gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether riscv64-openwrt-linux-musl-gcc accepts -g... (cached) yes
checking for riscv64-openwrt-linux-musl-gcc option to enable C11 features... (cached) none needed
checking whether riscv64-openwrt-linux-musl-gcc understands -c and -o together... (cached) yes
checking dependency style of riscv64-openwrt-linux-musl-gcc... (cached) none
checking how to run the C preprocessor... riscv64-openwrt-linux-musl-gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) gawk
checking build system type... x86_64-pc-linux-gnu
checking host system type... riscv64-openwrt-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /builder/shared-workdir/build/sdk/staging_dir/host/bin/sed
checking for grep that handles long lines and -e... /builder/shared-workdir/build/sdk/staging_dir/host/bin/grep
checking for egrep... /builder/shared-workdir/build/sdk/staging_dir/host/bin/grep -E
checking for fgrep... /builder/shared-workdir/build/sdk/staging_dir/host/bin/grep -F
checking for ld used by riscv64-openwrt-linux-musl-gcc... riscv64-openwrt-linux-musl-ld.bfd
checking if the linker (riscv64-openwrt-linux-musl-ld.bfd) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... riscv64-openwrt-linux-musl-gcc-nm
checking the name lister (riscv64-openwrt-linux-musl-gcc-nm) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to riscv64-openwrt-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for riscv64-openwrt-linux-musl-ld.bfd option to reload object files... -r
checking for riscv64-openwrt-linux-file... no
checking for file... file
configure: WARNING: using cross tools not prefixed with host triplet
checking for riscv64-openwrt-linux-objdump... riscv64-openwrt-linux-musl-objdump
checking how to recognize dependent libraries... pass_all
checking for riscv64-openwrt-linux-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for riscv64-openwrt-linux-ar... riscv64-openwrt-linux-musl-gcc-ar
checking for archiver @FILE support... @
checking for riscv64-openwrt-linux-strip... (cached) riscv64-openwrt-linux-musl-strip
checking for riscv64-openwrt-linux-ranlib... riscv64-openwrt-linux-musl-gcc-ranlib
checking command to parse riscv64-openwrt-linux-musl-gcc-nm output from riscv64-openwrt-linux-musl-gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for riscv64-openwrt-linux-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if riscv64-openwrt-linux-musl-gcc supports -fno-rtti -fno-exceptions... no
checking for riscv64-openwrt-linux-musl-gcc option to produce PIC... -fPIC -DPIC
checking if riscv64-openwrt-linux-musl-gcc PIC flag -fPIC -DPIC works... yes
checking if riscv64-openwrt-linux-musl-gcc static flag -static works... yes
checking if riscv64-openwrt-linux-musl-gcc supports -c -o file.o... yes
checking if riscv64-openwrt-linux-musl-gcc supports -c -o file.o... (cached) yes
checking whether the riscv64-openwrt-linux-musl-gcc linker (riscv64-openwrt-linux-musl-ld.bfd) 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... yes
checking how to run the C++ preprocessor... riscv64-openwrt-linux-musl-g++ -E
checking for ld used by riscv64-openwrt-linux-musl-g++... riscv64-openwrt-linux-musl-ld.bfd
checking if the linker (riscv64-openwrt-linux-musl-ld.bfd) is GNU ld... yes
checking whether the riscv64-openwrt-linux-musl-g++ linker (riscv64-openwrt-linux-musl-ld.bfd) supports shared libraries... yes
checking for riscv64-openwrt-linux-musl-g++ option to produce PIC... -fPIC -DPIC
checking if riscv64-openwrt-linux-musl-g++ PIC flag -fPIC -DPIC works... yes
checking if riscv64-openwrt-linux-musl-g++ static flag -static works... yes
checking if riscv64-openwrt-linux-musl-g++ supports -c -o file.o... yes
checking if riscv64-openwrt-linux-musl-g++ supports -c -o file.o... (cached) yes
checking whether the riscv64-openwrt-linux-musl-g++ linker (riscv64-openwrt-linux-musl-ld.bfd) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for GNU make... make
/builder/shared-workdir/build/sdk/staging_dir/host/bin/sed: can't read conftest.c: No such file or directory
checking for grep... (cached) /builder/shared-workdir/build/sdk/staging_dir/host/bin/grep
checking for sh... /bin/bash
checking for ln... /bin/ln
checking for wget... /builder/shared-workdir/build/sdk/staging_dir/host/bin/wget
checking for perl... /builder/shared-workdir/build/sdk/staging_dir/host/bin/perl
checking for perl libdir... 
checking for -Wdeclaration-after-statement support... yes
checking for sys/soundcard.h... yes
checking for linux/soundcard.h... yes
checking for arpa/inet.h... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for netinet/in.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/ioctl.h... yes
checking for sys/param.h... yes
checking for sys/socket.h... yes
checking for sys/time.h... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for inline... inline
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for cos in -lm... yes
checking for pthread_create in -lpthread... yes
checking for DAHDI_CODE in dahdi/user.h... no
checking for DAHDI_CONFIG_NTTE in dahdi/user.h... no
checking for riscv64-openwrt-linux-musl-gcc options needed to detect all undeclared functions... none needed
checking whether DAHDI_TXMIRROR is declared... no
checking for semtimedop... yes
checking for alarm... yes
checking for bzero... (cached) yes
checking for gettimeofday... (cached) yes
checking for memset... yes
checking for pow... yes
checking for regcomp... yes
checking for select... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... (cached) yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for error_at_line... no
checking for GNU libc compatible malloc... (cached) yes
checking pkg-config is at least version 0.9.0... yes
checking for GENERIC_HDLC_VERSION version 4 in linux/hdlc.h... no
checking for GENERIC_HDLC_VERSION version 4 in linux/hdlc/ioctl.h... yes
configure: ***
configure: *** Building this package requires DAHDI support. *** 
configure: *** Please install the dahdi-linux package. ***
configure: ***
make[3]: *** [Makefile:99: /builder/shared-workdir/build/sdk/build_dir/target-riscv64_riscv64_musl/dahdi-tools-3.1.0/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
time: package/feeds/telephony/dahdi-tools/compile#84.63#3.91#107.38