+ exec
+ rm -rf /rpmbuild
+ mkdir -p /rpmbuild
+ su -c 'rpmbuild -ba /builddir/build/SPECS/ypbind.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
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.2DoasD
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf ypbind-mt-1.38
+ /usr/bin/bzip2 -dc /builddir/build/SOURCES/ypbind-mt-1.38.tar.bz2
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd ypbind-mt-1.38
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #1 (ypbind-1.11-gettextdomain.patch):'
Patch #1 (ypbind-1.11-gettextdomain.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .gettextdomain --fuzz=0
patching file po/Makevars
+ echo 'Patch #2 (ypbind-helpman.patch):'
Patch #2 (ypbind-helpman.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .helpman --fuzz=0
patching file man/ypbind.8
patching file man/yp.conf.5
patching file src/ypbind-mt.c
+ echo 'Patch #3 (ypbind-systemdso.patch):'
Patch #3 (ypbind-systemdso.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .systemdso --fuzz=0
patching file configure.ac
+ autoreconf -fiv
autoreconf: Entering directory `.'
autoreconf: running: autopoint --force
Copying file config.rpath
Copying file m4/codeset.m4
Copying file m4/extern-inline.m4
Copying file m4/fcntl-o.m4
Copying file m4/glibc2.m4
Copying file m4/glibc21.m4
Copying file m4/intdiv0.m4
Copying file m4/intl.m4
Copying file m4/intldir.m4
Copying file m4/intlmacosx.m4
Copying file m4/intmax.m4
Copying file m4/inttypes-pri.m4
Copying file m4/inttypes_h.m4
Copying file m4/lcmessage.m4
Copying file m4/lock.m4
Copying file m4/longlong.m4
Copying file m4/printf-posix.m4
Copying file m4/size_max.m4
Copying file m4/stdint_h.m4
Copying file m4/threadlib.m4
Copying file m4/uintmax_t.m4
Copying file m4/visibility.m4
Copying file m4/wchar_t.m4
Copying file m4/wint_t.m4
Copying file m4/xsize.m4
Copying file po/Makevars.template
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:12: installing './compile'
autoreconf: Leaving directory `.'
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.6yMfX8
+ umask 022
+ cd /builddir/build/BUILD
+ cd ypbind-mt-1.38
+ 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  -fpic'
+ 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  -fpic'
+ export 'LDFLAGS= -pie -Wl,-z,relro,-z,now'
+ LDFLAGS=' -pie -Wl,-z,relro,-z,now'
+ 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  -fpic'
+ 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=' -pie -Wl,-z,relro,-z,now'
+ 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 --enable-dbus-nm
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 nested variables... yes
checking build system type... riscv64-redhat-linux-gnu
checking host system type... riscv64-redhat-linux-gnu
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 for style of include used by make... GNU
checking dependency style of gcc... none
checking for strerror in -lcposix... no
checking whether make sets $(MAKE)... (cached) yes
checking for riscv64-redhat-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking if malloc debugging is wanted... no
checking if malloc debugging with efence is wanted... no
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 slp.h usability... no
checking slp.h presence... no
checking for slp.h... no
checking for SLPReg in -lslp... no
checking for yp_get_default_domain in -lnsl... no
checking for bind in -lsocket... no
checking for pthread_create in -lpthread... yes
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 SYSTEMD... no
checking for DBUS... yes
checking for GLIB... yes
checking NetworkManager/NetworkManager.h usability... no
checking NetworkManager/NetworkManager.h presence... no
checking for NetworkManager/NetworkManager.h... no
checking NetworkManager/NetworkManagerVPN.h usability... no
checking NetworkManager/NetworkManagerVPN.h presence... no
checking for NetworkManager/NetworkManagerVPN.h... no
checking for __nss_configure_lookup... yes
checking for an ANSI C-conforming const... yes
checking wether <sys/socket.h> defiens socklen_t... yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking rpc/svc_soc.h usability... no
checking rpc/svc_soc.h presence... no
checking for rpc/svc_soc.h... no
checking rpc/clnt_soc.h usability... no
checking rpc/clnt_soc.h presence... no
checking for rpc/clnt_soc.h... no
checking nss.h usability... yes
checking nss.h presence... yes
checking for nss.h... yes
checking for getline... yes
checking for getdelim... yes
checking for vsyslog... yes
checking for res_gethostbyname... no
checking for _dns_gethostbyname... no
checking for xsltproc... no
checking for xmllint... /usr/bin/xmllint
checking for XML catalog (/etc/xml/catalog)... found
checking for xmlcatalog... /usr/bin/xmlcatalog
checking for DocBook XML DTD V4.3 in XML catalog... found
checking for DocBook XSL Stylesheets in XML catalog... found
checking for a sed that does not truncate output... /usr/bin/sed
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking wether we have glibc 2.1 or later... 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 src/Makefile
config.status: creating man/Makefile
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
+ make
make  all-recursive
make[1]: Entering directory '/builddir/build/BUILD/ypbind-mt-1.38'
Making all in lib
make[2]: Entering directory '/builddir/build/BUILD/ypbind-mt-1.38/lib'
gcc -DHAVE_CONFIG_H -I. -I..  -DLOCALEDIR=\"/usr/share/locale\"  -D_REENTRANT=1 -Wall -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  -fpic -c -o dns_hosts.o dns_hosts.c
rm -f libcompat.a
ar cru libcompat.a dns_hosts.o 
ranlib libcompat.a
make[2]: Leaving directory '/builddir/build/BUILD/ypbind-mt-1.38/lib'
Making all in src
make[2]: Entering directory '/builddir/build/BUILD/ypbind-mt-1.38/src'
gcc -DHAVE_CONFIG_H -I. -I..    -D_REENTRANT=1 -Wall -DUSE_BROADCAST=1 -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -DUSE_SD_NOTIFY=0 -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  -fpic -c -o ypbind-mt.o ypbind-mt.c
ypbind-mt.c:42:10: fatal error: rpc/rpc.h: No such file or directory
 #include <rpc/rpc.h>
          ^~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:427: ypbind-mt.o] Error 1
make[2]: Leaving directory '/builddir/build/BUILD/ypbind-mt-1.38/src'
make[1]: *** [Makefile:419: all-recursive] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/ypbind-mt-1.38'
make: *** [Makefile:360: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.6yMfX8 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.6yMfX8 (%build)
++ cleanup
++ set +e
++ sync
++ sleep 5
++ sync
++ poweroff
Terminated
+++ cleanup
+++ set +e
+++ sync
+++ sleep 5
Terminated
++++ cleanup
++++ set +e
++++ sync
++++ sleep 5
++++ sync
++++ poweroff