Applying ./patches/140-holdtimer-set.patch using plaintext: 
patching file bgpd/bgp_network.c
patching file bgpd/bgpd.h

Applying ./patches/170-use-supported-pagers.patch using plaintext: 
patching file vtysh/vtysh.c

Applying ./patches/200-gcc10.patch using plaintext: 
patching file lib/prefix.h
patching file pimd/pim_version.h
patching file pimd/pimd.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-x86_64_musl/host/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/target-x86_64_musl/usr/share/aclocal -I m4 -I . --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: /builder/shared-workdir/build/sdk/staging_dir/host/bin/libtoolize --install --force
OpenWrt-libtoolize: putting auxiliary files in '.'.
OpenWrt-libtoolize: linking file './config.guess'
OpenWrt-libtoolize: linking file './config.sub'
OpenWrt-libtoolize: linking file './install-sh'
OpenWrt-libtoolize: linking file './ltmain.sh'
OpenWrt-libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
OpenWrt-libtoolize: linking file 'm4/libtool.m4'
OpenWrt-libtoolize: You should add the contents of 'm4/libtool.m4' to 'aclocal.m4'.
OpenWrt-libtoolize: linking file 'm4/ltoptions.m4'
OpenWrt-libtoolize: You should add the contents of 'm4/ltoptions.m4' to 'aclocal.m4'.
OpenWrt-libtoolize: linking file 'm4/ltsugar.m4'
OpenWrt-libtoolize: You should add the contents of 'm4/ltsugar.m4' to 'aclocal.m4'.
OpenWrt-libtoolize: linking file 'm4/ltversion.m4'
OpenWrt-libtoolize: linking file 'm4/lt~obsolete.m4'
OpenWrt-libtoolize: You should add the contents of 'm4/lt~obsolete.m4' to 'aclocal.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-x86_64_musl/host/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal -I /builder/shared-workdir/build/sdk/staging_dir/target-x86_64_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-x86_64_musl/host/share/aclocal --include=/builder/shared-workdir/build/sdk/staging_dir/hostpkg/share/aclocal --include=/builder/shared-workdir/build/sdk/staging_dir/target-x86_64_musl/usr/share/aclocal --include=m4 --include=. --prepend-include=/builder/shared-workdir/build/sdk/staging_dir/host/share/aclocal --force
autom4te: error: /builder/shared-workdir/build/staging_dir/host/share/autoconf/autoconf/trailer.m4: no such file or directory
autoreconf: error: /builder/shared-workdir/build/sdk/staging_dir/host/bin/autoconf failed with exit status: 1
configure: WARNING: unrecognized options: --disable-nls
configure: loading site script /builder/shared-workdir/build/sdk/include/site/x86_64
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-openwrt-linux-gnu
checking target system type... x86_64-openwrt-linux-gnu
checking for a BSD-compatible install... /builder/shared-workdir/build/sdk/staging_dir/host/bin/install -c
checking whether build environment is sane... yes
/bin/bash: /builder/shared-workdir/build/sdk/build_dir/target-x86_64_musl/quagga-1.2.4/missing: No such file or directory
configure: WARNING: 'missing' script is too old or missing
checking for x86_64-openwrt-linux-strip... x86_64-openwrt-linux-musl-strip
checking for a thread-safe 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 perl... /builder/shared-workdir/build/sdk/staging_dir/host/bin/perl
checking for gawk... gawk
checking for x86_64-openwrt-linux-gcc... x86_64-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 we are using the GNU C compiler... yes
checking whether x86_64-openwrt-linux-musl-gcc accepts -g... yes
checking for x86_64-openwrt-linux-musl-gcc option to accept ISO C89... none needed
checking whether x86_64-openwrt-linux-musl-gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of x86_64-openwrt-linux-musl-gcc... none
checking how to run the C preprocessor... x86_64-openwrt-linux-musl-gcc -E
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 pkg-config is at least version 0.9.0... yes
checking for x86_64-openwrt-linux-musl-gcc option to accept ISO C99... none needed
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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
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 fgrep... /builder/shared-workdir/build/sdk/staging_dir/host/bin/grep -F
checking for ld used by x86_64-openwrt-linux-musl-gcc... x86_64-openwrt-linux-musl-ld
checking if the linker (x86_64-openwrt-linux-musl-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... x86_64-openwrt-linux-musl-gcc-nm
checking the name lister (x86_64-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 x86_64-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 x86_64-openwrt-linux-musl-ld option to reload object files... -r
checking for x86_64-openwrt-linux-objdump... x86_64-openwrt-linux-musl-objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-openwrt-linux-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-openwrt-linux-ar... x86_64-openwrt-linux-musl-gcc-ar
checking for archiver @FILE support... @
checking for x86_64-openwrt-linux-strip... (cached) x86_64-openwrt-linux-musl-strip
checking for x86_64-openwrt-linux-ranlib... x86_64-openwrt-linux-musl-gcc-ranlib
checking command to parse x86_64-openwrt-linux-musl-gcc-nm output from x86_64-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 x86_64-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 x86_64-openwrt-linux-musl-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-openwrt-linux-musl-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-openwrt-linux-musl-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-openwrt-linux-musl-gcc static flag -static works... yes
checking if x86_64-openwrt-linux-musl-gcc supports -c -o file.o... yes
checking if x86_64-openwrt-linux-musl-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-openwrt-linux-musl-gcc linker (x86_64-openwrt-linux-musl-ld -m elf_x86_64) 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 ./config.lt
config.lt: creating libtool
checking for sed... /builder/shared-workdir/build/sdk/staging_dir/host/bin/sed
checking for pdflatex... /bin/false
checking for latexmk... /bin/false
configure: WARNING: Will not be able to make PDF versions of TeX documents
checking for pandoc... /bin/false
configure: WARNING: Will not be able to make PDF versions of MD documents
checking which default CFLAGS to set... CFLAGS supplied by user
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for x86_64-openwrt-linux-ar... (cached) x86_64-openwrt-linux-musl-gcc-ar
checking if make is GNU make... yes
checking if zebra should be configurable to send Route Advertisements... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for C/C++ restrict keyword... __restrict
checking for working volatile... yes
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for uid_t in sys/types.h... yes
checking for mode_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking sys/ksym.h usability... no
checking sys/ksym.h presence... no
checking for sys/ksym.h... no
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for sys/types.h... (cached) yes
checking linux/version.h usability... yes
checking linux/version.h presence... yes
checking for linux/version.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking asm/types.h usability... yes
checking asm/types.h presence... yes
checking for asm/types.h... yes
checking sys/cdefs.h usability... no
checking sys/cdefs.h presence... no
checking for sys/cdefs.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking features.h usability... yes
checking features.h presence... yes
checking for features.h... yes
checking for net/if.h... yes
checking for net/if_var.h... no
checking for sys/un.h... yes
checking for netinet/in_systm.h... yes
checking for netinet/in_var.h... no
checking for net/if_dl.h... no
checking for net/netopt.h... no
checking for net/route.h... yes
checking for inet/nd.h... no
checking for arpa/inet.h... yes
checking for netinet/ip_icmp.h... yes
checking for fcntl.h... yes
checking for stddef.h... yes
checking for sys/ioctl.h... yes
checking for syslog.h... yes
checking for wchar.h... yes
checking for wctype.h... yes
checking for sys/sysctl.h... no
checking for sys/sockio.h... no
checking for kvm.h... no
checking for sys/conf.h... no
checking for ucontext.h... yes
checking for ucontext_t.uc_mcontext.uc_regs... no
checking for ucontext_t.uc_mcontext.regs... no
checking for ucontext_t.uc_mcontext.gregs... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for tputs in -ltermcap... no
checking for tputs in -ltinfo... no
checking for tputs in -lcurses... no
checking for tputs in -lncurses... yes
checking for main in -lreadline... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking for rl_completion_matches in -lreadline... yes
checking whether byte ordering is bigendian... (cached) no
checking for unistd.h... (cached) yes
checking for working chown... no
checking for working POSIX fnmatch... cross
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... cross
configure: WARNING: result yes guessed because of cross compilation
checking for working vfork... (cached) yes
checking for working memcmp... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... no
checking for strftime... (cached) yes
checking whether lstat correctly handles trailing slash... (cached) yes
checking whether stat accepts an empty string... (cached) no
checking for sys/select.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking for strftime... (cached) yes
checking for vprintf... yes
checking for _doprnt... no
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for pow in -lm... yes
checking for pow... yes
checking for dup2... yes
checking for ftruncate... yes
checking for getcwd... (cached) yes
checking for gethostbyname... yes
checking for getpagesize... yes
checking for gettimeofday... (cached) yes
checking for inet_ntoa... yes
checking for inet_aton... yes
checking for strnlen... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strdup... yes
checking for strerror... (cached) yes
checking for strncasecmp... yes
checking for strndup... yes
checking for strrchr... yes
checking for strspn... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for strlcat... yes
checking for strlcpy... yes
checking for daemon... yes
checking for snprintf... yes
checking for vsnprintf... (cached) yes
checking for if_nametoindex... yes
checking for if_indextoname... yes
checking for getifaddrs... yes
checking for uname... yes
checking for fcntl... yes
checking for getgrouplist... yes
checking asm-generic/unistd.h usability... yes
checking asm-generic/unistd.h presence... yes
checking for asm-generic/unistd.h... yes
checking whether __NR_setns is declared... yes
checking for setns... yes
checking zebra between kernel interface method... netlink
checking net/bpf.h usability... no
checking net/bpf.h presence... no
checking for net/bpf.h... no
checking sys/dlpi.h usability... no
checking sys/dlpi.h presence... no
checking for sys/dlpi.h... no
checking zebra IS-IS I/O method... pfpacket
checking for broken CMSG_FIRSTHDR... no
checking route read method... netlink
checking interface looking up method... netlink
checking for struct ip_mreqn.imr_ifindex... yes
checking for linux/mroute.h... yes
checking for BSD struct ip_mreq hack... no
checking for RFC3678 protocol-independed API... yes
checking for net/if.h... (cached) yes
checking for net/if_media.h... no
checking for net/if.h... (cached) yes
checking for struct if_data.ifi_link_state... no
checking for netinet/tcp.h... yes
checking whether TCP_MD5SIG is declared... yes
checking ipforward method... proc
checking for getaddrinfo... (cached) yes
checking whether does this OS have IPv6 stack... Linux IPv6
checking for netinet6/in6.h... no
checking for netinet/in6_var.h... no
checking for netinet/icmp6.h... yes
checking for netinet6/in6_var.h... no
checking for netinet6/nd6.h... no
checking for inet_ntop in -lc... yes
checking for inet_pton in -lc... yes
checking for crypt in -lcrypt... yes
checking for res_init in -lresolv... yes
checking whether system has GNU regex... checking for regexec in -lc... yes
checking for struct sockaddr... yes
checking for struct sockaddr_in... yes
checking for struct sockaddr_in6... yes
checking for struct sockaddr_un... yes
checking for struct sockaddr_dl... no
checking for socklen_t... yes
checking for struct vifctl... no
checking for struct mfcctl... no
checking for struct sioc_sg_req... no
checking for vifi_t... no
checking for struct sioc_vif_req... no
checking for struct igmpmsg... no
checking for struct ifaliasreq... no
checking for struct if6_aliasreq... no
checking for struct in6_aliasreq... no
checking for struct nd_opt_adv_interval... yes
checking for struct rt_addrinfo... no
checking for struct nd_opt_homeagent_info... no
checking for struct nd_opt_adv_interval... (cached) yes
checking for struct sockaddr.sa_len... no
checking for struct sockaddr_in.sin_len... no
checking for struct sockaddr_un.sun_len... no
checking for struct sockaddr_in6.sin6_scope_id... yes
checking for struct sockaddr_dl.sdl_len... no
checking for struct if6_aliasreq.ifra_lifetime... no
checking for struct nd_opt_adv_interval.nd_opt_ai_type... no
checking for struct in_pktinfo... yes
checking for struct icmphdr... yes
checking for IP_PKTINFO... yes
checking for IP_RECVDSTADDR... no
checking for IP_RECVIF... no
checking whether getrusage is available... yes
checking whether CLOCK_MONOTONIC is declared... yes
checking for clock_gettime in -lrt... yes
checking whether x86_64-openwrt-linux-musl-gcc accepts function __attribute__((weak,alias()))... no
checking whether x86_64-openwrt-linux-musl-gcc supports #pragma weak... yes
checking whether x86_64-openwrt-linux-musl-gcc supports #pragma _HP_SECONDARY_DEF... no
checking whether x86_64-openwrt-linux-musl-gcc supports #pragma _CRI duplicate... no
checking how to create weak aliases with x86_64-openwrt-linux-musl-gcc... pragma
checking whether x86_64-openwrt-linux-musl-gcc supports weak aliases across object file boundaries... yes
checking execinfo.h usability... no
checking execinfo.h presence... no
checking for execinfo.h... no
checking for malloc.h... yes
checking whether mallinfo is available... no
checking directory to use for state file... /var/run/quagga
checking for working htonl... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lib/Makefile
config.status: creating qpb/Makefile
config.status: creating zebra/Makefile
config.status: creating ripd/Makefile
config.status: creating ripngd/Makefile
config.status: creating bgpd/Makefile
config.status: creating ospfd/Makefile
config.status: creating watchquagga/Makefile
config.status: creating ospf6d/Makefile
config.status: creating isisd/Makefile
config.status: creating vtysh/Makefile
config.status: creating doc/Makefile
config.status: creating ospfclient/Makefile
config.status: creating tests/Makefile
config.status: creating m4/Makefile
config.status: creating pimd/Makefile
config.status: creating nhrpd/Makefile
config.status: creating redhat/Makefile
config.status: creating pkgsrc/Makefile
config.status: creating fpm/Makefile
config.status: creating redhat/quagga.spec
config.status: creating redhat/quagga.sysconfig
config.status: creating lib/version.h
config.status: creating isisd/topology/Makefile
config.status: creating pkgsrc/bgpd.sh
config.status: creating pkgsrc/ospf6d.sh
config.status: creating pkgsrc/ospfd.sh
config.status: creating pkgsrc/ripd.sh
config.status: creating pkgsrc/ripngd.sh
config.status: creating pkgsrc/zebra.sh
config.status: creating solaris/Makefile
config.status: creating vtysh/extract.pl
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --disable-nls

Quagga configuration
--------------------
quagga version          : 1.2.4
host operating system   : linux-gnu
source code location    : .
compiler                : x86_64-openwrt-linux-musl-gcc
compiler flags          : -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-x86_64_musl/quagga-1.2.4=quagga-1.2.4 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro 
make                    : make
linker flags            : -L/builder/shared-workdir/build/sdk/staging_dir/toolchain-x86_64_gcc-12.2.0_musl/usr/lib -L/builder/shared-workdir/build/sdk/staging_dir/toolchain-x86_64_gcc-12.2.0_musl/lib -znow -zrelro  -lresolv -lcrypt  -lrt  -lreadline  -lncurses -lm
state file directory    : /var/run/quagga
config file directory   : /etc/quagga
example directory       : /etc/quagga
user to run as		: network
group to run as		: network
group for vty sockets	: 
config file mask        : 0600
log file mask           : 0600
zebra protobuf enabled  : no

The above user and group must have read/write access to the state file
directory and to the config files in the config file directory.
make[4]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-x86_64_musl/quagga-1.2.4'
 cd . && automake-1.15 --gnu
/bin/bash: line 4: automake-1.15: command not found
make[4]: *** [Makefile:405: Makefile.in] Error 1
make[4]: Leaving directory '/builder/shared-workdir/build/sdk/build_dir/target-x86_64_musl/quagga-1.2.4'
make[3]: *** [Makefile:279: /builder/shared-workdir/build/sdk/build_dir/target-x86_64_musl/quagga-1.2.4/.built] Error 2
time: package/feeds/routing/quagga/compile#31.54#3.79#162.94