Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/frr.spec'], chrootPath='/var/lib/mock/dist-oc9-build-50028-14595/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/frr.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/frr-8.4-3.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/frr.spec'], chrootPath='/var/lib/mock/dist-oc9-build-50028-14595/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/frr.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Smh5uY + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf frr-frr-8.4 + /usr/bin/gzip -dc /builddir/build/SOURCES/frr-8.4.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd frr-frr-8.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'frr-8.4 base' + /usr/bin/git branch rpm-build + /usr/bin/git checkout rpm-build Switched to branch 'rpm-build' + /usr/bin/git branch --set-upstream-to=master branch 'rpm-build' set up to track 'master'. + /usr/bin/cat /builddir/build/SOURCES/0002-enable-openssl.patch + /usr/bin/git apply --index --reject -p1 - Checking patch lib/subdir.am... Hunk #1 succeeded at 57 (offset 16 lines). Hunk #2 succeeded at 85 (offset 21 lines). Hunk #3 succeeded at 227 (offset 57 lines). Hunk #4 succeeded at 256 (offset 66 lines). Checking patch isisd/isis_lsp.c... Checking patch isisd/isis_pdu.c... Checking patch isisd/isis_te.c... Hunk #1 succeeded at 39 (offset 1 line). Applied patch lib/subdir.am cleanly. Applied patch isisd/isis_lsp.c cleanly. Applied patch isisd/isis_pdu.c cleanly. Applied patch isisd/isis_te.c cleanly. + /usr/bin/git commit -q -m 0002-enable-openssl.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0003-disable-eigrp-crypto.patch + /usr/bin/git apply --index --reject -p1 - Checking patch eigrpd/eigrp_packet.c... Hunk #2 succeeded at 105 (offset 8 lines). Hunk #3 succeeded at 133 (offset 8 lines). Hunk #4 succeeded at 163 (offset 8 lines). Hunk #5 succeeded at 179 (offset 8 lines). Hunk #6 succeeded at 223 (offset 8 lines). Hunk #7 succeeded at 253 (offset 8 lines). Hunk #8 succeeded at 278 (offset 8 lines). Hunk #9 succeeded at 311 (offset 8 lines). Hunk #10 succeeded at 322 (offset 8 lines). Checking patch eigrpd/eigrp_filter.c... Checking patch eigrpd/eigrp_hello.c... Checking patch eigrpd/eigrp_query.c... Checking patch eigrpd/eigrp_reply.c... Checking patch eigrpd/eigrp_siaquery.c... Checking patch eigrpd/eigrp_siareply.c... Checking patch eigrpd/eigrp_snmp.c... Checking patch eigrpd/eigrp_update.c... Checking patch eigrpd/eigrp_cli.c... Hunk #2 succeeded at 733 (offset 7 lines). Applied patch eigrpd/eigrp_packet.c cleanly. Applied patch eigrpd/eigrp_filter.c cleanly. Applied patch eigrpd/eigrp_hello.c cleanly. Applied patch eigrpd/eigrp_query.c cleanly. Applied patch eigrpd/eigrp_reply.c cleanly. Applied patch eigrpd/eigrp_siaquery.c cleanly. Applied patch eigrpd/eigrp_siareply.c cleanly. Applied patch eigrpd/eigrp_snmp.c cleanly. Applied patch eigrpd/eigrp_update.c cleanly. Applied patch eigrpd/eigrp_cli.c cleanly. + /usr/bin/git commit -q -m 0003-disable-eigrp-crypto.patch --author 'rpm-build ' + /usr/bin/cat /builddir/build/SOURCES/0005-remove-grpc-test.patch + /usr/bin/git apply --index --reject -p1 - Checking patch tests/lib/subdir.am... Applied patch tests/lib/subdir.am cleanly. + /usr/bin/git commit -q -m 0005-remove-grpc-test.patch --author 'rpm-build ' + mkdir selinux + cp -p /builddir/build/SOURCES/frr.fc /builddir/build/SOURCES/frr.te /builddir/build/SOURCES/frr.if selinux + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.SoE8Ma + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd frr-frr-8.4 + autoreconf -ivf autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 -Wall,no-override autoreconf: configure.ac: tracing autoreconf: configure.ac: creating directory m4/ac autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'm4/ac'. libtoolize: copying file 'm4/ac/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: aclocal --force -I m4 -Wall,no-override autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:176: installing 'm4/ac/compile' configure.ac:26: installing 'm4/ac/config.guess' configure.ac:26: installing 'm4/ac/config.sub' configure.ac:108: installing 'm4/ac/install-sh' configure.ac:108: installing 'm4/ac/missing' Makefile.am: installing 'm4/ac/depcomp' configure.ac: installing 'm4/ac/ylwrap' parallel-tests: installing 'm4/ac/test-driver' autoreconf: 'm4/ac/config.guess' is updated autoreconf: Leaving directory '.' + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2023-09-20 23:44:09.646632071 +0800 +++ ./configure 2023-09-20 23:44:11.774616746 +0800 @@ -2325,7 +2325,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2023-09-20 23:44:11.774616746 +0800 +++ ./configure 2023-09-20 23:44:11.824616386 +0800 @@ -13323,7 +13323,7 @@ # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" @@ -35896,7 +35896,7 @@ compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./m4/ac/config.guess + '[' -f /usr/lib/rpm/OpenCloudOS/config.guess ']' + /usr/bin/rm -f ./m4/ac/config.guess ++ basename ./m4/ac/config.guess + /usr/bin/cp -fv /usr/lib/rpm/OpenCloudOS/config.guess ./m4/ac/config.guess '/usr/lib/rpm/OpenCloudOS/config.guess' -> './m4/ac/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./m4/ac/config.sub + '[' -f /usr/lib/rpm/OpenCloudOS/config.sub ']' + /usr/bin/rm -f ./m4/ac/config.sub ++ basename ./m4/ac/config.sub + /usr/bin/cp -fv /usr/lib/rpm/OpenCloudOS/config.sub ./m4/ac/config.sub '/usr/lib/rpm/OpenCloudOS/config.sub' -> './m4/ac/config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld' ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld"~' ./m4/ac/ltmain.sh + ./configure --build=x86_64-opencloudos-linux-gnu --host=x86_64-opencloudos-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --sbindir=/usr/libexec/frr --sysconfdir=/etc/frr --libdir=/usr/lib64/frr --libexecdir=/usr/libexec/frr --localstatedir=/var/run/frr --enable-multipath=64 --enable-vtysh=yes --disable-ospfclient --disable-ospfapi --enable-snmp=agentx --enable-user=frr --enable-group=frr --enable-vty-group=frrvty --enable-rtadv --disable-exampledir --enable-systemd=yes --enable-static=no --disable-ldpd --disable-babeld --with-moduledir=/usr/lib64/frr/modules --with-crypto=openssl --enable-fpm --enable-grpc configure: WARNING: unrecognized options: --disable-exampledir, --enable-systemd configure: loading site script /usr/share/config.site checking build system type... x86_64-opencloudos-linux-gnu checking host system type... x86_64-opencloudos-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/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... /usr/bin/perl checking for x86_64-opencloudos-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for x86_64-opencloudos-linux-gnu-gcc... 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... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking dependency style of g++... none checking for x86_64-opencloudos-linux-gnu-pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes 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 whether gcc supports -fms-extensions... yes checking whether gcc supports -fno-omit-frame-pointer... yes checking whether gcc supports -funwind-tables... yes checking whether gcc supports -Wall... yes checking whether gcc supports -Wextra... yes checking whether gcc supports -Wstrict-prototypes... yes checking whether gcc supports -Wmissing-prototypes... yes checking whether gcc supports -Wmissing-declarations... yes checking whether gcc supports -Wpointer-arith... yes checking whether gcc supports -Wbad-function-cast... yes checking whether gcc supports -Wwrite-strings... yes checking whether gcc supports -Wundef... yes checking whether gcc supports -Wno-unused-result... yes checking whether gcc supports -Wno-unused-parameter... yes checking whether gcc supports -Wno-missing-field-initializers... yes checking whether gcc supports -Wc++-compat... yes checking whether gcc supports -fplugin=tools/gcc-plugins/frr-format.so... no checking whether gcc supports -fplugin=frr-format... no checking whether linker supports __start/stop_section symbols... yes checking if compiler needs -Werror to reject unknown flags... no checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... no checking for PTHREAD_PRIO_INHERIT... yes checking for library containing pthread_condattr_setclock... none required checking for pthread_np.h... no checking for pthread_setname_np... yes checking for pthread_set_name_np... no checking for pthread_getthreadid_np... no checking whether ln -s works... yes checking for x86_64-opencloudos-linux-gnu-ar... no checking for ar... ar checking how to print strings... printf checking for a sed that does not truncate output... sed checking for egrep... /usr/bin/egrep checking for fgrep... /usr/bin/fgrep checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-opencloudos-linux-gnu file names to x86_64-opencloudos-linux-gnu format... func_convert_file_noop checking how to convert x86_64-opencloudos-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-opencloudos-linux-gnu-file... no checking for file... file checking for x86_64-opencloudos-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-opencloudos-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-opencloudos-linux-gnu-ar... ar checking for archiver @FILE support... @ checking for x86_64-opencloudos-linux-gnu-strip... no checking for strip... strip checking for x86_64-opencloudos-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ./configure: line 13329: -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p': No such file or directory ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for x86_64-opencloudos-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/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 checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether ar supports D option... yes checking whether ranlib supports D option... yes checking for EVP_DigestInit in -lcrypto... yes checking for json-c/json.h... yes checking for json_object_get in -ljson-c... yes checking for a Python interpreter with version >= 3... python3 checking for python3... /usr/bin/python3 checking for python3 version... 3.10 checking for python3 platform... linux checking for GNU default python3 prefix... ${prefix} checking for GNU default python3 exec_prefix... ${exec_prefix} checking for python3 script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.10/site-packages checking for python3 extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib64/python3.10/site-packages checking for gelf.h... yes checking for elf_memory in -lelf... yes checking for elf_getdata_rawchunk in -lelf... yes checking for gelf_getnote in -lelf... yes checking python interpreter /usr/bin/python3... /usr/bin/python3 (python3) checking whether /usr/bin/python3.10-config is available... yes checking whether /usr/bin/python3.10-config provides a working build environment... yes checking whether /usr/bin/python3 module pytest is available... yes checking whether /usr/bin/python3 module sphinx is available... yes checking whether /usr/bin/python3 module sphinx is executable... yes checking if zebra should be configurable to send Route Advertisements... yes checking for x86_64-opencloudos-linux-gnu-objcopy... no checking for objcopy... objcopy checking for .interp value to use... /lib64/ld-linux-x86-64.so.2 checking for stropts.h... no checking for sys/ksym.h... no checking for linux/version.h... yes checking for asm/types.h... yes checking for endian.h... yes checking for sys/endian.h... no checking for stdatomic.h... yes checking whether _Atomic qualifier works... yes checking for Linux futex() support... yes checking for net/if_var.h... no checking for netinet/in_var.h... no checking for net/if_dl.h... no checking for net/netopt.h... no checking for inet/nd.h... no checking for netinet/ip_icmp.h... yes checking for sys/sysctl.h... no checking for sys/sockio.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 which operating system interface to use... Linux checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for strlcat... no checking for strlcpy... no checking for getgrouplist... yes checking for openat... yes checking for unlinkat... yes checking for posix_fallocate... yes checking for sendmmsg... yes checking for explicit_bzero... yes checking for struct mmsghdr.msg_hdr... yes checking for readline in -lreadline... yes checking for rl_clear_visible_line... yes checking for readline/history.h... yes checking for rl_completion_matches in -lreadline... yes checking for append_history in -lreadline... yes checking for library containing pow... -lm checking for ppoll... yes checking for pollts... no checking for asm-generic/unistd.h... yes checking whether __NR_setns is declared... yes checking for setns... yes checking for net/bpf.h... no checking for sys/dlpi.h... no checking zebra IS-IS I/O method... pfpacket checking for struct ip_mreqn.imr_ifindex... yes checking for linux/mroute.h... yes checking for linux/mroute6.h... yes checking for netinet/ip_mroute.h... no checking for RFC3678 protocol-independed API... yes checking for net/if_media.h... no checking for struct if_data.ifi_link_state... no checking for netinet/tcp.h... yes checking whether TCP_MD5SIG is declared... yes checking for crypt in -lcrypt... yes checking for res_init in -lresolv... no checking for CARES (libcares)... yes checking for struct utsname.domainname... yes checking for netinet6/in6.h... no checking for netinet/in6_var.h... no checking for netinet6/in6_var.h... no checking for netinet6/nd6.h... no checking for x86_64-opencloudos-linux-gnu-net-snmp-config... no checking for net-snmp-config... /usr/bin/net-snmp-config checking whether we can link to Net-SNMP... no configure: error: --enable-snmp given but not usable error: Bad exit status from /var/tmp/rpm-tmp.SoE8Ma (%build) Bad exit status from /var/tmp/rpm-tmp.SoE8Ma (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/frr.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/frr.spec