+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/rubygem-pam.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.TFWI1c + umask 022 + cd /builddir/build/BUILD + gem unpack /builddir/build/SOURCES/pam-1.5.4.gem Unpacked gem: '/builddir/build/BUILD/pam-1.5.4' + cd /builddir/build/BUILD + cd pam-1.5.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + gem spec /builddir/build/SOURCES/pam-1.5.4.gem -l --ruby + sed -i ext/extconf.rb -e '\@CFLAGS.*=@d' -e '\@LDFLAGS.*=@d' + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.p7pOLD + umask 022 + cd /builddir/build/BUILD + cd pam-1.5.4 + gem build pam.gemspec WARNING: licenses is empty, but is recommended. Use a license identifier from http://spdx.org/licenses or 'Nonstandard' for a nonstandard license. WARNING: deprecated autorequire specified WARNING: See http://guides.rubygems.org/specification-reference/ for help Successfully built RubyGem Name: pam Version: 1.5.4 File: pam-1.5.4.gem + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--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 '\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc pam-1.5.4.gem WARNING: You build with buildroot. Build root: /builddir/build/BUILD/pam-1.5.4 Bin dir: /builddir/build/BUILD/pam-1.5.4/usr/bin Gem home: /builddir/build/BUILD/pam-1.5.4/usr/share/gems /builddir/build/BUILD/pam-1.5.4/usr/share/gems/gems/pam-1.5.4/COPYING /builddir/build/BUILD/pam-1.5.4/usr/share/gems/gems/pam-1.5.4/ChangeLog /builddir/build/BUILD/pam-1.5.4/usr/share/gems/gems/pam-1.5.4/LICENSE /builddir/build/BUILD/pam-1.5.4/usr/share/gems/gems/pam-1.5.4/MANIFEST /builddir/build/BUILD/pam-1.5.4/usr/share/gems/gems/pam-1.5.4/README /builddir/build/BUILD/pam-1.5.4/usr/share/gems/gems/pam-1.5.4/Rakefile /builddir/build/BUILD/pam-1.5.4/usr/share/gems/gems/pam-1.5.4/ext/_pam.c /builddir/build/BUILD/pam-1.5.4/usr/share/gems/gems/pam-1.5.4/ext/_pam.h /builddir/build/BUILD/pam-1.5.4/usr/share/gems/gems/pam-1.5.4/ext/extconf.rb /builddir/build/BUILD/pam-1.5.4/usr/share/gems/gems/pam-1.5.4/ext/pam_handle.c /builddir/build/BUILD/pam-1.5.4/usr/share/gems/gems/pam-1.5.4/lib/pam.rb /builddir/build/BUILD/pam-1.5.4/usr/share/gems/gems/pam-1.5.4/test/check_conv.rb /builddir/build/BUILD/pam-1.5.4/usr/share/gems/gems/pam-1.5.4/test/check_get_item.rb /builddir/build/BUILD/pam-1.5.4/usr/share/gems/gems/pam-1.5.4/test/check_user.rb Building native extensions. This could take a while... current directory: /builddir/build/BUILD/pam-1.5.4/usr/share/gems/gems/pam-1.5.4/ext /usr/bin/ruby -r ./siteconf20180325-297-itp76g.rb extconf.rb checking for security/pam_appl.h... yes checking for security/pam_modules.h... yes checking for pam_start() in -lpam... yes checking for pam_end()... yes checking for pam_open_session()... yes checking for pam_close_session()... yes checking for pam_authenticate()... yes checking for pam_acct_mgmt()... yes checking for pam_setcred()... yes checking for pam_chauthtok()... yes checking for pam_putenv()... yes checking for pam_getenv()... yes creating Makefile current directory: /builddir/build/BUILD/pam-1.5.4/usr/share/gems/gems/pam-1.5.4/ext make "DESTDIR=" clean rm -f rm -f _pam.so *.o *.bak mkmf.log .*.time current directory: /builddir/build/BUILD/pam-1.5.4/usr/share/gems/gems/pam-1.5.4/ext make "DESTDIR=" gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_SECURITY_PAM_APPL_H -DHAVE_SECURITY_PAM_MODULES_H -DHAVE_PAM_END -DHAVE_PAM_OPEN_SESSION -DHAVE_PAM_CLOSE_SESSION -DHAVE_PAM_AUTHENTICATE -DHAVE_PAM_ACCT_MGMT -DHAVE_PAM_SETCRED -DHAVE_PAM_CHAUTHTOK -DHAVE_PAM_PUTENV -DHAVE_PAM_GETENV -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 -o _pam.o -c _pam.c _pam.c: In function 'rb_pam_define_err': _pam.c:32:1: warning: no return statement in function returning non-void [-Wreturn-type] }; ^ _pam.c: In function 'Init__pam': _pam.c:122:10: warning: type defaults to 'int' in declaration of 'Init_pam_handle' [-Wimplicit-int] extern Init_pam_handle(); ^~~~~~~~~~~~~~~ gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DHAVE_SECURITY_PAM_APPL_H -DHAVE_SECURITY_PAM_MODULES_H -DHAVE_PAM_END -DHAVE_PAM_OPEN_SESSION -DHAVE_PAM_CLOSE_SESSION -DHAVE_PAM_AUTHENTICATE -DHAVE_PAM_ACCT_MGMT -DHAVE_PAM_SETCRED -DHAVE_PAM_CHAUTHTOK -DHAVE_PAM_PUTENV -DHAVE_PAM_GETENV -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 -o pam_handle.o -c pam_handle.c pam_handle.c: In function 'rb_pam_inner_conv': pam_handle.c:61:50: warning: implicit declaration of function 'STR2CSTR' [-Wimplicit-function-declaration] reply[i].resp = ((r_resp != Qnil) ? strdup(STR2CSTR(r_resp)) : NULL); ^~~~~~~~ pam_handle.c:61:50: warning: passing argument 1 of 'strdup' makes pointer from integer without a cast [-Wint-conversion] In file included from /usr/include/ruby/defines.h:131:0, from /usr/include/ruby/ruby.h:29, from /usr/include/ruby.h:33, from _pam.h:8, from pam_handle.c:5: /usr/include/string.h:166:14: note: expected 'const char *' but argument is of type 'int' extern char *strdup (const char *__s) ^~~~~~ pam_handle.c: In function 'rb_pam_handle_initialize': pam_handle.c:151:15: warning: assignment makes pointer from integer without a cast [-Wint-conversion] c_service = STR2CSTR(service); ^ pam_handle.c:152:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion] c_user = STR2CSTR(user); ^ pam_handle.c:156:15: warning: assignment makes pointer from integer without a cast [-Wint-conversion] c_service = STR2CSTR(service); ^ pam_handle.c:157:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion] c_user = STR2CSTR(user); ^ pam_handle.c: In function 'rb_pam_handle_end': pam_handle.c:204:9: warning: unused variable 'retval' [-Wunused-variable] VALUE retval; ^~~~~~ pam_handle.c:203:7: warning: unused variable 'c_retval' [-Wunused-variable] int c_retval; ^~~~~~~~ pam_handle.c: In function 'rb_pam_handle_conv': pam_handle.c:254:36: warning: passing argument 2 of 'strcpy' makes pointer from integer without a cast [-Wint-conversion] strcpy((char*)(msg[i]->msg), STR2CSTR(m_msg)); ^~~~~~~~ In file included from /usr/include/features.h:428:0, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/include/ruby/defines.h:112, from /usr/include/ruby/ruby.h:29, from /usr/include/ruby.h:33, from _pam.h:8, from pam_handle.c:5: /usr/include/bits/string_fortified.h:88:1: note: expected 'const char * restrict' but argument is of type 'int' __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ pam_handle.c: In function 'rb_pam_handle_set_item': pam_handle.c:549:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] c_item = (void*)STR2CSTR(item); ^ In file included from /usr/include/ruby.h:33:0, from _pam.h:8, from pam_handle.c:5: pam_handle.c: In function 'rb_pam_handle_putenv': pam_handle.c:630:38: warning: passing argument 2 of 'pam_putenv' makes pointer from integer without a cast [-Wint-conversion] return INT2NUM(pam_putenv(pam->ptr,STR2CSTR(val))); ^ In file included from /usr/include/security/pam_appl.h:18:0, from _pam.h:10, from pam_handle.c:5: /usr/include/security/_pam_types.h:181:1: note: expected 'const char *' but argument is of type 'int' pam_putenv(pam_handle_t *pamh, const char *name_value); ^~~~~~~~~~ pam_handle.c: In function 'rb_pam_handle_getenv': pam_handle.c:645:38: warning: passing argument 2 of 'pam_getenv' makes pointer from integer without a cast [-Wint-conversion] return( (str = pam_getenv(pam->ptr,STR2CSTR(val))) ? rb_str_new2(str) : Qnil); ^~~~~~~~ In file included from /usr/include/security/pam_appl.h:18:0, from _pam.h:10, from pam_handle.c:5: /usr/include/security/_pam_types.h:184:1: note: expected 'const char *' but argument is of type 'int' pam_getenv(pam_handle_t *pamh, const char *name); ^~~~~~~~~~ rm -f _pam.so gcc -shared -o _pam.so _pam.o pam_handle.o -L. -L/usr/lib64 -L. -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -lruby -lpam -lpthread -ldl -lcrypt -lm -lc current directory: /builddir/build/BUILD/pam-1.5.4/usr/share/gems/gems/pam-1.5.4/ext make "DESTDIR=" install /usr/bin/mkdir -p . ./.gem.20180325-297-1tkxez6 exit > .sitearchdir.time /usr/bin/install -c -m 0755 _pam.so ./.gem.20180325-297-1tkxez6 Successfully installed pam-1.5.4 Parsing documentation for pam-1.5.4 Parsing sources... 11% [ 1/ 9] ext/Makefile 22% [ 2/ 9] ext/_pam.c 33% [ 3/ 9] ext/_pam.h 44% [ 4/ 9] ext/_pam.o 55% [ 5/ 9] ext/_pam.so 66% [ 6/ 9] ext/extconf.rb 77% [ 7/ 9] ext/pam_handle.c 88% [ 8/ 9] ext/pam_handle.o 100% [ 9/ 9] lib/pam.rb Installing ri documentation for pam-1.5.4 Installing darkfish documentation for pam-1.5.4 Done installing documentation for pam after 13 seconds 1 gem installed + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.wkOb4Q + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-pam-1.5.4-29.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-pam-1.5.4-29.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/rubygem-pam-1.5.4-29.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-pam-1.5.4-29.fc28.riscv64 + cd pam-1.5.4 + rm -rf /builddir/build/BUILDROOT/rubygem-pam-1.5.4-29.fc28.riscv64 + install -d -m0755 /builddir/build/BUILDROOT/rubygem-pam-1.5.4-29.fc28.riscv64/usr/share/gems + install -d -m0755 /builddir/build/BUILDROOT/rubygem-pam-1.5.4-29.fc28.riscv64/usr/local/share/ruby/site_ruby + install -d -m0755 /builddir/build/BUILDROOT/rubygem-pam-1.5.4-29.fc28.riscv64/usr/local/lib64/ruby/site_ruby + mkdir -p /builddir/build/BUILDROOT/rubygem-pam-1.5.4-29.fc28.riscv64/usr/share/gems + cp -a .//usr/share/gems/build_info .//usr/share/gems/cache .//usr/share/gems/doc .//usr/share/gems/extensions .//usr/share/gems/gems .//usr/share/gems/specifications /builddir/build/BUILDROOT/rubygem-pam-1.5.4-29.fc28.riscv64/usr/share/gems/ + mkdir -p /builddir/build/BUILDROOT/rubygem-pam-1.5.4-29.fc28.riscv64/usr/lib64/gems/ruby/pam-1.5.4 + cp -a .//usr/lib64/gems/ruby/pam-1.5.4/_pam.so .//usr/lib64/gems/ruby/pam-1.5.4/gem.build_complete /builddir/build/BUILDROOT/rubygem-pam-1.5.4-29.fc28.riscv64/usr/lib64/gems/ruby/pam-1.5.4 + rm -rf /builddir/build/BUILDROOT/rubygem-pam-1.5.4-29.fc28.riscv64/usr/share/gems/gems/pam-1.5.4/ext + rm -rf /builddir/build/BUILDROOT/rubygem-pam-1.5.4-29.fc28.riscv64/usr/share/gems/extensions + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: rubygem-pam-1.5.4-29.fc28.riscv64 Provides: rubygem(pam) = 1.5.4 rubygem(pam) = 1.5.4-1 rubygem-pam = 1.5.4-29.fc28 rubygem-pam(riscv-64) = 1.5.4-29.fc28 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libcrypt.so.1()(64bit) libdl.so.2()(64bit) libm.so.6()(64bit) libpam.so.0()(64bit) libpam.so.0(LIBPAM_1.0)(64bit) libpthread.so.0()(64bit) libruby.so.2.5()(64bit) rtld(GNU_HASH) ruby(rubygems) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rubygem-pam-1.5.4-29.fc28.riscv64 Wrote: /builddir/build/SRPMS/rubygem-pam-1.5.4-29.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/rubygem-pam-1.5.4-29.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.CXYLfR + umask 022 + cd /builddir/build/BUILD + cd pam-1.5.4 + rm -rf /builddir/build/BUILDROOT/rubygem-pam-1.5.4-29.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync ++ sleep 5 Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff