Applying /builder/shared-workdir/build/sdk/feeds/telephony/libs/freetdm/patches/280-tone-down-freetdm-COMP_VENDOR_CFLAGS.patch using plaintext: patching file configure.ac Applying /builder/shared-workdir/build/sdk/feeds/telephony/libs/freetdm/patches/290-fix-mod_freetdm-copts.patch using plaintext: patching file mod_freetdm/Makefile.in Applying /builder/shared-workdir/build/sdk/feeds/telephony/libs/freetdm/patches/300-install-missing_dir.patch using plaintext: patching file Makefile.am Applying /builder/shared-workdir/build/sdk/feeds/telephony/libs/freetdm/patches/900-mod_freetdm-Adapt-to-new-PCRE2-API.patch using plaintext: patching file mod_freetdm/mod_freetdm.c 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-arm_fa526_musl_eabi/host/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/target-arm_fa526_musl_eabi/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 --copy --force OpenWrt-libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build'. OpenWrt-libtoolize: copying file 'build/compile' OpenWrt-libtoolize: copying file 'build/config.guess' OpenWrt-libtoolize: copying file 'build/config.sub' OpenWrt-libtoolize: copying file 'build/depcomp' OpenWrt-libtoolize: copying file 'build/install-sh' OpenWrt-libtoolize: copying file 'build/missing' OpenWrt-libtoolize: copying file 'build/ltmain.sh' OpenWrt-libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build'. OpenWrt-libtoolize: copying file 'build/libtool.m4' OpenWrt-libtoolize: copying file 'build/ltoptions.m4' OpenWrt-libtoolize: copying file 'build/ltsugar.m4' OpenWrt-libtoolize: copying file 'build/ltversion.m4' OpenWrt-libtoolize: copying 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-arm_fa526_musl_eabi/host/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/target-arm_fa526_musl_eabi/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-arm_fa526_musl_eabi/host/share/aclocal --include=/builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal --include=/builder/shared-workdir/build/sdk/staging_dir/target-arm_fa526_musl_eabi/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:1417: 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:697: 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:2845: 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:690: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:697: AS_IF is expanded from... lib/m4sugar/m4sh.m4:697: 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:2918: 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:697: 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 --copy --force-missing autoreconf: Leaving directory '.' configure: WARNING: unrecognized options: --disable-nls configure: loading site script /builder/shared-workdir/build/sdk/include/site/arm checking for a BSD-compatible install... /builder/shared-workdir/build/sdk/staging_dir/host/bin/ginstall -c checking whether sleep supports fractional seconds... yes checking filesystem timestamp resolution... 0.01 checking whether build environment is sane... yes checking for arm-openwrt-linux-strip... arm-openwrt-linux-muslgnueabi-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 xargs -n works... yes checking whether UID '1000' is supported by ustar format... yes checking whether GID '1000' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking for arm-openwrt-linux-gcc... arm-openwrt-linux-muslgnueabi-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 arm-openwrt-linux-muslgnueabi-gcc accepts -g... yes checking for arm-openwrt-linux-muslgnueabi-gcc option to enable C23 features... -std=gnu23 checking whether make supports the include directive... yes (GNU style) checking dependency style of arm-openwrt-linux-muslgnueabi-gcc -std=gnu23... none checking whether make sets $(MAKE)... (cached) yes checking build system type... x86_64-pc-linux-gnu checking host system type... arm-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 arm-openwrt-linux-muslgnueabi-gcc -std=gnu23... arm-openwrt-linux-muslgnueabi-ld.bfd checking if the linker (arm-openwrt-linux-muslgnueabi-ld.bfd) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... arm-openwrt-linux-muslgnueabi-gcc-nm checking the name lister (arm-openwrt-linux-muslgnueabi-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 arm-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 arm-openwrt-linux-muslgnueabi-ld.bfd option to reload object files... -r checking for file... file checking for arm-openwrt-linux-objdump... arm-openwrt-linux-muslgnueabi-objdump checking how to recognize dependent libraries... pass_all checking for arm-openwrt-linux-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for arm-openwrt-linux-ranlib... arm-openwrt-linux-muslgnueabi-gcc-ranlib checking for arm-openwrt-linux-ar... arm-openwrt-linux-muslgnueabi-gcc-ar checking for archiver @FILE support... @ checking for arm-openwrt-linux-strip... (cached) arm-openwrt-linux-muslgnueabi-strip checking command to parse arm-openwrt-linux-muslgnueabi-gcc-nm output from arm-openwrt-linux-muslgnueabi-gcc -std=gnu23 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 arm-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 arm-openwrt-linux-muslgnueabi-gcc -std=gnu23 supports -fno-rtti -fno-exceptions... no checking for arm-openwrt-linux-muslgnueabi-gcc -std=gnu23 option to produce PIC... -fPIC -DPIC checking if arm-openwrt-linux-muslgnueabi-gcc -std=gnu23 PIC flag -fPIC -DPIC works... yes checking if arm-openwrt-linux-muslgnueabi-gcc -std=gnu23 static flag -static works... yes checking if arm-openwrt-linux-muslgnueabi-gcc -std=gnu23 supports -c -o file.o... yes checking if arm-openwrt-linux-muslgnueabi-gcc -std=gnu23 supports -c -o file.o... (cached) yes checking whether the arm-openwrt-linux-muslgnueabi-gcc -std=gnu23 linker (arm-openwrt-linux-muslgnueabi-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... 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 <<>> Digium libpri checking whether libpri is usable... yes checking whether libpri is too old... checking how to run the C preprocessor... arm-openwrt-linux-muslgnueabi-gcc -std=gnu23 -E no checking whether libpri has BRI support... yes checking whether libpri has AOC event support... yes checking whether libpri has pri_maintenance_service()... yes <<>> 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... yes <<>> Creating output files checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating freetdm.pc config.status: executing depfiles commands config.status: executing libtool commands configure: WARNING: unrecognized options: --disable-nls ============================ FreeTDM configuration ============================ + Modules Signalling: ftmod_analog....................... yes ftmod_analog_em.................... yes ftmod_isdn......................... no ftmod_libpri....................... yes ftmod_sangoma_isdn................. no ftmod_sangoma_ss7.................. no ftmod_r2........................... no ftmod_gsm.......................... no ftmod_pritap....................... yes I/O: ftmod_zt........................... yes ftmod_wanpipe...................... no ftmod_misdn........................ no =============================================================================== make[4]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_fa526_musl_eabi/freetdm-2021.08.30~8918ee1c' CC mod_freetdm_la-mod_freetdm.lo CC src/testtones-testtones.o CC src/libfreetdm_la-hashtable.lo CC src/libfreetdm_la-hashtable_itr.lo CC src/libfreetdm_la-ftdm_io.lo CC src/libfreetdm_la-ftdm_state.lo CC src/libfreetdm_la-ftdm_queue.lo CC src/libfreetdm_la-ftdm_sched.lo CC src/libfreetdm_la-ftdm_call_utils.lo CC src/libfreetdm_la-ftdm_variables.lo CC src/libfreetdm_la-ftdm_config.lo src/ftdm_io.c:1410:22: warning: conflicting types for 'ftdm_channel_get_type' due to enum/integer mismatch; have 'uint32_t(const ftdm_channel_t *)' {aka 'unsigned int(const struct ftdm_channel *)'} [-Wenum-int-mismatch] 1410 | FT_DECLARE(uint32_t) ftdm_channel_get_type(const ftdm_channel_t *ftdmchan) | ^~~~~~~~~~~~~~~~~~~~~ In file included from ./src/include/private/ftdm_core.h:35, from src/ftdm_io.c:40: ./src/include/freetdm.h:1280:30: note: previous declaration of 'ftdm_channel_get_type' with type 'ftdm_chan_type_t(const ftdm_channel_t *)' {aka 'ftdm_chan_type_t(const struct ftdm_channel *)'} 1280 | FT_DECLARE(ftdm_chan_type_t) ftdm_channel_get_type(const ftdm_channel_t *ftdmchan); | ^~~~~~~~~~~~~~~~~~~~~ CC src/libfreetdm_la-ftdm_callerid.lo src/ftdm_io.c:6427:22: warning: conflicting types for 'ftdm_running' due to enum/integer mismatch; have 'uint32_t(void)' {aka 'unsigned int(void)'} [-Wenum-int-mismatch] 6427 | FT_DECLARE(uint32_t) ftdm_running(void) | ^~~~~~~~~~~~ ./src/include/freetdm.h:1937:25: note: previous declaration of 'ftdm_running' with type 'ftdm_bool_t(void)' 1937 | FT_DECLARE(ftdm_bool_t) ftdm_running(void); | ^~~~~~~~~~~~ src/ftdm_io.c:6668:18: warning: conflicting types for 'print_bits' due to enum/integer mismatch; have 'void(uint8_t *, int, char *, int, ftdm_endian_t, uint8_t)' {aka 'void(unsigned char *, int, char *, int, ftdm_endian_t, unsigned char)'} [-Wenum-int-mismatch] 6668 | FT_DECLARE(void) print_bits(uint8_t *b, int bl, char *buf, int blen, ftdm_endian_t e, uint8_t ss) | ^~~~~~~~~~ ./src/include/private/ftdm_core.h:584:18: note: previous declaration of 'print_bits' with type 'void(uint8_t *, int, char *, int, int, uint8_t)' {aka 'void(unsigned char *, int, char *, int, int, unsigned char)'} 584 | FT_DECLARE(void) print_bits(uint8_t *b, int bl, char *buf, int blen, int e, uint8_t ss); | ^~~~~~~~~~ CC src/libfreetdm_la-fsk.lo src/ftdm_config.c: In function 'ftdm_config_next_pair': src/ftdm_config.c:137:13: warning: the comparison will always evaluate as 'true' for the address of 'path' will never be NULL [-Waddress] 137 | if (!cfg->path) { | ^ In file included from ./src/include/private/ftdm_core.h:117, from src/ftdm_config.c:38: ./src/include/private/ftdm_config.h:84:14: note: 'path' declared here 84 | char path[512]; | ^~~~ CC src/libfreetdm_la-uart.lo CC src/libfreetdm_la-g711.lo CC src/libfreetdm_la-libteletone_detect.lo CC src/libfreetdm_la-libteletone_generate.lo CC src/libfreetdm_la-ftdm_buffer.lo CC src/libfreetdm_la-ftdm_threadmutex.lo CC src/libfreetdm_la-ftdm_dso.lo CC src/libfreetdm_la-ftdm_cpu_monitor.lo CC src/libfreetdm_la-ftdm_backtrace.lo CC src/detect_tones-detect_tones.o CC src/detect_dtmf-detect_dtmf.o CC src/testpri-testpri.o CC src/testr2-testr2.o CC src/testanalog-testanalog.o CC src/testapp-testapp.o CC src/testcid-testcid.o CC mod_freetdm/libmodfreetdm_la-mod_freetdm.lo CC mod_freetdm/libmodfreetdm_la-tdm.lo CC src/ftmod/ftmod_zt/ftmod_zt_la-ftmod_zt.lo CC src/ftmod/ftmod_skel/ftmod_skel_la-ftmod_skel.lo CC src/ftmod/ftmod_analog/ftmod_analog_la-ftmod_analog.lo CC src/ftmod/ftmod_analog_em/ftmod_analog_em_la-ftmod_analog_em.lo CC src/ftmod/ftmod_libpri/ftmod_libpri_la-ftmod_libpri.lo CC src/ftmod/ftmod_libpri/ftmod_libpri_la-lpwrap_pri.lo CC src/ftmod/ftmod_pritap/ftmod_pritap_la-ftmod_pritap.lo src/ftmod/ftmod_pritap/ftmod_pritap.c: In function 'tap_pri_get_pcall': src/ftmod/ftmod_pritap/ftmod_pritap.c:542:25: error: implicit declaration of function 'pri_passive_destroycall'; did you mean 'pri_destroycall'? [-Wimplicit-function-declaration] 542 | pri_passive_destroycall(pritap->pri, pritap->pcalls[i].callref); | ^~~~~~~~~~~~~~~~~~~~~~~ | pri_destroycall src/ftmod/ftmod_pritap/ftmod_pritap.c: In function 'handle_pri_passive_event': src/ftmod/ftmod_pritap/ftmod_pritap.c:738:26: error: implicit declaration of function 'pri_get_layer1'; did you mean 'pri_get_timer'? [-Wimplicit-function-declaration] 738 | layer1 = pri_get_layer1(peertap->pri, pcall->callref); | ^~~~~~~~~~~~~~ | pri_get_timer src/ftmod/ftmod_pritap/ftmod_pritap.c:739:28: error: implicit declaration of function 'pri_get_transcap' [-Wimplicit-function-declaration] 739 | transcap = pri_get_transcap(peertap->pri, pcall->callref); | ^~~~~~~~~~~~~~~~ src/ftmod/ftmod_pritap/ftmod_pritap.c: In function 'ftdm_pritap_run': src/ftmod/ftmod_pritap/ftmod_pritap.c:921:49: error: implicit declaration of function 'pri_read_event'; did you mean 'pri_dump_event'? [-Wimplicit-function-declaration] 921 | event = pri_read_event(pritap->pri); | ^~~~~~~~~~~~~~ | pri_dump_event src/ftmod/ftmod_pritap/ftmod_pritap.c:921:47: error: assignment to 'pri_event *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 921 | event = pri_read_event(pritap->pri); | ^ src/ftmod/ftmod_pritap/ftmod_pritap.c:929:47: error: assignment to 'pri_event *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 929 | event = pri_read_event(p_pritap->pri); | ^ make[4]: *** [Makefile:1663: src/ftmod/ftmod_pritap/ftmod_pritap_la-ftmod_pritap.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-arm_fa526_musl_eabi/freetdm-2021.08.30~8918ee1c' make[3]: *** [Makefile:138: /builder/shared-workdir/build/sdk/build_dir/target-arm_fa526_musl_eabi/freetdm-2021.08.30~8918ee1c/.built] Error 2 time: package/feeds/telephony/freetdm/compile#45.26#6.97#59.43