+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/ruby-shadow.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.QPtuAi + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf shadow-1.4.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/ruby-shadow-1.4.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd shadow-1.4.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (0001-Add-ruby-1.9-support.patch):' Patch #0 (0001-Add-ruby-1.9-support.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file HISTORY patching file depend patching file extconf.rb patching file shadow.c + echo 'Patch #1 (ruby-shadow-1.4.1-cflags.patch):' Patch #1 (ruby-shadow-1.4.1-cflags.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file extconf.rb + echo 'Patch #2 (ruby-shadow-2.2.0-Add-support-for-ruby-2.0.patch):' Patch #2 (ruby-shadow-2.2.0-Add-support-for-ruby-2.0.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file extconf.rb + /usr/bin/iconv -f EUCJP -t utf8 -o README.ja README.euc + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.dKAP5n + umask 022 + cd /builddir/build/BUILD + cd shadow-1.4.1 + ruby extconf.rb '--with-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 ' checking for getspent() in -lshadow... no checking for getspent()... yes checking for fgetspent()... yes checking for setspent()... yes checking for endspent()... yes checking for lckpwdf()... yes checking for ulckpwdf()... yes checking for sgetspent()... yes creating Makefile + make gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_GETSPENT -DHAVE_FGETSPENT -DHAVE_SETSPENT -DHAVE_ENDSPENT -DHAVE_LCKPWDF -DHAVE_ULCKPWDF -DHAVE_SGETSPENT -fPIC -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 -DRUBY19 -o shadow.o -c shadow.c shadow.c: In function 'rb_shadow_putspent': shadow.c:172:5: warning: 'rb_struct_ptr' is deprecated [-Wdeprecated-declarations] val[i] = RSTRUCT_PTR( entry )[i]; //val[i] = RSTRUCT(entry)->ptr[i]; ^~~ In file included from /usr/include/ruby/ruby.h:24:0, from /usr/include/ruby.h:33, from shadow.c:12: /usr/include/ruby/backward.h:47:1: note: declared here DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_struct_ptr); ^ In file included from /usr/include/ruby.h:33:0, from shadow.c:12: shadow.c:172:14: error: too many arguments to function 'rb_struct_ptr' val[i] = RSTRUCT_PTR( entry )[i]; //val[i] = RSTRUCT(entry)->ptr[i]; ^ In file included from /usr/include/ruby/ruby.h:24:0, from /usr/include/ruby.h:33, from shadow.c:12: /usr/include/ruby/backward.h:47:1: note: declared here DECLARE_DEPRECATED_INTERNAL_FEATURE(rb_struct_ptr); ^ shadow.c:172:34: error: subscripted value is neither array nor pointer nor vector val[i] = RSTRUCT_PTR( entry )[i]; //val[i] = RSTRUCT(entry)->ptr[i]; ^ shadow.c: In function 'rb_shadow_lock': shadow.c:212:7: warning: implicit declaration of function 'rb_iterator_p'; did you mean 'rb_iterate'? [-Wimplicit-function-declaration] if( rb_iterator_p() ){ ^~~~~~~~~~~~~ rb_iterate make: *** [Makefile:243: shadow.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.dKAP5n (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.dKAP5n (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff