+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/ElectricFence.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.M6Bqpz + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ElectricFence-2.2.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/ElectricFence-2.2.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd ElectricFence-2.2.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (ElectricFence-2.0.5-longjmp.patch):' Patch #1 (ElectricFence-2.0.5-longjmp.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .longjmp --fuzz=0 patching file eftest.c + echo 'Patch #2 (ElectricFence-2.1-vaarg.patch):' Patch #2 (ElectricFence-2.1-vaarg.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .vaarg --fuzz=0 patching file print.c Hunk #1 succeeded at 111 (offset 12 lines). + echo 'Patch #3 (ElectricFence-2.2.2-pthread.patch):' Patch #3 (ElectricFence-2.2.2-pthread.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .pthread --fuzz=0 patching file efence.c patching file Makefile + echo 'Patch #4 (ElectricFence-2.2.2-madvise.patch):' Patch #4 (ElectricFence-2.2.2-madvise.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .madvise --fuzz=0 patching file page.c patching file efence.c Hunk #1 succeeded at 650 (offset 24 lines). Hunk #2 succeeded at 664 (offset 24 lines). Hunk #3 succeeded at 795 (offset 24 lines). + echo 'Patch #5 (ElectricFence-mmap-size.patch):' Patch #5 (ElectricFence-mmap-size.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file page.c + echo 'Patch #6 (ElectricFence-2.2.2-banner.patch):' Patch #6 (ElectricFence-2.2.2-banner.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file efence.c + echo 'Patch #7 (ElectricFence-2.2.2-ef.patch):' Patch #7 (ElectricFence-2.2.2-ef.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file ef.sh + echo 'Patch #8 (ElectricFence-2.2.2-builtins.patch):' Patch #8 (ElectricFence-2.2.2-builtins.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile + echo 'Patch #9 (ElectricFence-2.2.2-sse.patch):' Patch #9 (ElectricFence-2.2.2-sse.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file efence.c + echo 'Patch #10 (ElectricFence-2.2.2-posix_memalign.patch):' Patch #10 (ElectricFence-2.2.2-posix_memalign.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file efence.c + echo 'Patch #11 (ElectricFence-2.2.2-malloc_usable_size.patch):' Patch #11 (ElectricFence-2.2.2-malloc_usable_size.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file efence.c + echo 'Patch #12 (ElectricFence-2.2.2-man-ef.patch):' Patch #12 (ElectricFence-2.2.2-man-ef.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file ef.1 patching file Makefile + echo 'Patch #13 (ElectricFence-2.2.2-sys_errlist.patch):' Patch #13 (ElectricFence-2.2.2-sys_errlist.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file page.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.4NbUne + umask 022 + cd /builddir/build/BUILD + cd ElectricFence-2.2.2 + make 'CFLAGS=${RPM_OPT_FLAGS} -DUSE_SEMAPHORE -fpic' 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 -DUSE_SEMAPHORE -fpic -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-valloc -fno-builtin-realloc -fno-builtin-free -c efence.c -o efence.o 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 -DUSE_SEMAPHORE -fpic -c page.c -o page.o 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 -DUSE_SEMAPHORE -fpic -c print.c -o print.o print.c: In function 'EF_Printv': print.c:73:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] (void) write(2, &c, 1); ^~~~~~~~~~~~~~~~~~~~~~ print.c:94:6: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] (void) write(2, string, length); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print.c:103:7: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(2, &c, 1); ^~~~~~~~~~~~~~~ print.c:116:6: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] (void) write(2, &c, 1); ^~~~~~~~~~~~~~~~~~~~~~ print.c:127:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] (void) write(2, &c, 1); ^~~~~~~~~~~~~~~~~~~~~~ print.c: In function 'printNumber': print.c:57:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(2, s, size); ^~~~~~~~~~~~~~~~~ rm -f libefence.a ar crv libefence.a efence.o page.o print.o a - efence.o a - page.o a - print.o gcc -shared -Wl,-soname,libefence.so.0 -o libefence.so.0.0 \ -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 -DUSE_SEMAPHORE -fpic efence.o page.o print.o page.o: In function `stringErrorReport': /builddir/build/BUILD/ElectricFence-2.2.2/page.c:47: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead /builddir/build/BUILD/ElectricFence-2.2.2/page.c:46: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead 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 -DUSE_SEMAPHORE -fpic -c tstheap.c -o tstheap.o rm -f tstheap 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 -DUSE_SEMAPHORE -fpic tstheap.o libefence.a -o tstheap libefence.a(page.o): In function `stringErrorReport': /builddir/build/BUILD/ElectricFence-2.2.2/page.c:47: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead /builddir/build/BUILD/ElectricFence-2.2.2/page.c:46: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead 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 -DUSE_SEMAPHORE -fpic -c eftest.c -o eftest.o eftest.c: In function 'main': eftest.c:211:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(2, failedTest, sizeof(failedTest) - 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ eftest.c:212:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(2, diag->explanation, strlen(diag->explanation)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ eftest.c:213:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(2, &newline, 1); ^~~~~~~~~~~~~~~~~~~~~ rm -f eftest 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 -DUSE_SEMAPHORE -fpic eftest.o libefence.a -o eftest libefence.a(page.o): In function `stringErrorReport': /builddir/build/BUILD/ElectricFence-2.2.2/page.c:47: warning: `sys_errlist' is deprecated; use `strerror' or `strerror_r' instead /builddir/build/BUILD/ElectricFence-2.2.2/page.c:46: warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead Testing Electric Fence. After the last test, it should print that the test has PASSED. ./eftest Electric Fence 2.2.2 Copyright (C) 1987-1999 Bruce Perens make: *** [Makefile:26: all] Segmentation fault error: Bad exit status from /var/tmp/rpm-tmp.4NbUne (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.4NbUne (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff