+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/sbd.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild warning: Macro expanded in comment on line 28: %{buildnum}.%{shortcommit}.git%{?dist} Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fHNBqO + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sbd-1ee3503cbc52b73876b6aae5471d3b6f7c092bf5 + /usr/bin/gzip -dc /builddir/build/SOURCES/sbd-1ee3503cbc52b73876b6aae5471d3b6f7c092bf5.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd sbd-1ee3503cbc52b73876b6aae5471d3b6f7c092bf5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/sbd-no-storage-option.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/sbd-local-debug.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/sbd-pcmk-health.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/sbd-proc-pid.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.7sf4Oj + umask 022 + cd /builddir/build/BUILD + cd sbd-1ee3503cbc52b73876b6aae5471d3b6f7c092bf5 + autoreconf -i configure.ac:30: installing './compile' configure.ac:25: installing './config.guess' configure.ac:25: installing './config.sub' configure.ac:29: installing './install-sh' configure.ac:29: installing './missing' Makefile.am:5: warning: shell git log --pretty="format:%H" -n 1: non-POSIX variable name Makefile.am:5: (probably a GNU make extension) Makefile.am:10: warning: shell pwd: non-POSIX variable name Makefile.am:10: (probably a GNU make extension) Makefile.am:19: warning: shell test ! -e $(BUILD_COUNTER: non-POSIX variable name Makefile.am:19: (probably a GNU make extension) Makefile.am:20: warning: shell expr 1 + $(LAST_COUNT: non-POSIX variable name Makefile.am:20: (probably a GNU make extension) src/Makefile.am: installing './depcomp' + export 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -Werror' + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -Werror' + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -Werror' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 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 ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-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 checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu checking whether make supports nested variables... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports the include directive... yes (GNU style) checking for riscv64-redhat-linux-gnu-gcc... no checking for 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 we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking for riscv64-redhat-linux-gnu-pkg-config... /usr/bin/riscv64-redhat-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking for glib... yes checking for pacemaker... yes checking for pcmk... no checking for libqb... yes checking for libxml... yes checking for io_setup in -laio... yes checking for qb_ipcs_connection_auth_set in -lqb... yes checking for cib_new in -lcib... yes checking for set_crm_log_level in -lcrmcommon... yes checking for pe_find_node in -lpe_status... yes checking for test_rule in -lpe_rules... yes checking for crm_peer_init in -lcrmcluster... yes checking for uuid_unparse in -luuid... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E 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 pacemaker/crm/cluster.h usability... yes checking pacemaker/crm/cluster.h presence... yes checking for pacemaker/crm/cluster.h... yes checking for pcmk_strerror in -lcrmcommon... yes checking for cib_apply_patch_event in -lcib... yes checking for pod2man... /usr/bin/pod2man /proc/{pid} is supported checking for setproctitle... no checking libutil.h usability... no checking libutil.h presence... no checking for libutil.h... no checking for setproctitle in -lutil... no checking sys/pstat.h usability... no checking sys/pstat.h presence... no checking for sys/pstat.h... no checking whether __progname and __progname_full are available... yes checking which argv replacement method to use... writeable configure: Sanitizing prefix: /usr configure: Sanitizing exec_prefix: /usr checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating agent/Makefile config.status: creating man/Makefile config.status: creating src/sbd.service config.status: creating config.h config.status: executing depfiles commands + make -j4 make all-recursive make[1]: Entering directory '/builddir/build/BUILD/sbd-1ee3503cbc52b73876b6aae5471d3b6f7c092bf5' Making all in src make[2]: Entering directory '/builddir/build/BUILD/sbd-1ee3503cbc52b73876b6aae5471d3b6f7c092bf5/src' gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/pacemaker -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Werror -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pacemaker -I/usr/include/libxml2 -D_GNU_SOURCE -DCHECK_AIS -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -Werror -c -o sbd-common.o sbd-common.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/pacemaker -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Werror -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pacemaker -I/usr/include/libxml2 -D_GNU_SOURCE -DCHECK_AIS -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -Werror -c -o sbd-inquisitor.o sbd-inquisitor.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/pacemaker -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Werror -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pacemaker -I/usr/include/libxml2 -D_GNU_SOURCE -DCHECK_AIS -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -Werror -c -o sbd-pacemaker.o sbd-pacemaker.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/pacemaker -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Werror -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pacemaker -I/usr/include/libxml2 -D_GNU_SOURCE -DCHECK_AIS -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -Werror -c -o setproctitle.o setproctitle.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/pacemaker -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -Werror -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pacemaker -I/usr/include/libxml2 -D_GNU_SOURCE -DCHECK_AIS -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -Werror -c -o sbd-md.o sbd-md.c gcc -D_GNU_SOURCE -DCHECK_AIS -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wall -Werror -lglib-2.0 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o sbd sbd-common.o sbd-inquisitor.o sbd-pacemaker.o setproctitle.o sbd-md.o -lcib -lcrmcommon -luuid -lcrmcluster -lpe_rules -lpe_status -lcrmcommon -lcib -lqb -laio /usr/bin/ld: warning: /lib64/lp64d/libqb.so contains output sections; did you forget -T? sbd-inquisitor.o: In function `inquisitor_child': /builddir/build/BUILD/sbd-1ee3503cbc52b73876b6aae5471d3b6f7c092bf5/src/sbd-inquisitor.c:543: undefined reference to `cleanup_servant_by_pid' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:371: sbd] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/sbd-1ee3503cbc52b73876b6aae5471d3b6f7c092bf5/src' make[1]: *** [Makefile:383: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/sbd-1ee3503cbc52b73876b6aae5471d3b6f7c092bf5' make: *** [Makefile:324: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.7sf4Oj (%build) RPM build errors: Macro expanded in comment on line 28: %{buildnum}.%{shortcommit}.git%{?dist} Bad exit status from /var/tmp/rpm-tmp.7sf4Oj (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff