>>> perl-net-ssh2 0.69 Downloading --2018-09-10 15:37:33-- http://cpan.metacpan.org/authors/id/S/SA/SALVA/Net-SSH2-0.69.tar.gz Resolving cpan.metacpan.org (cpan.metacpan.org)... 151.101.122.217, 2a04:4e42:1d::729 Connecting to cpan.metacpan.org (cpan.metacpan.org)|151.101.122.217|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 140601 (137K) [application/x-gzip] Saving to: '/home/naourr/work/instance-3/output/build/.Net-SSH2-0.69.tar.gz.y3MJqd/output' 0K .......... .......... .......... .......... .......... 36% 3.64M 0s 50K .......... .......... .......... .......... .......... 72% 8.66M 0s 100K .......... .......... .......... ....... 100% 9.89M=0.02s 2018-09-10 15:37:33 (5.90 MB/s) - '/home/naourr/work/instance-3/output/build/.Net-SSH2-0.69.tar.gz.y3MJqd/output' saved [140601/140601] Net-SSH2-0.69.tar.gz: OK (md5: 94ed21d4557a6bbc3cb6bfd7c3479ef0) Net-SSH2-0.69.tar.gz: OK (sha256: 2fc85e1434b8a6e77142d85e3cea5a081ca71da5d02c4212b9970d3a3924baa6) >>> perl-net-ssh2 0.69 Extracting gzip -d -c /home/naourr/work/instance-3/dl/perl-net-ssh2/Net-SSH2-0.69.tar.gz | /home/naourr/work/instance-3/output/host/bin/tar --strip-components=1 -C /home/naourr/work/instance-3/output/build/perl-net-ssh2-0.69 -xf - >>> perl-net-ssh2 0.69 Patching >>> perl-net-ssh2 0.69 Configuring cd /home/naourr/work/instance-3/output/build/perl-net-ssh2-0.69/ && if [ -f Build.PL ] && [ MB != "EUMM" ] ; then PERL_MM_USE_DEFAULT=1 PERL5LIB= PERL_USE_UNSAFE_INC=1 /home/naourr/work/instance-3/output/host/bin/perl Build.PL --config ar="/home/naourr/work/instance-3/output/host/bin/x86_64-linux-ar" --config full_ar="/home/naourr/work/instance-3/output/host/bin/x86_64-linux-ar" --config cc="/home/naourr/work/instance-3/output/host/bin/x86_64-linux-gcc" --config ccflags="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os " --config optimize=" " --config ld="/home/naourr/work/instance-3/output/host/bin/x86_64-linux-gcc" --config lddlflags="-shared " --config ldflags="" --include_dirs /home/naourr/work/instance-3/output/host/x86_64-buildroot-linux-musl/sysroot/usr/lib/perl5/5.26.2/x86_64-linux/CORE --destdir /home/naourr/work/instance-3/output/target --installdirs vendor --install_path lib=/usr/lib/perl5/site_perl/5.26.2 --install_path arch=/usr/lib/perl5/site_perl/5.26.2/x86_64-linux --install_path bin=/usr/bin --install_path script=/usr/bin --install_path bindoc=/usr/share/man/man1 --install_path libdoc=/usr/share/man/man3 lib="/home/naourr/work/instance-3/output/host/x86_64-buildroot-linux-musl/sysroot/usr/lib" inc="/home/naourr/work/instance-3/output/host/x86_64-buildroot-linux-musl/sysroot/usr/include" gcrypt; else PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps PERL5LIB= PERL_USE_UNSAFE_INC=1 /home/naourr/work/instance-3/output/host/bin/perl Makefile.PL AR="/home/naourr/work/instance-3/output/host/bin/x86_64-linux-ar" FULL_AR="/home/naourr/work/instance-3/output/host/bin/x86_64-linux-ar" CC="/home/naourr/work/instance-3/output/host/bin/x86_64-linux-gcc" CCFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os " OPTIMIZE=" " LD="/home/naourr/work/instance-3/output/host/bin/x86_64-linux-gcc" LDDLFLAGS="-shared " LDFLAGS="" PERL_INC=/home/naourr/work/instance-3/output/host/x86_64-buildroot-linux-musl/sysroot/usr/lib//5.26.2/x86_64-linux/CORE DESTDIR=/home/naourr/work/instance-3/output/target INSTALLDIRS=vendor INSTALLVENDORLIB=/usr/lib/perl5/site_perl/5.26.2 INSTALLVENDORARCH=/usr/lib/perl5/site_perl/5.26.2/x86_64-linux INSTALLVENDORBIN=/usr/bin INSTALLVENDORSCRIPT=/usr/bin INSTALLVENDORMAN1DIR=/usr/share/man/man1 INSTALLVENDORMAN3DIR=/usr/share/man/man3 lib="/home/naourr/work/instance-3/output/host/x86_64-buildroot-linux-musl/sysroot/usr/lib" inc="/home/naourr/work/instance-3/output/host/x86_64-buildroot-linux-musl/sysroot/usr/include" gcrypt; fi 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. Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Net::SSH2 Writing MYMETA.yml and MYMETA.json >>> perl-net-ssh2 0.69 Building cd /home/naourr/work/instance-3/output/build/perl-net-ssh2-0.69/ && if [ -f Build.PL ] && [ MB != "EUMM" ] ; then PERL5LIB= PERL_USE_UNSAFE_INC=1 /home/naourr/work/instance-3/output/host/bin/perl Build build; else /usr/bin/make -j1 FIXIN=: pure_all; fi make[1]: Entering directory '/home/naourr/work/instance-3/output/build/perl-net-ssh2-0.69' cp lib/Net/SSH2/Channel.pm blib/lib/Net/SSH2/Channel.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/SFTP.pm blib/lib/Net/SSH2/SFTP.pm cp lib/Net/SSH2/Constants.pm blib/lib/Net/SSH2/Constants.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/KnownHosts.pm blib/lib/Net/SSH2/KnownHosts.pm cp lib/Net/SSH2/File.pm blib/lib/Net/SSH2/File.pm Running Mkbootstrap for SSH2 () chmod 644 "SSH2.bs" "/home/naourr/work/instance-3/output/host/bin/perl" "-Iinc" -MExtUtils::Command::MM -e 'cp_nonempty' -- SSH2.bs blib/arch/auto/Net/SSH2/SSH2.bs 644 "/home/naourr/work/instance-3/output/host/bin/perl" "-Iinc" "/home/naourr/work/instance-3/output/host/lib/perl5/5.26.2/ExtUtils/xsubpp" -typemap '/home/naourr/work/instance-3/output/host/lib/perl5/5.26.2/ExtUtils/typemap' -typemap '/home/naourr/work/instance-3/output/build/perl-net-ssh2-0.69/typemap' SSH2.xs > SSH2.xsc mv SSH2.xsc SSH2.c /home/naourr/work/instance-3/output/host/bin/x86_64-linux-gcc -c -I/home/naourr/work/instance-3/output/host/x86_64-buildroot-linux-musl/sysroot/usr/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -DVERSION=\"0.69\" -DXS_VERSION=\"0.69\" -fPIC "-I/home/naourr/work/instance-3/output/host/lib/perl5/5.26.2/x86_64-linux/CORE" -DUSE_GCRYPT SSH2.c SSH2.xs: In function 'XS_Net__SSH2__SFTP_open': SSH2.xs:2123:14: error: 'O_APPEND' undeclared (first use in this function) XLATFLAG(O_APPEND, LIBSSH2_FXF_APPEND); ^ SSH2.c:4087:17: note: in definition of macro 'XLATFLAG' if (flags & posix || \ ^~~~~ SSH2.xs:2123:14: note: each undeclared identifier is reported only once for each function it appears in XLATFLAG(O_APPEND, LIBSSH2_FXF_APPEND); ^ SSH2.c:4087:17: note: in definition of macro 'XLATFLAG' if (flags & posix || \ ^~~~~ SSH2.xs:2125:14: error: 'O_TRUNC' undeclared (first use in this function) XLATFLAG(O_TRUNC, LIBSSH2_FXF_TRUNC); ^ SSH2.c:4087:17: note: in definition of macro 'XLATFLAG' if (flags & posix || \ ^~~~~ SSH2.xs:2126:14: error: 'O_EXCL' undeclared (first use in this function) XLATFLAG(O_EXCL, LIBSSH2_FXF_EXCL); ^ SSH2.c:4087:17: note: in definition of macro 'XLATFLAG' if (flags & posix || \ ^~~~~ make[1]: *** [Makefile:362: SSH2.o] Error 1 make[1]: Leaving directory '/home/naourr/work/instance-3/output/build/perl-net-ssh2-0.69' make: *** [package/pkg-generic.mk:232: /home/naourr/work/instance-3/output/build/perl-net-ssh2-0.69/.stamp_built] Error 2 make: Leaving directory '/home/naourr/work/instance-3/buildroot'