Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/libptytty.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-105611-66593/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/libptytty.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/libptytty-2.0-1.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/libptytty.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-105611-66593/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/libptytty.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.8sVBdY + umask 022 + cd /builddir/build/BUILD + /usr/lib/rpm/OpenCloudOS/gpgverify --keyring=/builddir/build/SOURCES/gpgkey-84874CAB6D1A397A.gpg --signature=/builddir/build/SOURCES/signing-key.pub.gpg.sig --data=/builddir/build/SOURCES/signing-key.pub gpgv: Signature made Thu Nov 17 00:34:45 2016 CST gpgv: using RSA key 84874CAB6D1A397A gpgv: Good signature from "Marc Alexander Lehmann " gpgv: aka "Marc Lehmann (nethype GmbH) " gpgv: aka "Marc Alexander Lehmann " gpgv: aka "Marc Alexander Lehmann " gpgv: aka "Marc Lehmann " + signify -V -p /builddir/build/SOURCES/signing-key.pub -m /builddir/build/SOURCES/libptytty-2.0.tar.gz Signature Verified + cd /builddir/build/BUILD + rm -rf libptytty-2.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/libptytty-2.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd libptytty-2.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'libptytty-2.0 base' + /usr/bin/git checkout --track -b rpm-build Switched to a new branch 'rpm-build' branch 'rpm-build' set up to track 'master'. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/libptytty-cmake-c99.patch + /usr/bin/git apply --index --reject - Checking patch CMakeLists.txt... Applied patch CMakeLists.txt cleanly. + /usr/bin/git commit -q -m libptytty-cmake-c99.patch --author 'rpm-build ' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.PdMFOm + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd libptytty-2.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/cmake -S . -B x86_64-OpenCloudOS-linux-gnu -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -G Ninja -- The C compiler identification is GNU 12.3.1 -- The CXX compiler identification is GNU 12.3.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Checking for working libsupc++ - no -- Looking for include file pty.h -- Looking for include file pty.h - found -- Looking for include file util.h -- Looking for include file util.h - not found -- Looking for include file libutil.h -- Looking for include file libutil.h - not found -- Looking for include file sys/ioctl.h -- Looking for include file sys/ioctl.h - found -- Looking for include file stropts.h -- Looking for include file stropts.h - not found -- Looking for revoke -- Looking for revoke - found -- Looking for _getpty -- Looking for _getpty - not found -- Looking for getpt -- Looking for getpt - found -- Looking for posix_openpt -- Looking for posix_openpt - found -- Looking for isastream -- Looking for isastream - not found -- Looking for setuid -- Looking for setuid - found -- Looking for setreuid -- Looking for setreuid - found -- Looking for setresuid -- Looking for setresuid - found -- Performing Test UNIX98_PTY -- Performing Test UNIX98_PTY - Success -- Looking for include files sys/types.h, utmp.h -- Looking for include files sys/types.h, utmp.h - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of struct utmp -- Check size of struct utmp - done -- Performing Test HAVE_UTMP_HOST -- Performing Test HAVE_UTMP_HOST - Success -- Performing Test HAVE_UTMP_PID -- Performing Test HAVE_UTMP_PID - Success -- Looking for updwtmp -- Looking for updwtmp - found -- Looking for include files sys/types.h, lastlog.h -- Looking for include files sys/types.h, lastlog.h - found -- Check size of struct lastlog -- Check size of struct lastlog - done -- Checking for a fallback location of utmp - not found -- Checking for a fallback location of wtmp - not found -- Checking for a fallback location of lastlog - not found -- Looking for include file utmpx.h -- Looking for include file utmpx.h - found -- Check size of struct utmpx -- Check size of struct utmpx - done -- Performing Test HAVE_UTMPX_HOST -- Performing Test HAVE_UTMPX_HOST - Success -- Looking for updwtmpx -- Looking for updwtmpx - found -- Looking for updlastlogx -- Looking for updlastlogx - not found -- Check size of struct lastlogx -- Check size of struct lastlogx - failed -- Checking for a fallback location of wtmpx - not found -- Checking for a fallback location of lastlogx - not found -- Performing Test HAVE_UNIX_FDPASS -- Performing Test HAVE_UNIX_FDPASS - Success -- Performing Test TTY_GID_SUPPORT -- Performing Test TTY_GID_SUPPORT - Failed -- Configuring done (15.2s) -- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project: CMAKE_CXX_FLAGS_RELEASE CMAKE_C_FLAGS_RELEASE CMAKE_Fortran_FLAGS_RELEASE CMAKE_INSTALL_DO_STRIP CMAKE_VERBOSE_MAKEFILE INCLUDE_INSTALL_DIR LIB_INSTALL_DIR LIB_SUFFIX SHARE_INSTALL_PREFIX SYSCONF_INSTALL_DIR -- Build files have been written to: /builddir/build/BUILD/libptytty-2.0/x86_64-OpenCloudOS-linux-gnu + /usr/bin/cmake --build x86_64-OpenCloudOS-linux-gnu -j32 --verbose [1/9] /usr/bin/g++ -Dptytty_EXPORTS -I/builddir/build/BUILD/libptytty-2.0/x86_64-OpenCloudOS-linux-gnu -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu++11 -fPIC -MD -MT CMakeFiles/ptytty.dir/src/fdpass.C.o -MF CMakeFiles/ptytty.dir/src/fdpass.C.o.d -o CMakeFiles/ptytty.dir/src/fdpass.C.o -c /builddir/build/BUILD/libptytty-2.0/src/fdpass.C [2/9] /usr/bin/g++ -Dptytty_EXPORTS -I/builddir/build/BUILD/libptytty-2.0/x86_64-OpenCloudOS-linux-gnu -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu++11 -fPIC -MD -MT CMakeFiles/ptytty.dir/src/c-api.C.o -MF CMakeFiles/ptytty.dir/src/c-api.C.o.d -o CMakeFiles/ptytty.dir/src/c-api.C.o -c /builddir/build/BUILD/libptytty-2.0/src/c-api.C [3/9] /usr/bin/gcc -I/builddir/build/BUILD/libptytty-2.0/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -MD -MT CMakeFiles/c-sample.dir/eg/c-sample.c.o -MF CMakeFiles/c-sample.dir/eg/c-sample.c.o.d -o CMakeFiles/c-sample.dir/eg/c-sample.c.o -c /builddir/build/BUILD/libptytty-2.0/eg/c-sample.c /builddir/build/BUILD/libptytty-2.0/eg/c-sample.c: In function 'main': /builddir/build/BUILD/libptytty-2.0/eg/c-sample.c:40:7: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 40 | write (pty_fd, s, sizeof (s) - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/eg/c-sample.c:51:11: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 51 | write (STDOUT_FILENO, buf, len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [4/9] /usr/bin/g++ -Dptytty_EXPORTS -I/builddir/build/BUILD/libptytty-2.0/x86_64-OpenCloudOS-linux-gnu -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu++11 -fPIC -MD -MT CMakeFiles/ptytty.dir/src/logging.C.o -MF CMakeFiles/ptytty.dir/src/logging.C.o.d -o CMakeFiles/ptytty.dir/src/logging.C.o -c /builddir/build/BUILD/libptytty-2.0/src/logging.C /builddir/build/BUILD/libptytty-2.0/src/logging.C: In function 'void write_record(const char*, off_t, const void*, size_t)': /builddir/build/BUILD/libptytty-2.0/src/logging.C:203:14: warning: ignoring return value of 'ssize_t pwrite(int, const void*, size_t, __off_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 203 | pwrite (fd, record, size, pos * size); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/logging.C: In member function 'ptytty_unix::log_session(bool, char const*)': /builddir/build/BUILD/libptytty-2.0/src/logging.C:262:11: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation] 262 | strncpy (ll.ll_line, pty, sizeof (ll.ll_line)); | ^ /builddir/build/BUILD/libptytty-2.0/src/logging.C:263:11: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation] 263 | strncpy (ll.ll_host, host, sizeof (ll.ll_host)); | ^ [5/9] /usr/bin/g++ -Dptytty_EXPORTS -I/builddir/build/BUILD/libptytty-2.0/x86_64-OpenCloudOS-linux-gnu -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu++11 -fPIC -MD -MT CMakeFiles/ptytty.dir/src/ptytty.C.o -MF CMakeFiles/ptytty.dir/src/ptytty.C.o.d -o CMakeFiles/ptytty.dir/src/ptytty.C.o -c /builddir/build/BUILD/libptytty-2.0/src/ptytty.C /builddir/build/BUILD/libptytty-2.0/src/ptytty.C: In member function 'void ptytty_unix::put()': /builddir/build/BUILD/libptytty-2.0/src/ptytty.C:312:13: warning: ignoring return value of 'int chown(const char*, __uid_t, __gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 312 | chown (name, 0, ttyconf.gid); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ [6/9] /usr/bin/g++ -Dptytty_EXPORTS -I/builddir/build/BUILD/libptytty-2.0/x86_64-OpenCloudOS-linux-gnu -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu++11 -fPIC -MD -MT CMakeFiles/ptytty.dir/src/proxy.C.o -MF CMakeFiles/ptytty.dir/src/proxy.C.o.d -o CMakeFiles/ptytty.dir/src/proxy.C.o -c /builddir/build/BUILD/libptytty-2.0/src/proxy.C /builddir/build/BUILD/libptytty-2.0/src/proxy.C: In member function 'virtual bool ptytty_proxy::get()': /builddir/build/BUILD/libptytty-2.0/src/proxy.C:77:41: warning: ignoring return value of 'ssize_t read(int, void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 77 | # define NEED_TOKEN do { char ch; read (lock_fd, &ch , 1); } while (0) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:87:3: note: in expansion of macro 'NEED_TOKEN' 87 | NEED_TOKEN; | ^~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:93:9: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 93 | write (sock_fd, &cmd, sizeof (cmd)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:78:41: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 78 | # define GIVE_TOKEN write (lock_fd, &lock_fd, 1) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:100:7: note: in expansion of macro 'GIVE_TOKEN' 100 | GIVE_TOKEN; | ^~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:78:41: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 78 | # define GIVE_TOKEN write (lock_fd, &lock_fd, 1) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:108:3: note: in expansion of macro 'GIVE_TOKEN' 108 | GIVE_TOKEN; | ^~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C: In member function 'virtual void ptytty_proxy::login(int, bool, const char*)': /builddir/build/BUILD/libptytty-2.0/src/proxy.C:77:41: warning: ignoring return value of 'ssize_t read(int, void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 77 | # define NEED_TOKEN do { char ch; read (lock_fd, &ch , 1); } while (0) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:115:3: note: in expansion of macro 'NEED_TOKEN' 115 | NEED_TOKEN; | ^~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:125:9: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 125 | write (sock_fd, &cmd, sizeof (cmd)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:78:41: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 78 | # define GIVE_TOKEN write (lock_fd, &lock_fd, 1) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:127:3: note: in expansion of macro 'GIVE_TOKEN' 127 | GIVE_TOKEN; | ^~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C: In destructor 'ptytty_proxy::~ptytty_proxy()': /builddir/build/BUILD/libptytty-2.0/src/proxy.C:77:41: warning: ignoring return value of 'ssize_t read(int, void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 77 | # define NEED_TOKEN do { char ch; read (lock_fd, &ch , 1); } while (0) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:139:7: note: in expansion of macro 'NEED_TOKEN' 139 | NEED_TOKEN; | ^~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:146:13: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 146 | write (sock_fd, &cmd, sizeof (cmd)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:78:41: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 78 | # define GIVE_TOKEN write (lock_fd, &lock_fd, 1) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:148:7: note: in expansion of macro 'GIVE_TOKEN' 148 | GIVE_TOKEN; | ^~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C: In static member function 'static void ptytty::use_helper()': /builddir/build/BUILD/libptytty-2.0/src/proxy.C:261:13: warning: ignoring return value of 'int chdir(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result] 261 | chdir ("/"); | ~~~~~~^~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C: In function 'void serve()': /builddir/build/BUILD/libptytty-2.0/src/proxy.C:78:41: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 78 | # define GIVE_TOKEN write (lock_fd, &lock_fd, 1) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:160:7: note: in expansion of macro 'GIVE_TOKEN' 160 | GIVE_TOKEN; | ^~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:172:21: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 172 | write (sock_fd, &cmd.id, sizeof (cmd.id)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:184:21: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 184 | write (sock_fd, &cmd.id, sizeof (cmd.id)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:77:41: warning: ignoring return value of 'ssize_t read(int, void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 77 | # define NEED_TOKEN do { char ch; read (lock_fd, &ch , 1); } while (0) | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:210:7: note: in expansion of macro 'NEED_TOKEN' 210 | NEED_TOKEN; | ^~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C: In static member function 'static void ptytty::drop_privileges()': /builddir/build/BUILD/libptytty-2.0/src/proxy.C:337:13: warning: ignoring return value of 'int setresgid(__gid_t, __gid_t, __gid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 337 | setresgid (gid, gid, gid); | ~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C:338:13: warning: ignoring return value of 'int setresuid(__uid_t, __uid_t, __uid_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 338 | setresuid (uid, uid, uid); | ~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/libptytty-2.0/src/proxy.C: In member function 'ptytty_proxy::login(int, bool, char const*)': /builddir/build/BUILD/libptytty-2.0/src/proxy.C:123:11: warning: 'strncpy' specified bound 512 equals destination size [-Wstringop-truncation] 123 | strncpy (cmd.hostname, hostname, sizeof (cmd.hostname)); | ^ [7/9] : && /usr/bin/g++ -fPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -shared -Wl,-soname,libptytty.so.0 -o libptytty.so.0 CMakeFiles/ptytty.dir/src/c-api.C.o CMakeFiles/ptytty.dir/src/fdpass.C.o CMakeFiles/ptytty.dir/src/logging.C.o CMakeFiles/ptytty.dir/src/proxy.C.o CMakeFiles/ptytty.dir/src/ptytty.C.o && : [8/9] /usr/bin/cmake -E cmake_symlink_library libptytty.so.0 libptytty.so.0 libptytty.so && : [9/9] : && /usr/bin/gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 CMakeFiles/c-sample.dir/eg/c-sample.c.o -o c-sample -Wl,-rpath,/builddir/build/BUILD/libptytty-2.0/x86_64-OpenCloudOS-linux-gnu libptytty.so.0 && : + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.5NwOw2 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64 ++ dirname /builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64 + cd libptytty-2.0 + DESTDIR=/builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64 + /usr/bin/cmake --install x86_64-OpenCloudOS-linux-gnu -- Install configuration: "" -- Installing: /builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64/usr/lib64/libptytty.so.0 -- Installing: /builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64/usr/lib64/libptytty.so -- Installing: /builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64/usr/include/libptytty.h -- Installing: /builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64/usr/share/man/man3/libptytty.3 -- Installing: /builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64/usr/lib64/pkgconfig/libptytty.pc + /usr/bin/find-debuginfo -j32 --strict-build-id -m -i --build-id-seed 2.0-1.oc9 --unique-debug-suffix -2.0-1.oc9.x86_64 --unique-debug-src-base libptytty-2.0-1.oc9.x86_64 -S debugsourcefiles.list /builddir/build/BUILD/libptytty-2.0 extracting debug info from /builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64/usr/lib64/libptytty.so.0 84 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/OpenCloudOS/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/OpenCloudOS/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/OpenCloudOS/brp-mangle-shebangs + /usr/lib/rpm/OpenCloudOS/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/OpenCloudOS/brp-python-hardlink Processing files: libptytty-2.0-1.oc9.x86_64 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.YWAQip + umask 022 + cd /builddir/build/BUILD + cd libptytty-2.0 + LICENSEDIR=/builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64/usr/share/licenses/libptytty + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64/usr/share/licenses/libptytty + cp -pr COPYING /builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64/usr/share/licenses/libptytty + RPM_EC=0 ++ jobs -p + exit 0 Provides: libptytty = 2.0-1.oc9 libptytty(x86-64) = 2.0-1.oc9 libptytty.so.0()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_2.7)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgcc_s.so.1(GCC_3.3.1)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) rtld(GNU_HASH) Processing files: libptytty-devel-2.0-1.oc9.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.aa0lvj + umask 022 + cd /builddir/build/BUILD + cd libptytty-2.0 + DOCDIR=/builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64/usr/share/doc/libptytty-devel + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64/usr/share/doc/libptytty-devel + cp -pr Changes /builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64/usr/share/doc/libptytty-devel + cp -pr README /builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64/usr/share/doc/libptytty-devel + RPM_EC=0 ++ jobs -p + exit 0 Provides: libptytty-devel = 2.0-1.oc9 libptytty-devel(x86-64) = 2.0-1.oc9 pkgconfig(libptytty) = 2.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 libptytty.so.0()(64bit) Processing files: libptytty-debugsource-2.0-1.oc9.x86_64 Provides: libptytty-debugsource = 2.0-1.oc9 libptytty-debugsource(x86-64) = 2.0-1.oc9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: libptytty-debuginfo-2.0-1.oc9.x86_64 Provides: debuginfo(build-id) = 0797e8e2e62c9f0f155b26e76e1b337c18822e92 libptytty-debuginfo = 2.0-1.oc9 libptytty-debuginfo(x86-64) = 2.0-1.oc9 libptytty.so.0-2.0-1.oc9.x86_64.debug()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: libptytty-debugsource(x86-64) = 2.0-1.oc9 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/libptytty-2.0-1.oc9.x86_64 Wrote: /builddir/build/RPMS/libptytty-debugsource-2.0-1.oc9.x86_64.rpm Wrote: /builddir/build/RPMS/libptytty-devel-2.0-1.oc9.x86_64.rpm Wrote: /builddir/build/RPMS/libptytty-debuginfo-2.0-1.oc9.x86_64.rpm Wrote: /builddir/build/RPMS/libptytty-2.0-1.oc9.x86_64.rpm Child return code was: 0