+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/ledmon.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.HebN1e + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ledmon-0.80 + /usr/bin/gzip -dc /builddir/build/SOURCES/ledmon-0.80.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd ledmon-0.80 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (ledmon_cflags.patch):' Patch #0 (ledmon_cflags.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cflags --fuzz=0 patching file src/Makefile + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.qIa0wt + umask 022 + cd /builddir/build/BUILD + cd ledmon-0.80 + 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 ' make -C src ledmon make[1]: Entering directory '/builddir/build/BUILD/ledmon-0.80/src' mkdir -p /builddir/build/BUILD/ledmon-0.80/src/_build cc -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_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE -I../config -M status.c sysfs.c ledmon.c block.c ledctl.c pci_slot.c raid.c cntrl.c dellssd.c utils.c smp.c list.c vmdssd.c enclosure.c scsi.c pidfile.c slave.c ahci.c | sed 's/^[a-z,0-9]/\/builddir\/build\/BUILD\/ledmon-0.80\/src\/_build\/&/' > /builddir/build/BUILD/ledmon-0.80/src/_build/.depend cc -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_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE -I../config -c ledmon.c -o /builddir/build/BUILD/ledmon-0.80/src/_build/ledmon.o In file included from ../config/config.h:23:0, from ledmon.c:20: /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" ^~~~~~~ ledmon.c: In function 'main': ledmon.c:815:2: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] dup(t); ^~~~~~ ledmon.c:816:2: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] dup(t); ^~~~~~ cc -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_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE -I../config -c pidfile.c -o /builddir/build/BUILD/ledmon-0.80/src/_build/pidfile.o In file included from ../config/config.h:23:0, from pidfile.c:20: /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" ^~~~~~~ cc -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_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE -I../config -c ahci.c -o /builddir/build/BUILD/ledmon-0.80/src/_build/ahci.o In file included from ../config/config.h:23:0, from ahci.c:20: /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" ^~~~~~~ cc -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_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE -I../config -c block.c -o /builddir/build/BUILD/ledmon-0.80/src/_build/block.o In file included from ../config/config.h:23:0, from block.c:20: /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" ^~~~~~~ cc -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_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE -I../config -c cntrl.c -o /builddir/build/BUILD/ledmon-0.80/src/_build/cntrl.o In file included from ../config/config.h:23:0, from cntrl.c:20: /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" ^~~~~~~ cc -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_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE -I../config -c enclosure.c -o /builddir/build/BUILD/ledmon-0.80/src/_build/enclosure.o In file included from ../config/config.h:23:0, from enclosure.c:20: /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" ^~~~~~~ cc -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_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE -I../config -c list.c -o /builddir/build/BUILD/ledmon-0.80/src/_build/list.o In file included from ../config/config.h:23:0, from list.c:20: /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" ^~~~~~~ cc -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_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE -I../config -c raid.c -o /builddir/build/BUILD/ledmon-0.80/src/_build/raid.o In file included from ../config/config.h:23:0, from raid.c:20: /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" ^~~~~~~ cc -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_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE -I../config -c scsi.c -o /builddir/build/BUILD/ledmon-0.80/src/_build/scsi.o In file included from ../config/config.h:23:0, from scsi.c:20: /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" ^~~~~~~ cc -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_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE -I../config -c slave.c -o /builddir/build/BUILD/ledmon-0.80/src/_build/slave.o In file included from ../config/config.h:23:0, from slave.c:20: /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" ^~~~~~~ cc -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_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE -I../config -c status.c -o /builddir/build/BUILD/ledmon-0.80/src/_build/status.o In file included from ../config/config.h:23:0, from status.c:20: /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" ^~~~~~~ cc -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_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE -I../config -c sysfs.c -o /builddir/build/BUILD/ledmon-0.80/src/_build/sysfs.o In file included from ../config/config.h:23:0, from sysfs.c:20: /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" ^~~~~~~ cc -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_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE -I../config -c smp.c -o /builddir/build/BUILD/ledmon-0.80/src/_build/smp.o In file included from ../config/config.h:23:0, from smp.c:20: /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" ^~~~~~~ smp.c: In function '_open_smp_device': smp.c:302:46: warning: implicit declaration of function 'makedev' [-Wimplicit-function-declaration] if (mknod(buf, S_IFCHR | S_IRUSR | S_IWUSR, makedev(dmaj, dmin)) < 0) ^~~~~~~ smp.c:291:6: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] if (fgets(buf, sizeof(buf), df) < 0) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -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_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE -I../config -c dellssd.c -o /builddir/build/BUILD/ledmon-0.80/src/_build/dellssd.o In file included from ../config/config.h:23:0, from dellssd.c:20: /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" ^~~~~~~ cc -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_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE -I../config -c utils.c -o /builddir/build/BUILD/ledmon-0.80/src/_build/utils.o In file included from ../config/config.h:23:0, from utils.c:20: /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" ^~~~~~~ cc -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_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE -I../config -c pci_slot.c -o /builddir/build/BUILD/ledmon-0.80/src/_build/pci_slot.o In file included from ../config/config.h:23:0, from pci_slot.c:20: /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" ^~~~~~~ cc -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_DEBUG -D_GNU_SOURCE -D_BSD_SOURCE -DDMALLOC_DISABLE -I../config -c vmdssd.c -o /builddir/build/BUILD/ledmon-0.80/src/_build/vmdssd.o In file included from ../config/config.h:23:0, from vmdssd.c:18: /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" ^~~~~~~ vmdssd.c: In function 'vmdssd_write': vmdssd.c:115:3: warning: ignoring return value of 'realpath', declared with attribute warn_unused_result [-Wunused-result] realpath(module_path, real_module_path); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -lsgutils2 /builddir/build/BUILD/ledmon-0.80/src/_build/ledmon.o /builddir/build/BUILD/ledmon-0.80/src/_build/pidfile.o /builddir/build/BUILD/ledmon-0.80/src/_build/ahci.o /builddir/build/BUILD/ledmon-0.80/src/_build/block.o /builddir/build/BUILD/ledmon-0.80/src/_build/cntrl.o /builddir/build/BUILD/ledmon-0.80/src/_build/enclosure.o /builddir/build/BUILD/ledmon-0.80/src/_build/list.o /builddir/build/BUILD/ledmon-0.80/src/_build/raid.o /builddir/build/BUILD/ledmon-0.80/src/_build/scsi.o /builddir/build/BUILD/ledmon-0.80/src/_build/slave.o /builddir/build/BUILD/ledmon-0.80/src/_build/status.o /builddir/build/BUILD/ledmon-0.80/src/_build/sysfs.o /builddir/build/BUILD/ledmon-0.80/src/_build/smp.o /builddir/build/BUILD/ledmon-0.80/src/_build/dellssd.o /builddir/build/BUILD/ledmon-0.80/src/_build/utils.o /builddir/build/BUILD/ledmon-0.80/src/_build/pci_slot.o /builddir/build/BUILD/ledmon-0.80/src/_build/vmdssd.o -o ledmon /builddir/build/BUILD/ledmon-0.80/src/_build/smp.o: In function `snprintf': /usr/include/bits/stdio2.h:67: undefined reference to `makedev' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:72: ledmon] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/ledmon-0.80/src' make: *** [Makefile:27: ledmon] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.qIa0wt (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.qIa0wt (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff