+ exec
+ rm -rf /rpmbuild
+ mkdir -p /rpmbuild
+ su -c 'rpmbuild -ba /builddir/build/SPECS/libssh2.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.swahiL
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf libssh2-1.8.0
+ /usr/bin/gzip -dc /builddir/build/SOURCES/libssh2-1.8.0.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd libssh2-1.8.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #1 (0001-scp-do-not-NUL-terminate-the-command-for-remote-exec.patch):'
Patch #1 (0001-scp-do-not-NUL-terminate-the-command-for-remote-exec.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0
patching file src/scp.c
+ sed -i s/4711/4764/ tests/ssh2.c tests/ssh2.sh
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Vzz2Z5
+ umask 022
+ cd /builddir/build/BUILD
+ cd libssh2-1.8.0
+ 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 '
+ export CFLAGS
+ CXXFLAGS='-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 '
+ export CXXFLAGS
+ FFLAGS='-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  -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-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  -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ '[' 1 = 1 ']'
+++ dirname ./configure
++ find . -name config.guess -o -name config.sub
+ for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub)
++ basename ./config.sub
+ '[' -f /usr/lib/rpm/redhat/config.sub ']'
+ /usr/bin/rm -f ./config.sub
++ basename ./config.sub
+ /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub
'/usr/lib/rpm/redhat/config.sub' -> './config.sub'
+ for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub)
++ basename ./config.guess
+ '[' -f /usr/lib/rpm/redhat/config.guess ']'
+ /usr/bin/rm -f ./config.guess
++ basename ./config.guess
+ /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess
'/usr/lib/rpm/redhat/config.guess' -> './config.guess'
+ '[' 1 = 1 ']'
+ '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']'
++ find . -name ltmain.sh
+ for i in $(find . -name ltmain.sh)
+ /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh
+ ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-silent-rules --disable-static --enable-shared
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... yes
checking for sed... /usr/bin/sed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking libssh2 version... 1.8.0
checking build system type... riscv64-redhat-linux-gnu
checking host system type... riscv64-redhat-linux-gnu
configure: autobuild project... libssh2
configure: autobuild revision... 1.8.0
configure: autobuild hostname... stage4-builder
configure: autobuild timestamp... 20180312-061545
checking for style of include used by make... GNU
checking for riscv64-redhat-linux-gnu-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for long long... yes
checking if _REENTRANT is already defined... no
checking if _REENTRANT is actually needed... no
checking if _REENTRANT is onwards defined... no
checking for library containing socket... none required
checking for library containing inet_addr... none required
checking for riscv64-redhat-linux-gnu-gcc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) none
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for sshd... /usr/sbin/sshd
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert riscv64-redhat-linux-gnu file names to riscv64-redhat-linux-gnu format... func_convert_file_noop
checking how to convert riscv64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for riscv64-redhat-linux-gnu-objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for riscv64-redhat-linux-gnu-dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for riscv64-redhat-linux-gnu-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for riscv64-redhat-linux-gnu-strip... no
checking for strip... strip
checking for riscv64-redhat-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for riscv64-redhat-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether byte ordering is bigendian... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for libssl... yes
checking how to link with libssl... /usr/lib64/libssl.so /usr/lib64/libcrypto.so -Wl,-rpath -Wl,/usr/lib64
checking for EVP_aes_128_ctr... yes
checking for libz... yes
checking how to link with libz... /usr/lib64/libz.so -Wl,-rpath -Wl,/usr/lib64
configure: WARNING: secure clearing/zeroing of memory is not supported by the selected crypto backend
checking whether to enable pedantic and debug compiler options... no
checking whether to enable hidden symbols in the library... no
checking whether to build example applications... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking winsock2.h usability... no
checking winsock2.h presence... no
checking for winsock2.h... no
checking ws2tcpip.h usability... no
checking ws2tcpip.h presence... no
checking for ws2tcpip.h... no
checking for poll... yes
checking for gettimeofday... yes
checking for select... yes
checking for strtoll... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking non-blocking sockets style... O_NONBLOCK
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating example/Makefile
config.status: creating docs/Makefile
config.status: creating libssh2.pc
config.status: creating src/libssh2_config.h
config.status: creating example/libssh2_config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: summary of build options:

  version:          1.8.0
  Host type:        riscv64-redhat-linux-gnu
  Install prefix:   /usr
  Compiler:         gcc
  Compiler flags:   -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 
  Library types:    Shared=yes, Static=no
  Crypto library:   OpenSSL (AES-CTR: yes)
  Clear memory:     unsupported
  Debug build:      no
  Build examples:   yes
  Path to sshd:     /usr/sbin/sshd (only for self-tests)
  zlib compression: yes

+ make -j4
Making all in src
make[1]: Entering directory '/builddir/build/BUILD/libssh2-1.8.0/src'
make  all-am
make[2]: Entering directory '/builddir/build/BUILD/libssh2-1.8.0/src'
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o channel.lo channel.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o comp.lo comp.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o crypt.lo crypt.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o hostkey.lo hostkey.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c crypt.c  -fPIC -DPIC -o .libs/crypt.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c channel.c  -fPIC -DPIC -o .libs/channel.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c hostkey.c  -fPIC -DPIC -o .libs/hostkey.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c comp.c  -fPIC -DPIC -o .libs/comp.o
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o kex.lo kex.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o mac.lo mac.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c kex.c  -fPIC -DPIC -o .libs/kex.o
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o misc.lo misc.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c mac.c  -fPIC -DPIC -o .libs/mac.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c misc.c  -fPIC -DPIC -o .libs/misc.o
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o packet.lo packet.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c packet.c  -fPIC -DPIC -o .libs/packet.o
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o publickey.lo publickey.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o scp.lo scp.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c publickey.c  -fPIC -DPIC -o .libs/publickey.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c scp.c  -fPIC -DPIC -o .libs/scp.o
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o session.lo session.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o sftp.lo sftp.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c session.c  -fPIC -DPIC -o .libs/session.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c sftp.c  -fPIC -DPIC -o .libs/sftp.o
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o userauth.lo userauth.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o transport.lo transport.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c userauth.c  -fPIC -DPIC -o .libs/userauth.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c transport.c  -fPIC -DPIC -o .libs/transport.o
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o version.lo version.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o knownhost.lo knownhost.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c version.c  -fPIC -DPIC -o .libs/version.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c knownhost.c  -fPIC -DPIC -o .libs/knownhost.o
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o agent.lo agent.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o openssl.lo openssl.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c agent.c  -fPIC -DPIC -o .libs/agent.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c openssl.c  -fPIC -DPIC -o .libs/openssl.o
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o pem.lo pem.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c pem.c  -fPIC -DPIC -o .libs/pem.o
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o keepalive.lo keepalive.c
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H   -I../include -I../src   -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  -c -o global.lo global.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c keepalive.c  -fPIC -DPIC -o .libs/keepalive.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src -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 -c global.c  -fPIC -DPIC -o .libs/global.o
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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  -version-info 1:1:0 -no-undefined -export-symbols-regex '^libssh2_.*'  -L/usr/lib64 -lssl -L/usr/lib64 -lcrypto -R/usr/lib64 -L/usr/lib64 -lz -R/usr/lib64 -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o libssh2.la -rpath /usr/lib64 channel.lo comp.lo crypt.lo hostkey.lo kex.lo mac.lo misc.lo packet.lo publickey.lo scp.lo session.lo sftp.lo userauth.lo transport.lo version.lo knownhost.lo agent.lo openssl.lo pem.lo keepalive.lo global.lo   
libtool: link: /usr/bin/nm -B  .libs/channel.o .libs/comp.o .libs/crypt.o .libs/hostkey.o .libs/kex.o .libs/mac.o .libs/misc.o .libs/packet.o .libs/publickey.o .libs/scp.o .libs/session.o .libs/sftp.o .libs/userauth.o .libs/transport.o .libs/version.o .libs/knownhost.o .libs/agent.o .libs/openssl.o .libs/pem.o .libs/keepalive.o .libs/global.o   | sed -n -e 's/^.*[	 ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[	 ][	 ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libssh2.exp
libtool: link: /usr/bin/grep -E -e "^libssh2_.*" ".libs/libssh2.exp" > ".libs/libssh2.expT"
libtool: link: mv -f ".libs/libssh2.expT" ".libs/libssh2.exp"
libtool: link: echo "{ global:" > .libs/libssh2.ver
libtool: link:  cat .libs/libssh2.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libssh2.ver
libtool: link:  echo "local: *; };" >> .libs/libssh2.ver
libtool: link:  gcc -shared  -fPIC -DPIC  .libs/channel.o .libs/comp.o .libs/crypt.o .libs/hostkey.o .libs/kex.o .libs/mac.o .libs/misc.o .libs/packet.o .libs/publickey.o .libs/scp.o .libs/session.o .libs/sftp.o .libs/userauth.o .libs/transport.o .libs/version.o .libs/knownhost.o .libs/agent.o .libs/openssl.o .libs/pem.o .libs/keepalive.o .libs/global.o   -Wl,-rpath -Wl,/usr/lib64 -L/usr/lib64 -lssl -lcrypto -lz -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld   -Wl,-soname -Wl,libssh2.so.1 -Wl,-version-script -Wl,.libs/libssh2.ver -o .libs/libssh2.so.1.0.1
libtool: link: (cd ".libs" && rm -f "libssh2.so.1" && ln -s "libssh2.so.1.0.1" "libssh2.so.1")
libtool: link: (cd ".libs" && rm -f "libssh2.so" && ln -s "libssh2.so.1.0.1" "libssh2.so")
libtool: link: ( cd ".libs" && rm -f "libssh2.la" && ln -s "../libssh2.la" "libssh2.la" )
make[2]: Leaving directory '/builddir/build/BUILD/libssh2-1.8.0/src'
make[1]: Leaving directory '/builddir/build/BUILD/libssh2-1.8.0/src'
Making all in tests
make[1]: Entering directory '/builddir/build/BUILD/libssh2-1.8.0/tests'
gcc -DHAVE_CONFIG_H -I. -I../src -I../example  -I../src -I../include -I../src   -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  -c -o ssh2.o ssh2.c
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o ssh2 ssh2.o ../src/libssh2.la 
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/ssh2 ssh2.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
make[1]: Leaving directory '/builddir/build/BUILD/libssh2-1.8.0/tests'
Making all in docs
make[1]: Entering directory '/builddir/build/BUILD/libssh2-1.8.0/docs'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/builddir/build/BUILD/libssh2-1.8.0/docs'
Making all in example
make[1]: Entering directory '/builddir/build/BUILD/libssh2-1.8.0/example'
make  all-am
make[2]: Entering directory '/builddir/build/BUILD/libssh2-1.8.0/example'
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o direct_tcpip.o direct_tcpip.c
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o ssh2.o ssh2.c
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o scp.o scp.c
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o scp_nonblock.o scp_nonblock.c
scp.c: In function 'main':
scp.c:159:13: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
             write(1, mem, rc);
             ^~~~~~~~~~~~~~~~~
scp_nonblock.c: In function 'main':
scp_nonblock.c:244:17: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
                 write(1, mem, rc);
                 ^~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o scp_write.o scp_write.c
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o scp_write_nonblock.o scp_write_nonblock.c
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o sftp.o sftp.c
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o sftp_nonblock.o sftp_nonblock.c
sftp.c: In function 'main':
sftp.c:266:13: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
             write(1, mem, rc);
             ^~~~~~~~~~~~~~~~~
sftp.c: In function 'kbd_callback':
sftp.c:76:9: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
         fgets(buf, sizeof(buf), stdin);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o sftp_write.o sftp_write.c
sftp_nonblock.c: In function 'main':
sftp_nonblock.c:257:13: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
             write(1, mem, rc);
             ^~~~~~~~~~~~~~~~~
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o sftp_write_nonblock.o sftp_write_nonblock.c
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o sftp_mkdir.o sftp_mkdir.c
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o sftp_mkdir_nonblock.o sftp_mkdir_nonblock.c
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o sftp_RW_nonblock.o sftp_RW_nonblock.c
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o sftp_write_sliding.o sftp_write_sliding.c
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o sftpdir.o sftpdir.c
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o sftpdir_nonblock.o sftpdir_nonblock.c
sftp_RW_nonblock.c: In function 'main':
sftp_RW_nonblock.c:241:17: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
                 write(2, mem, rc);
                 ^~~~~~~~~~~~~~~~~
sftpdir.c: In function 'main':
sftpdir.c:277:28: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'libssh2_uint64_t {aka long long unsigned int}' [-Wformat=]
                     printf("%8" PRIu64 " ", attrs.filesize);
                            ^~~~             ~~~~~~~~~~~~~~
In file included from sftpdir.c:30:0:
/usr/include/inttypes.h:105:34: note: format string is defined here
 # define PRIu64  __PRI64_PREFIX "u"
sftpdir_nonblock.c: In function 'main':
sftpdir_nonblock.c:220:24: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'libssh2_uint64_t {aka long long unsigned int}' [-Wformat=]
                 printf("%8" PRIu64 " ", attrs.filesize);
                        ^~~~             ~~~~~~~~~~~~~~
In file included from sftpdir_nonblock.c:30:0:
/usr/include/inttypes.h:105:34: note: format string is defined here
 # define PRIu64  __PRI64_PREFIX "u"
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o ssh2_exec.o ssh2_exec.c
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o ssh2_agent.o ssh2_agent.c
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o ssh2_echo.o ssh2_echo.c
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o sftp_append.o sftp_append.c
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o subsystem_netconf.o subsystem_netconf.c
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o tcpip-forward.o tcpip-forward.c
gcc -DHAVE_CONFIG_H   -I../include -I../example   -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  -c -o x11.o x11.c
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o direct_tcpip direct_tcpip.o ../src/libssh2.la 
x11.c: In function 'x11_send_receive':
x11.c:213:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
         write(sock, buf, rc);
         ^~~~~~~~~~~~~~~~~~~~
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o ssh2 ssh2.o ../src/libssh2.la 
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o scp scp.o ../src/libssh2.la 
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o scp_nonblock scp_nonblock.o ../src/libssh2.la 
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/direct_tcpip direct_tcpip.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o scp_write scp_write.o ../src/libssh2.la 
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/ssh2 ssh2.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/scp scp.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/scp_nonblock scp_nonblock.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o scp_write_nonblock scp_write_nonblock.o ../src/libssh2.la 
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o sftp sftp.o ../src/libssh2.la 
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o sftp_nonblock sftp_nonblock.o ../src/libssh2.la 
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/scp_write scp_write.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o sftp_write sftp_write.o ../src/libssh2.la 
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/scp_write_nonblock scp_write_nonblock.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/sftp sftp.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/sftp_nonblock sftp_nonblock.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o sftp_write_nonblock sftp_write_nonblock.o ../src/libssh2.la 
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o sftp_mkdir sftp_mkdir.o ../src/libssh2.la 
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o sftp_mkdir_nonblock sftp_mkdir_nonblock.o ../src/libssh2.la 
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/sftp_write sftp_write.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o sftp_RW_nonblock sftp_RW_nonblock.o ../src/libssh2.la 
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/sftp_mkdir sftp_mkdir.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/sftp_write_nonblock sftp_write_nonblock.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/sftp_mkdir_nonblock sftp_mkdir_nonblock.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o sftp_write_sliding sftp_write_sliding.o ../src/libssh2.la 
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o sftpdir sftpdir.o ../src/libssh2.la 
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o sftpdir_nonblock sftpdir_nonblock.o ../src/libssh2.la 
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/sftp_RW_nonblock sftp_RW_nonblock.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o ssh2_exec ssh2_exec.o ../src/libssh2.la 
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/sftp_write_sliding sftp_write_sliding.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/sftpdir sftpdir.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/sftpdir_nonblock sftpdir_nonblock.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o ssh2_agent ssh2_agent.o ../src/libssh2.la 
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o ssh2_echo ssh2_echo.o ../src/libssh2.la 
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o sftp_append sftp_append.o ../src/libssh2.la 
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/ssh2_exec ssh2_exec.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o subsystem_netconf subsystem_netconf.o ../src/libssh2.la 
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/ssh2_agent ssh2_agent.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/ssh2_echo ssh2_echo.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/sftp_append sftp_append.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o tcpip-forward tcpip-forward.o ../src/libssh2.la 
/bin/sh ../libtool  --tag=CC   --mode=link gcc  -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   -Wl,-z,relro  -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o x11 x11.o ../src/libssh2.la 
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/subsystem_netconf subsystem_netconf.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/tcpip-forward tcpip-forward.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
libtool: link: gcc -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 -Wl,-z -Wl,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o .libs/x11 x11.o  ../src/.libs/libssh2.so -Wl,-rpath -Wl,/usr/lib64
make[2]: Leaving directory '/builddir/build/BUILD/libssh2-1.8.0/example'
make[1]: Leaving directory '/builddir/build/BUILD/libssh2-1.8.0/example'
make[1]: Entering directory '/builddir/build/BUILD/libssh2-1.8.0'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/builddir/build/BUILD/libssh2-1.8.0'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.MwJSRQ
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64 '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64
++ dirname /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64
+ cd libssh2-1.8.0
+ make install DESTDIR=/builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64 'INSTALL=install -p'
Making install in src
make[1]: Entering directory '/builddir/build/BUILD/libssh2-1.8.0/src'
make[2]: Entering directory '/builddir/build/BUILD/libssh2-1.8.0/src'
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/lib64'
 /bin/sh ../libtool   --mode=install install -p   libssh2.la '/builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/lib64'
libtool: install: install -p .libs/libssh2.so.1.0.1 /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/lib64/libssh2.so.1.0.1
libtool: install: (cd /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/lib64 && { ln -s -f libssh2.so.1.0.1 libssh2.so.1 || { rm -f libssh2.so.1 && ln -s libssh2.so.1.0.1 libssh2.so.1; }; })
libtool: install: (cd /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/lib64 && { ln -s -f libssh2.so.1.0.1 libssh2.so || { rm -f libssh2.so && ln -s libssh2.so.1.0.1 libssh2.so; }; })
libtool: install: install -p .libs/libssh2.lai /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/lib64/libssh2.la
libtool: warning: remember to run 'libtool --finish /usr/lib64'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/builddir/build/BUILD/libssh2-1.8.0/src'
make[1]: Leaving directory '/builddir/build/BUILD/libssh2-1.8.0/src'
Making install in tests
make[1]: Entering directory '/builddir/build/BUILD/libssh2-1.8.0/tests'
make[2]: Entering directory '/builddir/build/BUILD/libssh2-1.8.0/tests'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/builddir/build/BUILD/libssh2-1.8.0/tests'
make[1]: Leaving directory '/builddir/build/BUILD/libssh2-1.8.0/tests'
Making install in docs
make[1]: Entering directory '/builddir/build/BUILD/libssh2-1.8.0/docs'
make[2]: Entering directory '/builddir/build/BUILD/libssh2-1.8.0/docs'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/man/man3'
 install -p -m 644 libssh2_agent_connect.3 libssh2_agent_disconnect.3 libssh2_agent_free.3 libssh2_agent_get_identity.3 libssh2_agent_init.3 libssh2_agent_list_identities.3 libssh2_agent_userauth.3 libssh2_banner_set.3 libssh2_base64_decode.3 libssh2_channel_close.3 libssh2_channel_direct_tcpip.3 libssh2_channel_direct_tcpip_ex.3 libssh2_channel_eof.3 libssh2_channel_exec.3 libssh2_channel_flush.3 libssh2_channel_flush_ex.3 libssh2_channel_flush_stderr.3 libssh2_channel_forward_accept.3 libssh2_channel_forward_cancel.3 libssh2_channel_forward_listen.3 libssh2_channel_forward_listen_ex.3 libssh2_channel_free.3 libssh2_channel_get_exit_signal.3 libssh2_channel_get_exit_status.3 libssh2_channel_handle_extended_data.3 libssh2_channel_handle_extended_data2.3 libssh2_channel_ignore_extended_data.3 libssh2_channel_open_ex.3 libssh2_channel_open_session.3 libssh2_channel_process_startup.3 libssh2_channel_read.3 libssh2_channel_read_ex.3 libssh2_channel_read_stderr.3 libssh2_channel_receive_window_adjust.3 libssh2_channel_receive_window_adjust2.3 libssh2_channel_request_pty.3 libssh2_channel_request_pty_ex.3 libssh2_channel_request_pty_size.3 libssh2_channel_request_pty_size_ex.3 libssh2_channel_send_eof.3 '/builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/man/man3'
 install -p -m 644 libssh2_channel_set_blocking.3 libssh2_channel_setenv.3 libssh2_channel_setenv_ex.3 libssh2_channel_shell.3 libssh2_channel_subsystem.3 libssh2_channel_wait_closed.3 libssh2_channel_wait_eof.3 libssh2_channel_window_read.3 libssh2_channel_window_read_ex.3 libssh2_channel_window_write.3 libssh2_channel_window_write_ex.3 libssh2_channel_write.3 libssh2_channel_write_ex.3 libssh2_channel_write_stderr.3 libssh2_channel_x11_req.3 libssh2_channel_x11_req_ex.3 libssh2_exit.3 libssh2_free.3 libssh2_hostkey_hash.3 libssh2_init.3 libssh2_keepalive_config.3 libssh2_keepalive_send.3 libssh2_knownhost_add.3 libssh2_knownhost_addc.3 libssh2_knownhost_check.3 libssh2_knownhost_checkp.3 libssh2_knownhost_del.3 libssh2_knownhost_free.3 libssh2_knownhost_get.3 libssh2_knownhost_init.3 libssh2_knownhost_readfile.3 libssh2_knownhost_readline.3 libssh2_knownhost_writefile.3 libssh2_knownhost_writeline.3 libssh2_poll.3 libssh2_poll_channel_read.3 libssh2_publickey_add.3 libssh2_publickey_add_ex.3 libssh2_publickey_init.3 libssh2_publickey_list_fetch.3 '/builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/man/man3'
 install -p -m 644 libssh2_publickey_list_free.3 libssh2_publickey_remove.3 libssh2_publickey_remove_ex.3 libssh2_publickey_shutdown.3 libssh2_scp_recv.3 libssh2_scp_recv2.3 libssh2_scp_send.3 libssh2_scp_send64.3 libssh2_scp_send_ex.3 libssh2_session_abstract.3 libssh2_session_banner_get.3 libssh2_session_banner_set.3 libssh2_session_block_directions.3 libssh2_session_callback_set.3 libssh2_session_disconnect.3 libssh2_session_disconnect_ex.3 libssh2_session_flag.3 libssh2_session_free.3 libssh2_session_get_blocking.3 libssh2_session_get_timeout.3 libssh2_session_handshake.3 libssh2_session_hostkey.3 libssh2_session_init.3 libssh2_session_init_ex.3 libssh2_session_last_errno.3 libssh2_session_last_error.3 libssh2_session_set_last_error.3 libssh2_session_method_pref.3 libssh2_session_methods.3 libssh2_session_set_blocking.3 libssh2_session_set_timeout.3 libssh2_session_startup.3 libssh2_session_supported_algs.3 libssh2_sftp_close.3 libssh2_sftp_close_handle.3 libssh2_sftp_closedir.3 libssh2_sftp_fsetstat.3 libssh2_sftp_fstat.3 libssh2_sftp_fstat_ex.3 libssh2_sftp_fstatvfs.3 '/builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/man/man3'
 install -p -m 644 libssh2_sftp_fsync.3 libssh2_sftp_get_channel.3 libssh2_sftp_init.3 libssh2_sftp_last_error.3 libssh2_sftp_lstat.3 libssh2_sftp_mkdir.3 libssh2_sftp_mkdir_ex.3 libssh2_sftp_open.3 libssh2_sftp_open_ex.3 libssh2_sftp_opendir.3 libssh2_sftp_read.3 libssh2_sftp_readdir.3 libssh2_sftp_readdir_ex.3 libssh2_sftp_readlink.3 libssh2_sftp_realpath.3 libssh2_sftp_rename.3 libssh2_sftp_rename_ex.3 libssh2_sftp_rewind.3 libssh2_sftp_rmdir.3 libssh2_sftp_rmdir_ex.3 libssh2_sftp_seek.3 libssh2_sftp_seek64.3 libssh2_sftp_setstat.3 libssh2_sftp_shutdown.3 libssh2_sftp_stat.3 libssh2_sftp_stat_ex.3 libssh2_sftp_statvfs.3 libssh2_sftp_symlink.3 libssh2_sftp_symlink_ex.3 libssh2_sftp_tell.3 libssh2_sftp_tell64.3 libssh2_sftp_unlink.3 libssh2_sftp_unlink_ex.3 libssh2_sftp_write.3 libssh2_trace.3 libssh2_trace_sethandler.3 libssh2_userauth_authenticated.3 libssh2_userauth_hostbased_fromfile.3 libssh2_userauth_hostbased_fromfile_ex.3 libssh2_userauth_keyboard_interactive.3 '/builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/man/man3'
 install -p -m 644 libssh2_userauth_keyboard_interactive_ex.3 libssh2_userauth_list.3 libssh2_userauth_password.3 libssh2_userauth_password_ex.3 libssh2_userauth_publickey.3 libssh2_userauth_publickey_fromfile.3 libssh2_userauth_publickey_fromfile_ex.3 libssh2_userauth_publickey_frommemory.3 libssh2_version.3 '/builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/man/man3'
make[2]: Leaving directory '/builddir/build/BUILD/libssh2-1.8.0/docs'
make[1]: Leaving directory '/builddir/build/BUILD/libssh2-1.8.0/docs'
Making install in example
make[1]: Entering directory '/builddir/build/BUILD/libssh2-1.8.0/example'
make[2]: Entering directory '/builddir/build/BUILD/libssh2-1.8.0/example'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/builddir/build/BUILD/libssh2-1.8.0/example'
make[1]: Leaving directory '/builddir/build/BUILD/libssh2-1.8.0/example'
make[1]: Entering directory '/builddir/build/BUILD/libssh2-1.8.0'
make[2]: Entering directory '/builddir/build/BUILD/libssh2-1.8.0'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/include'
 install -p -m 644 include/libssh2.h include/libssh2_publickey.h include/libssh2_sftp.h '/builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/include'
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/lib64/pkgconfig'
 install -p -m 644 libssh2.pc '/builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/lib64/pkgconfig'
make[2]: Leaving directory '/builddir/build/BUILD/libssh2-1.8.0'
make[1]: Leaving directory '/builddir/build/BUILD/libssh2-1.8.0'
+ find /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64 -name '*.la' -delete
+ make -C example clean
make: Entering directory '/builddir/build/BUILD/libssh2-1.8.0/example'
rm -rf .libs _libs
 rm -f direct_tcpip ssh2 scp scp_nonblock scp_write scp_write_nonblock sftp sftp_nonblock sftp_write sftp_write_nonblock sftp_mkdir sftp_mkdir_nonblock sftp_RW_nonblock sftp_write_sliding sftpdir sftpdir_nonblock ssh2_exec ssh2_agent ssh2_echo sftp_append subsystem_netconf tcpip-forward x11
rm -f *.o
rm -f *.lo
make: Leaving directory '/builddir/build/BUILD/libssh2-1.8.0/example'
+ rm -rf example/.deps
+ find example/ -type f '(' -name '*.am' -o -name '*.in' ')' -delete
+ mv -v example example.riscv64
renamed 'example' -> 'example.riscv64'
+ /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: libssh2-1.8.0-5.fc28.riscv64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.C0mzAM
+ umask 022
+ cd /builddir/build/BUILD
+ cd libssh2-1.8.0
+ DOCDIR=/builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/doc/libssh2
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/doc/libssh2
+ cp -pr docs/AUTHORS /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/doc/libssh2
+ cp -pr README /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/doc/libssh2
+ cp -pr RELEASE-NOTES /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/doc/libssh2
+ exit 0
Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.DiVHK3
+ umask 022
+ cd /builddir/build/BUILD
+ cd libssh2-1.8.0
+ LICENSEDIR=/builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/licenses/libssh2
+ export LC_ALL=C
+ LC_ALL=C
+ export LICENSEDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/licenses/libssh2
+ cp -pr COPYING /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/licenses/libssh2
+ exit 0
Provides: libssh2 = 1.8.0-5.fc28 libssh2(riscv-64) = 1.8.0-5.fc28 libssh2.so.1()(64bit)
Requires(interp): /sbin/ldconfig /sbin/ldconfig
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
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) libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) libssl.so.1.1()(64bit) libz.so.1()(64bit) rtld(GNU_HASH)
Processing files: libssh2-devel-1.8.0-5.fc28.riscv64
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.Waf7sm
+ umask 022
+ cd /builddir/build/BUILD
+ cd libssh2-1.8.0
+ DOCDIR=/builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/doc/libssh2-devel
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/doc/libssh2-devel
+ cp -pr example.riscv64/ /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/doc/libssh2-devel
+ exit 0
Provides: libssh2-devel = 1.8.0-5.fc28 libssh2-devel(riscv-64) = 1.8.0-5.fc28 pkgconfig(libssh2) = 1.8.0
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /usr/bin/pkg-config libssh2.so.1()(64bit) pkgconfig(libcrypto) pkgconfig(libssl) pkgconfig(zlib)
Processing files: libssh2-docs-1.8.0-5.fc28.noarch
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.RdJx86
+ umask 022
+ cd /builddir/build/BUILD
+ cd libssh2-1.8.0
+ DOCDIR=/builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/doc/libssh2-docs
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/doc/libssh2-docs
+ cp -pr docs/BINDINGS /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/doc/libssh2-docs
+ cp -pr docs/HACKING /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/doc/libssh2-docs
+ cp -pr docs/TODO /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/doc/libssh2-docs
+ cp -pr NEWS /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64/usr/share/doc/libssh2-docs
+ exit 0
Provides: libssh2-docs = 1.8.0-5.fc28
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/libssh2-1.8.0-5.fc28.riscv64
Wrote: /builddir/build/SRPMS/libssh2-1.8.0-5.fc28.src.rpm
Wrote: /builddir/build/RPMS/riscv64/libssh2-1.8.0-5.fc28.riscv64.rpm
Wrote: /builddir/build/RPMS/riscv64/libssh2-devel-1.8.0-5.fc28.riscv64.rpm
Wrote: /builddir/build/RPMS/noarch/libssh2-docs-1.8.0-5.fc28.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.mel6o6
+ umask 022
+ cd /builddir/build/BUILD
+ cd libssh2-1.8.0
+ /usr/bin/rm -rf /builddir/build/BUILDROOT/libssh2-1.8.0-5.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