+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/perl-Net-SSH2.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.xT8bws + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Net-SSH2-0.68 + /usr/bin/gzip -dc /builddir/build/SOURCES/Net-SSH2-0.68.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd Net-SSH2-0.68 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -r inc + sed -i -e '/^inc\// d' MANIFEST + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.t9MhDG + umask 022 + cd /builddir/build/BUILD + cd Net-SSH2-0.68 + perl Makefile.PL INSTALLDIRS=vendor 'OPTIMIZE=-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 ' include /builddir/build/BUILD/Net-SSH2-0.68/inc/Module/Install.pm The libssh2 library is required by this module. If you don't have it, you can download it from http://www.libssh2.org; you may also need OpenSSL, which can be obtained from http://www.openssl.org , or libgcrypt, which can be obtained from http://www.gnupg.org . Debian: sudo aptitude install libssh2-1-dev OpenSUSE: sudo zypper in libssh2-1 libssh2-devel You can pass your libssh2 lib and include dirs (and extra link args) on the command line. E.g.: perl Makefile.PL lib=$HOME/libssh2/lib inc=$HOME/libssh2/include \ ldargs="-lz" These can also be set through the LIBSSH2_LIB/LIBSSH2_INCLUDE/LIBSSH2_LDARGS environment variables. To build with libgcrypt instead of OpenSSL, pass 'gcrypt' as a parameter to Makefile.PL, e.g.: perl Makefile.PL gcrypt If you want to build on Windows, see the file BUILDING.WIN32 in the distribution. include inc/Module/Install/Metadata.pm include inc/Module/Install/Base.pm include inc/Module/Install/Makefile.pm Looking for libraries... include inc/Module/Install/CheckLib.pm Extra directories created under inc/ Copied Devel::CheckLib to inc/ directory Analyzing file assertlibp4BdNWcb Library ssh2 found in standard place Detected crypto backend: openssl Library z found in standard place Library ssl found in standard place Library crypto found in standard place include inc/Module/Install/WriteAll.pm include inc/Module/Install/Win32.pm include inc/Module/Install/Can.pm include inc/Module/Install/Fetch.pm Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Net::SSH2 Writing MYMETA.yml and MYMETA.json Writing META.yml + make -j4 Running Mkbootstrap for SSH2 () "/usr/bin/perl" "-Iinc" "/usr/share/perl5/vendor_perl/ExtUtils/xsubpp" -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap '/builddir/build/BUILD/Net-SSH2-0.68/typemap' SSH2.xs > SSH2.xsc chmod 644 "SSH2.bs" "/usr/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' -- SSH2.bs blib/arch/auto/Net/SSH2/SSH2.bs 644 cp lib/Net/SSH2/KnownHosts.pm blib/lib/Net/SSH2/KnownHosts.pm cp lib/Net/SSH2.pm blib/lib/Net/SSH2.pm cp lib/Net/SSH2/Listener.pm blib/lib/Net/SSH2/Listener.pm cp lib/Net/SSH2/Constants.pm blib/lib/Net/SSH2/Constants.pm cp lib/Net/SSH2/Channel.pm blib/lib/Net/SSH2/Channel.pm cp lib/Net/SSH2/SFTP.pm blib/lib/Net/SSH2/SFTP.pm cp lib/Net/SSH2/PublicKey.pm blib/lib/Net/SSH2/PublicKey.pm cp lib/Net/SSH2/Dir.pm blib/lib/Net/SSH2/Dir.pm cp lib/Net/SSH2/File.pm blib/lib/Net/SSH2/File.pm mv SSH2.xsc SSH2.c gcc -c -D_REENTRANT -D_GNU_SOURCE -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 -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_GCC_PEDANTIC -std=c99 -pedantic-errors -Wno-long-long -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 -DVERSION=\"0.68\" -DXS_VERSION=\"0.68\" -fPIC "-I/usr/lib64/perl5/CORE" SSH2.c SSH2.xs: In function 'sv2iv_constant_or_croak': SSH2.xs:352:19: warning: unused variable 'i' [-Wunused-variable] int type, i; ^ In file included from /usr/lib64/perl5/CORE/perl.h:5589:0, from SSH2.xs:8: SSH2.xs: In function 'cb_kbdint_response_callback': /usr/lib64/perl5/CORE/pp.h:145:16: warning: value computed is not used [-Wunused-value] #define POPs (*sp--) ~^~~~~~ SSH2.xs:524:13: note: in expansion of macro 'POPs' POPs; ^~~~ SSH2.xs: In function 'cb_ignore_callback': SSH2.xs:573:14: warning: variable 'ax' set but not used [-Wunused-but-set-variable] dSP; I32 ax; int count; ^~ SSH2.xs: In function 'cb_debug_callback': SSH2.xs:589:14: warning: variable 'ax' set but not used [-Wunused-but-set-variable] dSP; I32 ax; int count; ^~ SSH2.xs: In function 'cb_disconnect_callback': SSH2.xs:607:14: warning: variable 'ax' set but not used [-Wunused-but-set-variable] dSP; I32 ax; int count; ^~ SSH2.xs: In function 'cb_x11_open_callback': SSH2.xs:646:14: warning: variable 'ax' set but not used [-Wunused-but-set-variable] dSP; I32 ax; int count; ^~ In file included from SSH2.xs:8:0: SSH2.xs: In function 'openssl_threadid_func': /usr/lib64/perl5/CORE/perl.h:6443:12: warning: unused variable 'my_cxtp' [-Wunused-variable] my_cxt_t *my_cxtp = (my_cxt_t *)PL_my_cxt_list[MY_CXT_INDEX] ^ SSH2.xs:749:5: note: in expansion of macro 'dMY_CXT' dMY_CXT; ^~~~~~~ In file included from SSH2.xs:9:0: SSH2.c: In function 'XS_Net__SSH2_CLONE': /usr/lib64/perl5/CORE/XSUB.h:160:20: warning: unused variable 'items' [-Wunused-variable] #define dITEMS I32 items = (I32)(SP - MARK) ^ /usr/lib64/perl5/CORE/XSUB.h:163:16: note: in expansion of macro 'dITEMS' dSP; dAXMARK; dITEMS ^~~~~~ SSH2.c:1121:11: note: in expansion of macro 'dXSARGS' dVAR; dXSARGS; ^~~~~~~ SSH2.c: In function 'XS_Net__SSH2__new': SSH2.c:1165:6: warning: unused variable 'proto' [-Wunused-variable] SV* proto = ST(0) ^~~~~ SSH2.c: In function 'XS_Net__SSH2_auth_password': SSH2.xs:1204:12: warning: unused variable 'ok' [-Wunused-variable] int i, ok; ^~ SSH2.xs:1204:9: warning: unused variable 'i' [-Wunused-variable] int i, ok; ^ SSH2.c: In function 'XS_Net__SSH2__poll': SSH2.c:2852:11: warning: unused variable 'ss' [-Wunused-variable] SSH2* ss = INT2PTR(SSH2 *, unwrap(ST(0), "Net::SSH2", "net_ss__poll")) ^~ SSH2.c: In function 'XS_Net__SSH2__Channel__setenv': SSH2.xs:1650:12: warning: unused variable 'success' [-Wunused-variable] int i, success = 0; ^~~~~~~ SSH2.xs:1650:9: warning: unused variable 'i' [-Wunused-variable] int i, success = 0; ^ SSH2.xs: In function 'XS_Net__SSH2__SFTP_open': SSH2.c:4088:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses] l_flags == 0 && posix == 0 && flags == posix /* 0-valued flag */) { \ SSH2.xs:2120:5: note: in expansion of macro 'XLATFLAG' XLATFLAG(O_RDWR, LIBSSH2_FXF_READ | LIBSSH2_FXF_WRITE); ^~~~~~~~ SSH2.c:4088:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses] l_flags == 0 && posix == 0 && flags == posix /* 0-valued flag */) { \ SSH2.xs:2121:5: note: in expansion of macro 'XLATFLAG' XLATFLAG(O_RDONLY, LIBSSH2_FXF_READ); ^~~~~~~~ SSH2.c:4088:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses] l_flags == 0 && posix == 0 && flags == posix /* 0-valued flag */) { \ SSH2.xs:2122:5: note: in expansion of macro 'XLATFLAG' XLATFLAG(O_WRONLY, LIBSSH2_FXF_WRITE); ^~~~~~~~ SSH2.c:4088:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses] l_flags == 0 && posix == 0 && flags == posix /* 0-valued flag */) { \ SSH2.xs:2123:5: note: in expansion of macro 'XLATFLAG' XLATFLAG(O_APPEND, LIBSSH2_FXF_APPEND); ^~~~~~~~ SSH2.c:4088:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses] l_flags == 0 && posix == 0 && flags == posix /* 0-valued flag */) { \ SSH2.xs:2124:5: note: in expansion of macro 'XLATFLAG' XLATFLAG(O_CREAT, LIBSSH2_FXF_CREAT); ^~~~~~~~ SSH2.c:4088:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses] l_flags == 0 && posix == 0 && flags == posix /* 0-valued flag */) { \ SSH2.xs:2125:5: note: in expansion of macro 'XLATFLAG' XLATFLAG(O_TRUNC, LIBSSH2_FXF_TRUNC); ^~~~~~~~ SSH2.c:4088:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses] l_flags == 0 && posix == 0 && flags == posix /* 0-valued flag */) { \ SSH2.xs:2126:5: note: in expansion of macro 'XLATFLAG' XLATFLAG(O_EXCL, LIBSSH2_FXF_EXCL); ^~~~~~~~ SSH2.c: In function 'XS_Net__SSH2__KnownHosts_writeline': SSH2.xs:2680:12: warning: unused variable 'buffer_len' [-Wunused-variable] STRLEN buffer_len; ^~~~~~~~~~ At top level: SSH2.xs:831:1: warning: 'croak_last_error' defined but not used [-Wunused-function] croak_last_error(SSH2 *ss, const char *class, const char *method) { ^~~~~~~~~~~~~~~~ SSH2.xs:777:13: warning: 'openssl_dynlocking_destroy_function' defined but not used [-Wunused-function] static void openssl_dynlocking_destroy_function(struct CRYPTO_dynlock_value *l, const char *file, int line) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SSH2.xs:768:13: warning: 'openssl_dynlocking_lock_function' defined but not used [-Wunused-function] static void openssl_dynlocking_lock_function(int mode, struct CRYPTO_dynlock_value *l, const char *file, int line) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SSH2.xs:759:37: warning: 'openssl_dynlocking_create_function' defined but not used [-Wunused-function] static struct CRYPTO_dynlock_value *openssl_dynlocking_create_function(const char *file, int line) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SSH2.xs:747:13: warning: 'openssl_threadid_func' defined but not used [-Wunused-function] static void openssl_threadid_func(CRYPTO_THREADID *id) ^~~~~~~~~~~~~~~~~~~~~ SSH2.xs:731:13: warning: 'openssl_locking_function' defined but not used [-Wunused-function] static void openssl_locking_function(int mode, int type, const char *file, int line) ^~~~~~~~~~~~~~~~~~~~~~~~ rm -f blib/arch/auto/Net/SSH2/SSH2.so gcc -lpthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/local/lib -fstack-protector-strong SSH2.o -o blib/arch/auto/Net/SSH2/SSH2.so \ -lssh2 -lz -lssl -lcrypto -lperl \ chmod 755 blib/arch/auto/Net/SSH2/SSH2.so Manifying 8 pod documents + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.8Alp5K + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64 + cd Net-SSH2-0.68 + make pure_install DESTDIR=/builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64 "/usr/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' -- SSH2.bs blib/arch/auto/Net/SSH2/SSH2.bs 644 Manifying 8 pod documents Files found in blib/arch: installing files in blib/lib into architecture dependent library tree Installing /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/lib64/perl5/vendor_perl/auto/Net/SSH2/SSH2.so Installing /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/lib64/perl5/vendor_perl/Net/SSH2.pm Installing /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/lib64/perl5/vendor_perl/Net/SSH2/SFTP.pm Installing /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/lib64/perl5/vendor_perl/Net/SSH2/KnownHosts.pm Installing /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/lib64/perl5/vendor_perl/Net/SSH2/Channel.pm Installing /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/lib64/perl5/vendor_perl/Net/SSH2/Listener.pm Installing /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/lib64/perl5/vendor_perl/Net/SSH2/Constants.pm Installing /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/lib64/perl5/vendor_perl/Net/SSH2/File.pm Installing /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/lib64/perl5/vendor_perl/Net/SSH2/PublicKey.pm Installing /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/lib64/perl5/vendor_perl/Net/SSH2/Dir.pm Installing /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/share/man/man3/Net::SSH2::Listener.3pm Installing /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/share/man/man3/Net::SSH2::File.3pm Installing /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/share/man/man3/Net::SSH2::SFTP.3pm Installing /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/share/man/man3/Net::SSH2::PublicKey.3pm Installing /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/share/man/man3/Net::SSH2.3pm Installing /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/share/man/man3/Net::SSH2::Dir.3pm Installing /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/share/man/man3/Net::SSH2::Channel.3pm Installing /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/share/man/man3/Net::SSH2::KnownHosts.3pm + find /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64 -type f -name .packlist -delete + find /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64 -type f -name '*.bs' -size 0 -delete + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr + /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: perl-Net-SSH2-0.68-1.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.PCUrsy + umask 022 + cd /builddir/build/BUILD + cd Net-SSH2-0.68 + DOCDIR=/builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/share/doc/perl-Net-SSH2 + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/share/doc/perl-Net-SSH2 + cp -pr Changes /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/share/doc/perl-Net-SSH2 + cp -pr README /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/share/doc/perl-Net-SSH2 + cp -pr example /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64/usr/share/doc/perl-Net-SSH2 + exit 0 Provides: perl(Net::SSH2) = 0.68 perl(Net::SSH2::Channel) perl(Net::SSH2::Constants) = 0.68 perl(Net::SSH2::Dir) perl(Net::SSH2::File) perl(Net::SSH2::KnownHosts) perl(Net::SSH2::Listener) perl(Net::SSH2::PublicKey) perl(Net::SSH2::SFTP) perl-Net-SSH2 = 0.68-1.fc28 perl-Net-SSH2(riscv-64) = 0.68-1.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) libcrypto.so.1.1()(64bit) libperl.so.5.26()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.27)(64bit) libssh2.so.1()(64bit) libssl.so.1.1()(64bit) libz.so.1()(64bit) perl(:VERSION) >= 5.6.0 perl(Carp) perl(Errno) perl(Exporter) perl(File::Basename) perl(IO::File) perl(Net::SSH2::Channel) perl(Net::SSH2::Constants) perl(Net::SSH2::File) perl(Net::SSH2::KnownHosts) perl(Net::SSH2::Listener) perl(Net::SSH2::SFTP) perl(Socket) perl(XSLoader) perl(base) perl(strict) perl(warnings) perl(warnings::register) rtld(GNU_HASH) Recommends: perl(Term::ReadKey) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64 Wrote: /builddir/build/SRPMS/perl-Net-SSH2-0.68-1.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/perl-Net-SSH2-0.68-1.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.NJq3oF + umask 022 + cd /builddir/build/BUILD + cd Net-SSH2-0.68 + /usr/bin/rm -rf /builddir/build/BUILDROOT/perl-Net-SSH2-0.68-1.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff