+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/mt-st.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.Ykky67 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf mt-st-1.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/mt-st-1.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd mt-st-1.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (mt-st-1.1-redhat.patch):' Patch #0 (mt-st-1.1-redhat.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .redhat --fuzz=0 patching file Makefile + echo 'Patch #1 (mt-st-1.1-SDLT.patch):' Patch #1 (mt-st-1.1-SDLT.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .sdlt --fuzz=0 patching file mt.c + echo 'Patch #2 (mt-st-0.7-config-files.patch):' Patch #2 (mt-st-0.7-config-files.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .configfiles --fuzz=0 patching file stinit.def.examples + echo 'Patch #3 (mt-st-0.9b-manfix.patch):' Patch #3 (mt-st-0.9b-manfix.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .manfix --fuzz=0 patching file mt.1 + echo 'Patch #4 (mt-st-1.1-mtio.patch):' Patch #4 (mt-st-1.1-mtio.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .mtio --fuzz=0 patching file mt.c patching file stinit.c + echo 'Patch #5 (mt-st-1.1-options.patch):' Patch #5 (mt-st-1.1-options.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .options --fuzz=0 patching file stinit.c + echo 'Patch #6 (mt-st-1.1-man.patch):' Patch #6 (mt-st-1.1-man.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .man --fuzz=0 patching file mt.1 + f=README.stinit + iconv -f ISO8859-1 -t UTF-8 -o README.stinit.new README.stinit + touch -r README.stinit README.stinit.new + mv README.stinit.new README.stinit + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.MyLCN2 + umask 022 + cd /builddir/build/BUILD + cd mt-st-1.1 + make '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 ' 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 -o mt mt.c mt.c: In function 'main': mt.c:282:15: warning: variable 'cmd_code' set but not used [-Wunused-but-set-variable] int mtfd, cmd_code, i, argn, len, oflags; ^~~~~~~~ mt.c: In function 'do_show_options': mt.c:727:17: warning: implicit declaration of function 'minor'; did you mean 'mknod'? [-Wimplicit-function-declaration] tapeminor = minor(stat.st_rdev); ^~~~~ mknod /tmp/ccBSq97C.o: In function `do_status': /builddir/build/BUILD/mt-st-1.1/mt.c:643: undefined reference to `minor' collect2: error: ld returned 1 exit status make: *** [Makefile:13: mt] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.MyLCN2 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.MyLCN2 (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff