D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/sphinx-2.2.11-2.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.9oTa58 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf sphinx-2.2.11-release + /usr/bin/gzip -dc /home/pterjan/rpmbuild/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-DESTDIR.diff):' Patch #0 (sphinx-DESTDIR.diff): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file Makefile.am Hunk #1 succeeded at 16 (offset 8 lines). + echo 'Patch #1 (sphinx-mga_conf.diff):' Patch #1 (sphinx-mga_conf.diff): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file sphinx.conf.in patching file sphinx-min.conf.in + echo 'Patch #2 (sphinx-libsphinxclient-version-info_fix.diff):' Patch #2 (sphinx-libsphinxclient-version-info_fix.diff): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file api/libsphinxclient/Makefile.am + echo 'Patch #3 (sphinx-2.0.3-fix_static.patch):' Patch #3 (sphinx-2.0.3-fix_static.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --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). + cp /home/pterjan/rpmbuild/SOURCES/sphinx-searchd.service sphinx-searchd.service + cp /home/pterjan/rpmbuild/SOURCES/sphinx.logrotate sphinx.logrotate + sed -i 's/\r//' api/ruby/spec/sphinx/sphinx_test.sql + sed -i 's/\r//' api/java/mk.cmd + sed -i 's/\r//' api/ruby/spec/fixtures/keywords.php + sed -i 's/\r//' api/ruby/lib/sphinx/response.rb + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.VBGEY4 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd sphinx-2.2.11-release + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + export 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export 'CXXFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export 'RPM_OPT_FLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + RPM_OPT_FLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + pushd api/libsphinxclient ~/rpmbuild/BUILD/sphinx-2.2.11-release/api/libsphinxclient ~/rpmbuild/BUILD/sphinx-2.2.11-release + sh ./buildconf.sh aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' rebuilding configure libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.in, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. rebuilding sphinxclient_config.h.in rebuilding Makefile.in files automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:19: installing './compile' automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all' + export FFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + CONFIGURE_TOP=. + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool Modifying ltmain.sh underlinking for plugins (cf http://wiki.mandriva.com/en/Underlinking) + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking Fixing libtool's ltmain.sh to prevent overlinking (cf http://wiki.mandriva.com/en/Overlinking) + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . Fixing libtool inside configure to pass -Wl,xxx options before libraries + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + '[' -f ./configure.in -o -f ./configure.ac ']' + CONFIGURE_XPATH='--x-includes=/usr/include --x-libraries=/usr/lib64' + ./configure --build=x86_64-mageia-linux-gnu --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 --x-includes=/usr/include --x-libraries=/usr/lib64 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes /home/pterjan/rpmbuild/BUILD/sphinx-2.2.11-release/api/libsphinxclient/missing: Unknown `--is-lightweight' option Try `/home/pterjan/rpmbuild/BUILD/sphinx-2.2.11-release/api/libsphinxclient/missing --help' for more information configure: WARNING: 'missing' script is too old or missing 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 whether to enable maintainer-specific portions of Makefiles... 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 whether make supports the include directive... yes (GNU style) checking dependency style of gcc... none checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu 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 how to print strings... printf 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 how to convert x86_64-mageia-linux-gnu file names to x86_64-mageia-linux-gnu format... func_convert_file_noop checking how to convert x86_64-mageia-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... 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 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 -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... yes checking for size_t... yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking for unistd.h... (cached) yes checking for stdint.h... (cached) yes checking for gethostbyname in -lnsl... yes checking for connect in -lsocket... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating sphinxclient_config.h config.status: executing depfiles commands config.status: executing libtool commands + make make all-am make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sphinx-2.2.11-release/api/libsphinxclient' gcc -DHAVE_CONFIG_H -I. -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fstack-protector-all -c -o test.o test.c test.c: In function 'test_persist_work': test.c:236:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] memcpy ( docs[0], words, sizeof(words)-1 ); ^~~~~~ test.c:236:2: warning: incompatible implicit declaration of built-in function 'memcpy' test.c:236:2: note: include '' or provide a declaration of 'memcpy' test.c:271:44: warning: passing argument 3 of 'sphinx_build_excerpts' from incompatible pointer type [-Wincompatible-pointer-types] res = sphinx_build_excerpts ( client, 1, docs, index, words, &opts ); ^~~~ In file included from test.c:24:0: sphinxclient.h:252:14: note: expected 'const char **' but argument is of type 'char **' char ** sphinx_build_excerpts ( sphinx_client * client, int num_docs, const char ** docs, const char * index, const char * words, sphinx_excerpt_options * opts ); ^~~~~~~~~~~~~~~~~~~~~ test.c: In function 'test_status': test.c:363:22: warning: implicit declaration of function 'strstr' [-Wimplicit-function-declaration] if ( !g_smoke || ( strstr ( status[k], "time" )==NULL && strstr ( status[k], "wall" )==NULL && strstr ( status[k], "wait" )==NULL ) ) ^~~~~~ test.c:363:22: warning: incompatible implicit declaration of built-in function 'strstr' test.c:363:22: note: include '' or provide a declaration of 'strstr' test.c: In function 'title': test.c:408:17: warning: ' ' flag used with '%s' gnu_printf format [-Wformat=] printf ( "-> % s <-\n\n", name ); ^ test.c: In function 'main': test.c:420:8: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] if ( strcmp ( argv[i], "--smoke" )==0 ) ^~~~~~ make[1]: *** No rule to make target '.libs/libsphinxclient.a', needed by 'test'. Stop. make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sphinx-2.2.11-release/api/libsphinxclient' make: *** [Makefile:360: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.VBGEY4 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.VBGEY4 (%build) I: [iurt_root_command] ERROR: chroot