+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/lockdev.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.cE9sDf + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf lockdev-scm-2011-10-07 + /usr/bin/gzip -dc /builddir/build/SOURCES/lockdev-1.0.4.20111007git.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd lockdev-scm-2011-10-07 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (lockdev-euidaccess.patch):' Patch #1 (lockdev-euidaccess.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .access --fuzz=0 patching file src/lockdev.c Hunk #2 succeeded at 125 (offset -4 lines). patching file src/Makefile.am patching file src/sample.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.qw882d + umask 022 + cd /builddir/build/BUILD + cd lockdev-scm-2011-10-07 + ./scripts/git-version ./scripts/git-version: line 7: git: command not found + touch ChangeLog + autoreconf --verbose --force --install autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force configure.ac:8: warning: AC_INIT: not a literal: lockdev_m4_esyscmd_s([sed -ne '/^Version:/{s/Version:[[:space:]][[:space:]]*//p;q}' VERSION]) aclocal: warning: couldn't open directory 'm4': No such file or directory configure.ac:8: warning: AC_INIT: not a literal: lockdev_m4_esyscmd_s([sed -ne '/^Version:/{s/Version:[[:space:]][[:space:]]*//p;q}' VERSION]) autoreconf: configure.ac: tracing configure.ac:8: warning: AC_INIT: not a literal: lockdev_m4_esyscmd_s([sed -ne '/^Version:/{s/Version:[[:space:]][[:space:]]*//p;q}' VERSION]) autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'scripts'. libtoolize: copying file 'scripts/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. configure.ac:8: warning: AC_INIT: not a literal: lockdev_m4_esyscmd_s([sed -ne '/^Version:/{s/Version:[[:space:]][[:space:]]*//p;q}' VERSION]) configure.ac:8: warning: AC_INIT: not a literal: lockdev_m4_esyscmd_s([sed -ne '/^Version:/{s/Version:[[:space:]][[:space:]]*//p;q}' VERSION]) autoreconf: running: /usr/bin/autoconf --force configure.ac:8: warning: AC_INIT: not a literal: lockdev_m4_esyscmd_s([sed -ne '/^Version:/{s/Version:[[:space:]][[:space:]]*//p;q}' VERSION]) autoreconf: running: /usr/bin/autoheader --force configure.ac:8: warning: AC_INIT: not a literal: lockdev_m4_esyscmd_s([sed -ne '/^Version:/{s/Version:[[:space:]][[:space:]]*//p;q}' VERSION]) autoreconf: running: automake --add-missing --copy --force-missing configure.ac:8: warning: AC_INIT: not a literal: lockdev_m4_esyscmd_s([sed -ne '/^Version:/{s/Version:[[:space:]][[:space:]]*//p;q}' VERSION]) configure.ac:36: installing 'scripts/compile' configure.ac:17: installing 'scripts/config.guess' configure.ac:17: installing 'scripts/config.sub' configure.ac:24: installing 'scripts/install-sh' configure.ac:24: installing 'scripts/missing' Makefile.am: installing './INSTALL' /usr/share/automake-1.15/am/ltlibrary.am: warning: 'liblockdev.la': linking libtool libraries using a non-POSIX /usr/share/automake-1.15/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac' src/Makefile.am:13: while processing Libtool library 'liblockdev.la' src/Makefile.am: installing 'scripts/depcomp' autoreconf: Leaving directory `.' + 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 -D_PATH_LOCK=\"/run/lock/lockdev\"' + 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 -D_PATH_LOCK=\"/run/lock/lockdev\"' + 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 ./scripts/config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./scripts/config.sub ++ basename ./scripts/config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./scripts/config.sub '/usr/lib/rpm/redhat/config.sub' -> './scripts/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./scripts/config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./scripts/config.guess ++ basename ./scripts/config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./scripts/config.guess '/usr/lib/rpm/redhat/config.guess' -> './scripts/config.guess' + '[' 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"~' ./scripts/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 --disable-static --enable-helper --disable-silent-rules checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu 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 whether make supports nested variables... (cached) yes 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 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 how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed 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 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 a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for riscv64-redhat-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no 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... no checking whether the library needs to call a helper... yes checking whether to enable debug output... no 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 docs/Makefile config.status: creating lockdev.pc config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands + make -j4 make all-recursive make[1]: Entering directory '/builddir/build/BUILD/lockdev-scm-2011-10-07' Making all in src make[2]: Entering directory '/builddir/build/BUILD/lockdev-scm-2011-10-07/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -include ../config.h -DSBINDIR=\"/usr/sbin\" -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 -D_PATH_LOCK=\"/run/lock/lockdev\" -c -o lockdev.lo lockdev.c gcc -DHAVE_CONFIG_H -I. -I.. -include ../config.h -DSBINDIR=\"/usr/sbin\" -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 -D_PATH_LOCK=\"/run/lock/lockdev\" -c -o baudboy_test.o baudboy_test.c gcc -DHAVE_CONFIG_H -I. -I.. -include ../config.h -DSBINDIR=\"/usr/sbin\" -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 -D_PATH_LOCK=\"/run/lock/lockdev\" -c -o sample.o sample.c In file included from sample.c:14:0: lockdev.c: In function '_dl_filename_1': lockdev.c:240:3: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] major(st->st_dev), major(st->st_rdev), minor(st->st_rdev)); ^~~~~ lockdev.c:240:42: warning: implicit declaration of function 'minor'; did you mean 'mknod'? [-Wimplicit-function-declaration] major(st->st_dev), major(st->st_rdev), minor(st->st_rdev)); ^~~~~ mknod lockdev.c: In function '_dl_check_lock': lockdev.c:453:3: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf( fd, "%d", &pid2); ^~~~~~~~~~~~~~~~~~~~~~~~ lockdev.c:458:4: warning: ignoring return value of 'link', declared with attribute warn_unused_result [-Wunused-result] link( tpname, lockname); ^~~~~~~~~~~~~~~~~~~~~~~ libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -include ../config.h -DSBINDIR=\"/usr/sbin\" -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 -D_PATH_LOCK=\"/run/lock/lockdev\" -c lockdev.c -fPIC -DPIC -o .libs/lockdev.o lockdev.c: In function '_dl_filename_1': lockdev.c:240:3: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] major(st->st_dev), major(st->st_rdev), minor(st->st_rdev)); ^~~~~ lockdev.c:240:42: warning: implicit declaration of function 'minor'; did you mean 'mknod'? [-Wimplicit-function-declaration] major(st->st_dev), major(st->st_rdev), minor(st->st_rdev)); ^~~~~ mknod lockdev.c: In function '_dl_check_lock': lockdev.c:453:3: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf( fd, "%d", &pid2); ^~~~~~~~~~~~~~~~~~~~~~~~ lockdev.c:458:4: warning: ignoring return value of 'link', declared with attribute warn_unused_result [-Wunused-result] link( tpname, lockname); ^~~~~~~~~~~~~~~~~~~~~~~ lockdev.c: In function '_spawn_helper': lockdev.c:961:2: warning: ignoring return value of 'setregid', declared with attribute warn_unused_result [-Wunused-result] setregid(getegid(), getgid()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lockdev.c:962:2: warning: ignoring return value of 'setreuid', declared with attribute warn_unused_result [-Wunused-result] setreuid(geteuid(), getuid()); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /bin/sh ../libtool --tag=CC --mode=link gcc -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 -D_PATH_LOCK=\"/run/lock/lockdev\" -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o lockdev sample.o libtool: link: gcc -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 -D_PATH_LOCK=\"/run/lock/lockdev\" -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o lockdev sample.o /bin/sh ../libtool --tag=CC --mode=link gcc -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 -D_PATH_LOCK=\"/run/lock/lockdev\" -version-info 1:0:0 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o liblockdev.la -rpath /usr/lib64 lockdev.lo sample.o: In function `dev_testlock': /builddir/build/BUILD/lockdev-scm-2011-10-07/src/lockdev.c:558: undefined reference to `major' /builddir/build/BUILD/lockdev-scm-2011-10-07/src/lockdev.c:566: undefined reference to `major' sample.o: In function `_dl_filename_1': /builddir/build/BUILD/lockdev-scm-2011-10-07/src/lockdev.c:230: undefined reference to `minor' sample.o: In function `dev_lock': /builddir/build/BUILD/lockdev-scm-2011-10-07/src/lockdev.c:694: undefined reference to `major' /builddir/build/BUILD/lockdev-scm-2011-10-07/src/lockdev.c:695: undefined reference to `major' /builddir/build/BUILD/lockdev-scm-2011-10-07/src/lockdev.c:697: undefined reference to `minor' sample.o: In function `strcpy': /usr/include/bits/string_fortified.h:90: undefined reference to `major' /usr/include/bits/string_fortified.h:90: undefined reference to `major' sample.o: In function `strcat': /usr/include/bits/string_fortified.h:128: undefined reference to `minor' sample.o: In function `dev_unlock': /builddir/build/BUILD/lockdev-scm-2011-10-07/src/lockdev.c:873: undefined reference to `major' /builddir/build/BUILD/lockdev-scm-2011-10-07/src/lockdev.c:854: undefined reference to `major' /builddir/build/BUILD/lockdev-scm-2011-10-07/src/lockdev.c:854: undefined reference to `minor' collect2: error: ld returned 1 exit status make[2]: *** [Makefile:485: lockdev] Error 1 make[2]: *** Waiting for unfinished jobs.... libtool: link: gcc -shared -fPIC -DPIC .libs/lockdev.o -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -fstack-protector-strong -grecord-gcc-switches -Wl,-z -Wl,relro -Wl,-soname -Wl,liblockdev.so.1 -o .libs/liblockdev.so.1.0.0 libtool: link: (cd ".libs" && rm -f "liblockdev.so.1" && ln -s "liblockdev.so.1.0.0" "liblockdev.so.1") libtool: link: (cd ".libs" && rm -f "liblockdev.so" && ln -s "liblockdev.so.1.0.0" "liblockdev.so") libtool: link: ( cd ".libs" && rm -f "liblockdev.la" && ln -s "../liblockdev.la" "liblockdev.la" ) make[2]: Leaving directory '/builddir/build/BUILD/lockdev-scm-2011-10-07/src' make[1]: *** [Makefile:464: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/lockdev-scm-2011-10-07' make: *** [Makefile:373: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.qw882d (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.qw882d (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff