+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/sphinx.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.NBaVby + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sphinx-2.2.11-release + /usr/bin/gzip -dc /builddir/build/SOURCES/sphinx-2.2.11-release.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd sphinx-2.2.11-release + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (sphinx-2.0.3-fix_static.patch):' Patch #0 (sphinx-2.0.3-fix_static.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .fix_static --fuzz=0 patching file api/libsphinxclient/sphinxclient.c Hunk #1 succeeded at 311 (offset 21 lines). patching file api/libsphinxclient/sphinxclient.c Hunk #1 succeeded at 1436 (offset 183 lines). + echo 'Patch #1 (sphinx-2.0.3-default_listen.patch):' Patch #1 (sphinx-2.0.3-default_listen.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .default_listen --fuzz=0 patching file sphinx.conf.in Hunk #1 succeeded at 810 (offset 94 lines). patching file sphinx-min.conf.in Hunk #1 succeeded at 49 (offset -5 lines). + for f in api/java/mk.cmd api/ruby/test.rb api/ruby/spec/sphinx/sphinx_test.sql api/ruby/spec/sphinx/sphinx_test.sql + sed -i 's/\r$//' api/java/mk.cmd + for f in api/java/mk.cmd api/ruby/test.rb api/ruby/spec/sphinx/sphinx_test.sql api/ruby/spec/sphinx/sphinx_test.sql + sed -i 's/\r$//' api/ruby/test.rb + for f in api/java/mk.cmd api/ruby/test.rb api/ruby/spec/sphinx/sphinx_test.sql api/ruby/spec/sphinx/sphinx_test.sql + sed -i 's/\r$//' api/ruby/spec/sphinx/sphinx_test.sql + for f in api/java/mk.cmd api/ruby/test.rb api/ruby/spec/sphinx/sphinx_test.sql api/ruby/spec/sphinx/sphinx_test.sql + sed -i 's/\r$//' api/ruby/spec/sphinx/sphinx_test.sql + iconv -f iso8859-1 -t utf-8 doc/sphinx.txt + mv -f doc/sphinx.txt.conv doc/sphinx.txt + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.zKh4cw + umask 022 + cd /builddir/build/BUILD + cd sphinx-2.2.11-release + 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 ./api/libsphinxclient/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./api/libsphinxclient/config.guess ++ basename ./api/libsphinxclient/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./api/libsphinxclient/config.guess '/usr/lib/rpm/redhat/config.guess' -> './api/libsphinxclient/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./api/libsphinxclient/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./api/libsphinxclient/config.sub ++ basename ./api/libsphinxclient/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./api/libsphinxclient/config.sub '/usr/lib/rpm/redhat/config.sub' -> './api/libsphinxclient/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"~' ./api/libsphinxclient/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 --sysconfdir=/etc/sphinx --with-pgsql --enable-id64 checking build environment -------------------------- 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 to enable maintainer-specific portions of Makefiles... no checking for compiler programs ------------------------------ checking whether to compile debug version... no 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 for riscv64-redhat-linux-gnu-g++... no checking for riscv64-redhat-linux-gnu-c++... no checking for riscv64-redhat-linux-gnu-gpp... no checking for riscv64-redhat-linux-gnu-aCC... no checking for riscv64-redhat-linux-gnu-CC... no checking for riscv64-redhat-linux-gnu-cxx... no checking for riscv64-redhat-linux-gnu-cc++... no checking for riscv64-redhat-linux-gnu-cl.exe... no checking for riscv64-redhat-linux-gnu-FCC... no checking for riscv64-redhat-linux-gnu-KCC... no checking for riscv64-redhat-linux-gnu-RCC... no checking for riscv64-redhat-linux-gnu-xlC_r... no checking for riscv64-redhat-linux-gnu-xlC... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... none checking for riscv64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking for header files ------------------------- 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/wait.h that is POSIX.1 compatible... 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 fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/file.h usability... yes checking sys/file.h presence... yes checking for sys/file.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking execinfo.h usability... yes checking execinfo.h presence... yes checking for execinfo.h... yes checking sys/epoll.h usability... yes checking sys/epoll.h presence... yes checking for sys/epoll.h... yes checking expat.h usability... yes checking expat.h presence... yes checking for expat.h... yes checking iconv.h usability... yes checking iconv.h presence... yes checking for iconv.h... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking sql.h usability... no checking sql.h presence... no checking for sql.h... no checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for types ------------------ checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for off_t... yes checking for size_t... yes checking whether time.h and sys/time.h may both be included... yes checking for library functions ------------------------------ 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... yes checking for working vfork... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking for sys/socket.h... (cached) yes checking types of arguments for select... int,fd_set *,struct timeval * checking return type of signal handlers... void checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking for vprintf... yes checking for _doprnt... no checking for library containing setsockopt... none required checking for library containing gethostbyname... none required checking for library containing inflate... -lz checking for library containing logf... -lm checking for dup2... yes checking for gethostbyname... yes checking for gettimeofday... 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 strerror... yes checking for strncasecmp... yes checking for strnlen... yes checking for strstr... yes checking for strtol... yes checking for logf... yes checking for pread... yes checking for poll... yes checking for backtrace... yes checking for backtrace_symbols... yes checking for epoll_ctl... yes checking for clock_gettime in -lrt... yes checking for clock_gettime... yes checking for LOCK_EX in sys/file.h... yes checking for F_SETLKW in fcntl.h... yes checking for library containing dlopen... -ldl checking for dlopen... yes checking for dlerror... yes checking for interlocked builtins... yes configuring Sphinx ------------------ checking whether to use dynamic linking for DB drivers... no checking for CFLAGS needed for pthreads... -pthread checking for LIBS needed for pthreads... -lpthread checking for pthreads... found checking for pthread_mutex_timedlock... yes checking whether to compile with MySQL support... dynamic checking for mysql_config... not found checking MySQL include files... configure: error: missing include files. ****************************************************************************** ERROR: cannot find MySQL include files. Check that you do have MySQL include files installed. The package name is typically 'mysql-devel'. If include files are installed on your system, but you are still getting this message, you should do one of the following: 1) either specify includes location explicitly, using --with-mysql-includes; 2) or specify MySQL installation root location explicitly, using --with-mysql; 3) or make sure that the path to 'mysql_config' program is listed in your PATH environment variable. To disable MySQL support, use --without-mysql option. ****************************************************************************** error: Bad exit status from /var/tmp/rpm-tmp.zKh4cw (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.zKh4cw (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff