Applying ./patches/280-tone-down-freetdm-COMP_VENDOR_CFLAGS.patch using plaintext: 
patching file configure.ac

Applying ./patches/290-fix-mod_freetdm-copts.patch using plaintext: 
patching file mod_freetdm/Makefile.in

Applying ./patches/300-install-missing_dir.patch using plaintext: 
patching file Makefile.am
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-aarch64_cortex-a72_musl/host/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/target-aarch64_cortex-a72_musl/usr/share/aclocal -I m4 -I . --force -I build
autoreconf: configure.ac: tracing
autoreconf: running: /builder/shared-workdir/build/sdk/staging_dir/host/bin/libtoolize --install --force
OpenWrt-libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build'.
OpenWrt-libtoolize: linking file 'build/config.guess'
OpenWrt-libtoolize: linking file 'build/config.sub'
OpenWrt-libtoolize: linking file 'build/install-sh'
OpenWrt-libtoolize: linking file 'build/ltmain.sh'
OpenWrt-libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build'.
OpenWrt-libtoolize: linking file 'build/libtool.m4'
OpenWrt-libtoolize: linking file 'build/ltoptions.m4'
OpenWrt-libtoolize: linking file 'build/ltsugar.m4'
OpenWrt-libtoolize: linking file 'build/ltversion.m4'
OpenWrt-libtoolize: linking file 'build/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-aarch64_cortex-a72_musl/host/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/target-aarch64_cortex-a72_musl/usr/share/aclocal -I m4 -I . --force -I build
autoreconf: running: /builder/shared-workdir/build/sdk/staging_dir/host/bin/autoconf --include=/builder/shared-workdir/build/sdk/staging_dir/target-aarch64_cortex-a72_musl/host/share/aclocal --include=/builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal --include=/builder/shared-workdir/build/sdk/staging_dir/target-aarch64_cortex-a72_musl/usr/share/aclocal --include=m4 --include=. --prepend-include=/builder/shared-workdir/build/sdk/staging_dir/host/share/aclocal --force
configure.ac:25: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:25: You should run autoupdate.
aclocal.m4:1250: AC_PROG_LIBTOOL is expanded from...
configure.ac:25: the top level
configure.ac:61: warning: back quotes and double quotes must not be escaped in: Invalid value \"${withval}\", option requires a valid path
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from...
configure.ac:61: the top level
configure.ac:109: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:109: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from...
configure.ac:109: the top level
configure.ac:138: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:138: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:138: the top level
configure.ac:192: warning: back quotes and double quotes must not be escaped in: Invalid argument for --with-libpri, \"${withval}\" is not a directory
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from...
configure.ac:192: the top level
configure.ac:379: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:379: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
build/libpcap.m4:68: FIND_LIB_SUBDIR is expanded from...
build/libpcap.m4:91: AX_LIB_PCAP is expanded from...
configure.ac:379: the top level
configure.ac:379: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:379: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
build/libpcap.m4:31: PCAP_LIB_WHERE1 is expanded from...
build/libpcap.m4:53: PCAP_LIB_WHERE is expanded from...
build/libpcap.m4:91: AX_LIB_PCAP is expanded from...
configure.ac:379: the top level
configure.ac:425: warning: back quotes and double quotes must not be escaped in: Invalid value \"${with_misdn}\" for --with-misdn option
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:1553: AC_ARG_WITH is expanded from...
configure.ac:425: the top level
autoreconf: configure.ac: not using Autoheader
autoreconf: running: /builder/shared-workdir/build/sdk/staging_dir/host/bin/automake --add-missing --force-missing
configure.ac:22: installing 'build/compile'
configure.ac:10: installing 'build/missing'
Makefile.am: installing 'build/depcomp'
autoreconf: Leaving directory '.'
configure: WARNING: unrecognized options: --disable-nls
configure: loading site script /builder/shared-workdir/build/sdk/include/site/aarch64
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 aarch64-openwrt-linux-strip... aarch64-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 for aarch64-openwrt-linux-gcc... aarch64-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 aarch64-openwrt-linux-musl-gcc accepts -g... yes
checking for aarch64-openwrt-linux-musl-gcc option to enable C11 features... none needed
checking whether aarch64-openwrt-linux-musl-gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of aarch64-openwrt-linux-musl-gcc... none
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... aarch64-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 aarch64-openwrt-linux-musl-gcc... aarch64-openwrt-linux-musl-ld
checking if the linker (aarch64-openwrt-linux-musl-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... aarch64-openwrt-linux-musl-gcc-nm
checking the name lister (aarch64-openwrt-linux-musl-gcc-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to aarch64-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 aarch64-openwrt-linux-musl-ld option to reload object files... -r
checking for aarch64-openwrt-linux-file... no
checking for file... file
configure: WARNING: using cross tools not prefixed with host triplet
checking for aarch64-openwrt-linux-objdump... aarch64-openwrt-linux-musl-objdump
checking how to recognize dependent libraries... pass_all
checking for aarch64-openwrt-linux-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for aarch64-openwrt-linux-ar... aarch64-openwrt-linux-musl-gcc-ar
checking for archiver @FILE support... @
checking for aarch64-openwrt-linux-strip... (cached) aarch64-openwrt-linux-musl-strip
checking for aarch64-openwrt-linux-ranlib... aarch64-openwrt-linux-musl-gcc-ranlib
checking command to parse aarch64-openwrt-linux-musl-gcc-nm output from aarch64-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 aarch64-openwrt-linux-mt... no
checking for mt... no
checking if : is a manifest tool... no
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 dlfcn.h... yes
checking for objdir... .libs
checking if aarch64-openwrt-linux-musl-gcc supports -fno-rtti -fno-exceptions... no
checking for aarch64-openwrt-linux-musl-gcc option to produce PIC... -fPIC -DPIC
checking if aarch64-openwrt-linux-musl-gcc PIC flag -fPIC -DPIC works... yes
checking if aarch64-openwrt-linux-musl-gcc static flag -static works... yes
checking if aarch64-openwrt-linux-musl-gcc supports -c -o file.o... yes
checking if aarch64-openwrt-linux-musl-gcc supports -c -o file.o... (cached) yes
checking whether the aarch64-openwrt-linux-musl-gcc linker (aarch64-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
checking pkg-config is at least version 0.9.0... yes
checking for C compiler vendor... gnu
checking for dlopen in -ldl... yes
checking for pthread_create in -lpthread... yes
checking for cos in -lm... yes
checking for netdb.h... yes
checking for sys/select.h... yes
checking for execinfo.h... no
checking for gethostbyname_r... yes
checking whether gethostbyname_r requires five arguments... no

<<>> Modules and optional features
checking for openr2_context_set_io_type in -lopenr2... no
checking whether to build ftmod_r2... no
checking for wat_version in -lwat... no
checking whether to build ftmod_wat... no

<<>> Sangoma Wanpipe
checking for sangoma_span_chan_toif in -lsangoma... no
checking whether to build ftmod_wanpipe... no

<<>> Sangoma ISDN stack
checking for sng_isdn_init in -lsng_isdn... no
checking whether to build ftmod_sangoma_isdn... no

<<>> Sangoma SS7 stack
checking for sng_isup_init_gen in -lsng_ss7... no
checking whether to build ftmod_sangoma_ss7... no

<<>> zlib
checking for compress in -lz... yes
checking whether zlib is installed... yes

<<>> ftmod_misdn (Linux mISDN I/O plugin)
checking for mISDN/mISDNif.h... no
configure: mISDN/mISDNif.h not found
checking for freeswitch... no
configure: error: Package requirements (freeswitch) were not met:

Package 'freeswitch', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables FREESWITCH_CFLAGS
and FREESWITCH_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make[3]: *** [Makefile:141: /builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/freetdm-2021-08-30-8918ee1c/.configured_c16ba0fbb281ff804ca7433efa9db1e5] Error 1
time: package/feeds/telephony/freetdm/compile#115.91#4.59#164.42