+ exec
+ rm -rf /rpmbuild
+ mkdir -p /rpmbuild
+ su -c 'rpmbuild -ba /builddir/build/SPECS/dspam.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.okZnV5
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf dspam-3.10.2
+ /usr/bin/gzip -dc /builddir/build/SOURCES/dspam-3.10.2.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd dspam-3.10.2
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #1 (dspam-3.9.0-docs.patch):'
Patch #1 (dspam-3.9.0-docs.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0
patching file doc/postfix.txt
patching file doc/relay.txt
+ echo 'Patch #2 (dspam-3.9.0-dspamsock.patch):'
Patch #2 (dspam-3.9.0-dspamsock.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0
patching file src/dspam.conf.in
Hunk #1 succeeded at 845 (offset 31 lines).
+ echo 'Patch #3 (dspam-default-server-port.patch):'
Patch #3 (dspam-default-server-port.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0
patching file src/dspam.conf.in
Hunk #1 succeeded at 807 (offset 5 lines).
+ echo 'Patch #4 (dspam-3.10.2.exim.patch):'
Patch #4 (dspam-3.10.2.exim.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0
patching file doc/exim.txt
patching file src/dspam.conf.in
+ echo 'Patch #5 (dspam-recipient-corruption.patch):'
Patch #5 (dspam-recipient-corruption.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
patching file src/dspam.c
+ echo 'Patch #6 (dspam-sqlite3_drv.patch):'
Patch #6 (dspam-sqlite3_drv.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0
patching file ./src/sqlite3_drv.c
+ echo 'Patch #7 (dspam-mariadb.patch):'
Patch #7 (dspam-mariadb.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0
patching file configure
patching file m4/mysql_drv.m4
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.B43biA
+ umask 022
+ cd /builddir/build/BUILD
+ cd dspam-3.10.2
+ 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 '
+ 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.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'
+ 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'
+ '[' 1 = 1 ']'
+ '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']'
++ find . -name ltmain.sh
+ for i in $(find . -name ltmain.sh)
+ /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./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-long-usernames --enable-syslog --enable-large-scale --enable-clamav --disable-domain-scale --disable-homedir --enable-virtual-users --enable-preferences-extension --with-mysql-includes=/usr/include/mysql --with-mysql-libraries=/usr/lib64/mysql --with-pgsql-includes=/usr/include/pgsql --with-pgsql-libraries=/usr/lib64 --enable-daemon --enable-external-lookup --with-storage-driver=hash_drv,mysql_drv,pgsql_drv,sqlite3_drv --with-dspam-home=/var/lib/dspam --with-dspam-owner=dspam --with-dspam-group=mail --with-dspam-home-group=mail --with-dspam-mode=2511 --with-logdir=/var/log/dspam --sysconfdir=/etc
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 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 for style of include used by make... GNU
checking dependency style of gcc... none
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
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 whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert riscv64-redhat-linux-gnu file names to riscv64-redhat-linux-gnu format... func_convert_file_noop
checking how to convert riscv64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for riscv64-redhat-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for riscv64-redhat-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for riscv64-redhat-linux-gnu-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for riscv64-redhat-linux-gnu-strip... no
checking for strip... strip
checking for riscv64-redhat-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for riscv64-redhat-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -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 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... no
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) 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... yes
checking whether make sets $(MAKE)... (cached) yes
checking for inline... inline
checking for ISO C99 varargs macros in C... yes
checking for string.h... (cached) yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for strlcpy... no
checking for strsep... yes
checking for strtok_r... yes
checking for getpwnam_r... yes
checking for getpwuid_r... yes
checking for memcpy... yes
checking for memset... yes
checking for localtime_r... yes
checking for sys/types.h... (cached) yes
checking for sys/socket.h... yes
checking for netinet/in.h... yes
checking for arpa/inet.h... yes
checking for inet_ntoa_r... no
checking if inet_ntoa_r might be used... no
checking for strcasestr... yes
checking whether to enable daemon mode... yes
checking how you like your pthreads... -pthread
checking for sys/types.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for netinet/in.h... (cached) yes
checking for arpa/inet.h... (cached) yes
checking for library containing inet_ntoa... none required
checking for library containing socket... none required
checking for library containing dlopen... -ldl
checking whether to enable split configuration file support... no
checking whether to enable external lookup support... yes
checking lber.h usability... yes
checking lber.h presence... yes
checking for lber.h... yes
checking ldap.h usability... yes
checking ldap.h presence... yes
checking for ldap.h... yes
checking for ber_alloc in -llber... yes
checking for ldap_init in -lldap... yes
checking for OpenLDAP version >= 2.2.0... yes
checking whether to enable LDAP support in external lookup... yes
checking for dspam_home... /var/lib/dspam
checking which delivery agent to activate in dspam.conf... /usr/bin/procmail
checking whether to enable trusted user security... yes
checking whether to enable clamav... yes
checking whether to enable debug output... no
checking whether to enable syslog output... yes
checking whether to enable debug output for BNR... no
checking whether to enable home directory support... no
checking whether to enable MySQL client initialization... yes
checking whether to enable preferences-extension... yes
checking whether to enable verbose debug output... no
checking whether to enable long usernames... yes
checking whether to enable large scale implementation... yes
checking whether to enable domain structure implementation... no
checking for logdir... /var/log/dspam
checking which storage drivers to build... hash_drv,mysql_drv,pgsql_drv,sqlite3_drv
checking whether to enable virtual users... yes
checking where to find MySQL headers... /usr/include/mysql
checking mysql.h usability... yes
checking mysql.h presence... yes
checking for mysql.h... yes
checking mysqld_error.h usability... yes
checking mysqld_error.h presence... yes
checking for mysqld_error.h... yes
checking errmsg.h usability... yes
checking errmsg.h presence... yes
checking for errmsg.h... yes
checking for library containing gzopen... -lz
checking where to find MySQL libraries... /usr/lib64/mysql
configure: error: required path for mysql libraries (/usr/lib64/mysql) is not a directory
error: Bad exit status from /var/tmp/rpm-tmp.B43biA (%build)


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