+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/hdparm.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.hPc0Af + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf hdparm-9.52 + /usr/bin/gzip -dc /builddir/build/SOURCES/hdparm-9.52.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd hdparm-9.52 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/hdparm-9.43-ditch_dead_code.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/hdparm-9.43-close_fd.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/hdparm-9.43-get_geom.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.prTxMH + umask 022 + cd /builddir/build/BUILD + cd hdparm-9.52 + 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 ' + /usr/bin/make -O -j4 STRIP=/bin/true LDFLAGS= /usr/bin/make -j4 hdparm make[1]: Entering directory '/builddir/build/BUILD/hdparm-9.52' make[1]: warning: -jN forced in submake: disabling jobserver mode. make[1]: Leaving directory '/builddir/build/BUILD/hdparm-9.52' make[1]: Entering directory '/builddir/build/BUILD/hdparm-9.52' cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -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 -c -o sysfs.o sysfs.c sysfs.c: In function 'sysfs_find_dev2': sysfs.c:106:12: warning: implicit declaration of function 'minor'; did you mean 'mknod'? [-Wimplicit-function-declaration] min = ~minor(dev); ^~~~~ mknod sysfs.c:106:12: warning: nested extern declaration of 'minor' [-Wnested-externs] sysfs.c:107:30: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] else if (maj != (unsigned)major(dev)) ^~~~~ sysfs.c:107:30: warning: nested extern declaration of 'major' [-Wnested-externs] make[1]: Leaving directory '/builddir/build/BUILD/hdparm-9.52' make[1]: Entering directory '/builddir/build/BUILD/hdparm-9.52' cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -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 -c -o sgio.o sgio.c make[1]: Leaving directory '/builddir/build/BUILD/hdparm-9.52' make[1]: Entering directory '/builddir/build/BUILD/hdparm-9.52' cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -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 -c -o geom.o geom.c geom.c: In function 'fd_is_raid': geom.c:74:10: warning: implicit declaration of function 'major'; did you mean 'md_major'? [-Wimplicit-function-declaration] return (major(st.st_rdev) == md_major()); ^~~~~ md_major geom.c:74:10: warning: nested extern declaration of 'major' [-Wnested-externs] geom.c:74:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] return (major(st.st_rdev) == md_major()); ^~ geom.c: In function 'find_dev_in_directory': geom.c:217:39: warning: implicit declaration of function 'minor'; did you mean 'mknod'? [-Wimplicit-function-declaration] unsigned int maj = major(dev), min = minor(dev); ^~~~~ mknod geom.c:217:39: warning: nested extern declaration of 'minor' [-Wnested-externs] make[1]: Leaving directory '/builddir/build/BUILD/hdparm-9.52' make[1]: Entering directory '/builddir/build/BUILD/hdparm-9.52' cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -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 -c -o fallocate.o fallocate.c make[1]: Leaving directory '/builddir/build/BUILD/hdparm-9.52' make[1]: Entering directory '/builddir/build/BUILD/hdparm-9.52' cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -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 -c -o fibmap.o fibmap.c make[1]: Leaving directory '/builddir/build/BUILD/hdparm-9.52' make[1]: Entering directory '/builddir/build/BUILD/hdparm-9.52' cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -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 -c -o identify.o identify.c identify.c:349:19: warning: 'unknown' defined but not used [-Wunused-const-variable=] static const char unknown[8] = "obsolete"; ^~~~~~~ make[1]: Leaving directory '/builddir/build/BUILD/hdparm-9.52' make[1]: Entering directory '/builddir/build/BUILD/hdparm-9.52' cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -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 -c -o fwdownload.o fwdownload.c make[1]: Leaving directory '/builddir/build/BUILD/hdparm-9.52' make[1]: Entering directory '/builddir/build/BUILD/hdparm-9.52' cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -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 -c -o dvdspeed.o dvdspeed.c make[1]: Leaving directory '/builddir/build/BUILD/hdparm-9.52' make[1]: Entering directory '/builddir/build/BUILD/hdparm-9.52' cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -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 -c -o wdidle3.o wdidle3.c make[1]: Leaving directory '/builddir/build/BUILD/hdparm-9.52' make[1]: Entering directory '/builddir/build/BUILD/hdparm-9.52' cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -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 -c -o apt.o apt.c make[1]: Leaving directory '/builddir/build/BUILD/hdparm-9.52' make[1]: Entering directory '/builddir/build/BUILD/hdparm-9.52' cc -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs -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 -c -o hdparm.o hdparm.c In file included from /usr/include/unistd.h:25:0, from hdparm.c:9: /usr/include/features.h:184:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" ^~~~~~~ hdparm.c: In function 'do_dco_setmax_cmd': hdparm.c:1234:19: warning: cast increases required alignment of target type [-Wcast-align] __u64 *maxlba = (__u64 *) &dco[3]; ^ make[1]: Leaving directory '/builddir/build/BUILD/hdparm-9.52' make[1]: Entering directory '/builddir/build/BUILD/hdparm-9.52' cc -o hdparm hdparm.o identify.o sgio.o sysfs.o geom.o fallocate.o fibmap.o fwdownload.o dvdspeed.o wdidle3.o apt.o sysfs.o: In function `sysfs_find_dev2': /builddir/build/BUILD/hdparm-9.52/sysfs.c:105: undefined reference to `minor' /builddir/build/BUILD/hdparm-9.52/sysfs.c:101: undefined reference to `minor' sysfs.o: In function `sprintf': /usr/include/bits/stdio2.h:36: undefined reference to `major' sysfs.o: In function `sysfs_find_fd': /builddir/build/BUILD/hdparm-9.52/sysfs.c:175: undefined reference to `major' /builddir/build/BUILD/hdparm-9.52/sysfs.c:175: undefined reference to `minor' geom.o: In function `md_major': /builddir/build/BUILD/hdparm-9.52/geom.c:62: undefined reference to `major' geom.o: In function `get_sector_count': /builddir/build/BUILD/hdparm-9.52/geom.c:96: undefined reference to `major' geom.o: In function `get_dev_geometry': /builddir/build/BUILD/hdparm-9.52/geom.c:151: undefined reference to `minor' geom.o: In function `get_dev_t_geometry': /builddir/build/BUILD/hdparm-9.52/geom.c:250: undefined reference to `major' /builddir/build/BUILD/hdparm-9.52/geom.c:250: undefined reference to `minor' geom.o: In function `sprintf': /usr/include/bits/stdio2.h:36: undefined reference to `major' geom.o: In function `find_dev_in_directory': /builddir/build/BUILD/hdparm-9.52/geom.c:226: undefined reference to `minor' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:31: hdparm] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/hdparm-9.52' make: *** [Makefile:28: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.prTxMH (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.prTxMH (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff