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/nrpe.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-282331-27184/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=982gid=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/nrpe.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/nrpe-4.1.0-2.ocs23.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/nrpe.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-282331-27184/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=982gid=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/nrpe.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.pgN1Ag + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf nrpe-nrpe-4.1.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/nrpe-4.1.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd nrpe-nrpe-4.1.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/nrpe-0003-Include-etc-npre.d-config-directory.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/nrpe-0005-systemd-service.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/nrpe-configure-c99.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.4fThLM + 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 nrpe-nrpe-4.1.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' + 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' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2024-09-14 12:02:02.533061714 +0800 +++ ./configure 2024-09-14 12:02:02.559061800 +0800 @@ -2090,7 +2090,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + '[' 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 ./build-aux/config.sub + '[' -f /usr/lib/rpm/OpenCloudOS/config.sub ']' + /usr/bin/rm -f ./build-aux/config.sub ++ basename ./build-aux/config.sub + /usr/bin/cp -fv /usr/lib/rpm/OpenCloudOS/config.sub ./build-aux/config.sub '/usr/lib/rpm/OpenCloudOS/config.sub' -> './build-aux/config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./build-aux/config.guess + '[' -f /usr/lib/rpm/OpenCloudOS/config.guess ']' + /usr/bin/rm -f ./build-aux/config.guess ++ basename ./build-aux/config.guess + /usr/bin/cp -fv /usr/lib/rpm/OpenCloudOS/config.guess ./build-aux/config.guess '/usr/lib/rpm/OpenCloudOS/config.guess' -> './build-aux/config.guess' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld' ']' ++ find . -name ltmain.sh + ./configure --build=x86_64-opencloudos-linux-gnu --host=x86_64-opencloudos-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 --with-nrpe-port=5666 --with-nrpe-user=nrpe --with-nrpe-group=nrpe --with-piddir=/run/nrpe --bindir=/usr/sbin --libdir=/doesnt/matter/ --libexecdir=/usr/lib64/nagios/plugins --datadir=/usr/share/nagios --sysconfdir=/etc/nagios --localstatedir=/var/run/ --enable-command-args configure: WARNING: unrecognized options: --disable-dependency-tracking checking for a BSD-compatible install... /usr/bin/install -c checking what the operating system is ... linux checking what the distribution type is ... opencloudos checking what init system is being used ... ./configure: line 2913: ps: command not found unknown checking what inetd is being used ... ./configure: line 3041: ps: command not found unknown checking for which paths to use ... default checking for which init file to use ... unknown checking for which inetd files to use ... unknown checking for x86_64-opencloudos-linux-gnu-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 make sets $(MAKE)... yes 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 whether time.h and sys/time.h may both be included... yes checking for sys/wait.h that is POSIX.1 compatible... 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 ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... 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 getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking grp.h usability... yes checking grp.h presence... yes checking for grp.h... yes checking for inttypes.h... (cached) yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking for stdint.h... (cached) yes checking for strings.h... (cached) yes checking for string.h... (cached) yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking tcpd.h usability... no checking tcpd.h presence... no checking for tcpd.h... no checking for unistd.h... (cached) 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 socket.h usability... no checking socket.h presence... no checking for socket.h... no checking for sys/types.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking for sys/wait.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking for sys/stat.h... (cached) yes checking paths.h usability... yes checking paths.h presence... yes checking for paths.h... yes checking for an ANSI C-conforming const... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for mode_t... yes checking for pid_t... yes checking for size_t... yes checking return type of signal handlers... void checking for uid_t in sys/types.h... yes checking type of array argument to getgroups... gid_t checking size of int... 4 checking size of short... 2 checking size of long... 8 checking for uint32_t... yes checking for u_int32_t... yes checking for int32_t... yes checking for struct sockaddr_storage... yes checking for seteuid... yes checking for va_copy... yes checking for vsnprintf... yes checking for snprintf... yes checking for asprintf... yes checking for vasprintf... yes checking for C99 vsnprintf... yes checking for getopt_long... yes checking for main in -lnsl... no checking for socket in -lsocket... no checking check_for_tcpd=optional... checking for main in -lwrap... no checking for strdup... yes checking for strstr... yes checking for strtoul... yes checking for strtok_r... yes checking for initgroups... yes checking for closesocket... no checking for sigaction... yes checking for scandir... yes checking for socklen_t... yes checking for type of socket size... size_t checking for Kerberos include files... configure: WARNING: could not find include files checking for x86_64-opencloudos-linux-gnu-pkg-config... no checking for pkg-config... pkg-config checking whether compiling and linking against SSL works... yes checking for openssl... /bin/openssl *** Generating DH Parameters for SSL/TLS *** Generating DH parameters, 2048 bit long safe prime ...........................................................................................................................................................................................................................................................................................................................................+......................+............................................................................................................................................................+.......................................................+....................................................................................................................................................................................+......................................................................................................................................+...............................................................................+....................+.................................................................+.....................................+..............................................+...........................................................................................................+..................................................+........+.......................................................................+..................................+.......................................................................................................+............................................................................................................................+.................................................................................................................................................................................................................................................................................................................................+.................................+...............................................................................................................................................................................................................................................................................+...................................................................................................................................+....................+..................+........................+.............................................................................................................................+.....................................................................................................................+.......................................................................................................+.................................+....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................+............................+.............................................................................................................................+................................................................................+..........................................................+............................................................................................................................................................................+...........................................+......................+...........................+.......................................+..........................................................................................................+....................................................+.................................................................+...+......................................................................................................................+..............+............+.......................................+...........+...............................................................................................................................................................+.....................................................................................................................................................................................................................................................................................................+....................................................................................................................................................................................................................................................................................................................................................................................................................................................+...............................................+...................................+.......+............................................................+........................+..................................+.................................................................................................................................................................................................................................................+..................................................+...............................................................................................................................+............................................................+.......+.........+............................+...................................................................................................+.................................................................................................................+..........................................................+.............................................................+..................................+...............................................................+........................+......................................................................+....................................................................................................................................................................................................+...................+..............................................................................................................................................................................+..................................+........................+.......................................................................................+..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................+...................................................................................................................................+......+...................................................................................................................................................................................+.....................................................+............................+..........................+...+..........+.................................................................................................................................................................................+............+............................................................................................................................................................................................................+..............................+.................................................................................................................................................................................................................................................................................+............................................................................................++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++*++* checking for perl... /usr/bin/perl configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating nrpe.spec config.status: creating uninstall config.status: creating sample-config/nrpe.cfg config.status: creating startup/bsd-init config.status: creating startup/debian-init config.status: creating startup/default-init config.status: creating startup/default-inetd config.status: creating startup/default-service config.status: creating startup/default-socket config.status: creating startup/default-socket-svc config.status: creating startup/default-xinetd config.status: creating startup/mac-init.plist config.status: creating startup/mac-inetd.plist config.status: creating startup/newbsd-init config.status: creating startup/openbsd-init config.status: creating startup/openrc-conf config.status: creating startup/openrc-init config.status: creating startup/solaris-init.xml config.status: creating startup/solaris-inetd.xml config.status: creating startup/tmpfile.conf config.status: creating startup/upstart-init config.status: creating startup/rh-upstart-init config.status: creating include/common.h config.status: creating include/config.h configure: WARNING: unrecognized options: --disable-dependency-tracking *** Configuration summary for nrpe 4.1.0 2022-07-18 ***: General Options: ------------------------- NRPE port: 5666 NRPE user: nrpe NRPE group: nrpe Nagios user: nagios Nagios group: nagios Review the options above for accuracy. If they look okay, type 'make all' to compile the NRPE daemon and client or type 'make' to get a list of make options. + make -j32 all cd ./src/; make make[1]: Entering directory '/builddir/build/BUILD/nrpe-nrpe-4.1.0/src' 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 -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -lssl -lcrypto 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 -DHAVE_CONFIG_H -I ../include -I ./../include -o check_nrpe ./check_nrpe.c ./utils.c -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -lssl -lcrypto ./nrpe.c: In function 'main': ./nrpe.c:170:19: warning: unused variable 'y' [-Wunused-variable] 170 | uint32_t y; | ^ ./nrpe.c: In function 'init_ssl': ./nrpe.c:364:9: warning: enumeration value 'SSLv2' not handled in switch [-Wswitch] 364 | switch(sslprm.ssl_proto_ver) { | ^~~~~~ ./nrpe.c:364:9: warning: enumeration value 'SSLv2_plus' not handled in switch [-Wswitch] ./check_nrpe.c: In function 'setup_ssl': ./check_nrpe.c:906:9: warning: enumeration value 'SSL_Ver_Invalid' not handled in switch [-Wswitch] 906 | switch(sslprm.ssl_proto_ver) { | ^~~~~~ ./check_nrpe.c:906:9: warning: enumeration value 'SSLv2' not handled in switch [-Wswitch] ./check_nrpe.c:906:9: warning: enumeration value 'SSLv2_plus' not handled in switch [-Wswitch] ./nrpe.c: In function 'verify_callback': ./nrpe.c:775:19: warning: variable 'ssl' set but not used [-Wunused-but-set-variable] 775 | SSL *ssl; | ^~~ ./nrpe.c: In function 'process_metachars': ./nrpe.c:808:38: warning: left-hand operand of comma expression has no effect [-Wunused-value] 808 | for (i = 0, j = 0; i < length, j < length; i++, j++) { | ^ ./check_nrpe.c: In function 'connect_to_remote': ./check_nrpe.c:1153:30: warning: unused variable 'peer_cn' [-Wunused-variable] 1153 | char peer_cn[256], buffer[2048]; | ^~~~~~~ ./nrpe.c: In function 'read_config_file': ./nrpe.c:859:21: warning: unused variable 'st' [-Wunused-variable] 859 | struct stat st; | ^~ ./check_nrpe.c: In function 'verify_callback': ./check_nrpe.c:1629:14: warning: variable 'ssl' set but not used [-Wunused-but-set-variable] 1629 | SSL *ssl; | ^~~ ./nrpe.c: In function 'init': ./nrpe.c:246:9: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 246 | asprintf(&env_string, "NRPE_MULTILINESUPPORT=1"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./nrpe.c:248:9: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 248 | asprintf(&env_string, "NRPE_PROGRAMVERSION=%s", PROGRAM_VERSION); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./nrpe.c:41: ../include/acl.h: At top level: ../include/acl.h:61:39: warning: 'dns_acl_prev' defined but not used [-Wunused-variable] 61 | static struct dns_acl *dns_acl_head, *dns_acl_prev; | ^~~~~~~~~~~~ ../include/acl.h:61:24: warning: 'dns_acl_head' defined but not used [-Wunused-variable] 61 | static struct dns_acl *dns_acl_head, *dns_acl_prev; | ^~~~~~~~~~~~ ../include/acl.h:60:37: warning: 'ip_acl_prev' defined but not used [-Wunused-variable] 60 | static struct ip_acl *ip_acl_head, *ip_acl_prev; | ^~~~~~~~~~~ ../include/acl.h:60:23: warning: 'ip_acl_head' defined but not used [-Wunused-variable] 60 | static struct ip_acl *ip_acl_head, *ip_acl_prev; | ^~~~~~~~~~~ ./nrpe.c: In function 'read_config_dir': ./nrpe.c:1179:68: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 254 [-Wformat-truncation=] 1179 | snprintf(config_file, sizeof(config_file) - 1, "%s/%s", dirname, dirfile->d_name); | ^~ In file included from /usr/include/stdio.h:964, from ../include/config.h:31, from ./nrpe.c:37: In function 'snprintf', inlined from 'read_config_dir' at ./nrpe.c:1179:3: /usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 255 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ./nrpe.c: In function 'my_system': ./nrpe.c:2369:25: warning: 'strncpy' output may be truncated copying 1035 bytes from a string of length 2047 [-Wstringop-truncation] 2369 | strncpy(*output, buffer, output_size - 1); | ^ ./utils.c: In function 'clean_environ': ./utils.c:273:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 273 | asprintf(&keep, "%s,NRPE_MULTILINESUPPORT,NRPE_PROGRAMVERSION", keep_env_vars); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./utils.c:275:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 275 | asprintf(&keep, "NRPE_MULTILINESUPPORT,NRPE_PROGRAMVERSION"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./utils.c: In function 'clean_environ': ./utils.c:273:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 273 | asprintf(&keep, "%s,NRPE_MULTILINESUPPORT,NRPE_PROGRAMVERSION", keep_env_vars); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./utils.c:275:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result] 275 | asprintf(&keep, "NRPE_MULTILINESUPPORT,NRPE_PROGRAMVERSION"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./acl.c: In function 'is_an_allowed_host': ./acl.c:576:74: warning: unused variable 'resolved' [-Wunused-variable] 576 | struct in6_addr *resolved = &(((struct sockaddr_in6 *) (ai->ai_addr))->sin6_addr); | ^~~~~~~~ make[1]: Leaving directory '/builddir/build/BUILD/nrpe-nrpe-4.1.0/src' *** Compile finished *** You can now continue with the installation or upgrade process. Read the PDF documentation (docs/NRPE.pdf) for information on the next steps you should take to complete the installation or upgrade. + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.lBp6Jf + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64 ++ dirname /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64 + cd nrpe-nrpe-4.1.0 + install -D -m 0644 -p startup/default-service /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/lib/systemd/system/nrpe.service + install -D -p -m 0644 sample-config/nrpe.cfg /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64//etc/nagios/nrpe.cfg + install -D -p -m 0755 src/nrpe /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64//usr/sbin/nrpe + install -D -p -m 0755 src/check_nrpe /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64//usr/lib64/nagios/plugins/check_nrpe + install -D -p -m 0644 /builddir/build/SOURCES/nrpe.sysconfig /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64//etc/sysconfig/nrpe + install -d /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/etc/nrpe.d + install -d /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/var/run/nrpe + install -D -p -m 0644 /builddir/build/SOURCES/nrpe-tmpfiles.conf /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/lib/tmpfiles.d/nrpe.conf + /usr/bin/find-debuginfo -j32 --strict-build-id -m -i --build-id-seed 4.1.0-2.ocs23 --unique-debug-suffix -4.1.0-2.ocs23.x86_64 --unique-debug-src-base nrpe-4.1.0-2.ocs23.x86_64 -S debugsourcefiles.list /builddir/build/BUILD/nrpe-nrpe-4.1.0 extracting debug info from /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/lib64/nagios/plugins/check_nrpe extracting debug info from /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/sbin/nrpe 358 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: nrpe-4.1.0-2.ocs23.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.vZpers + umask 022 + cd /builddir/build/BUILD + cd nrpe-nrpe-4.1.0 + DOCDIR=/builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/doc/nrpe + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/doc/nrpe + cp -pr CHANGELOG.md /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/doc/nrpe + cp -pr LEGAL /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/doc/nrpe + cp -pr README.md /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/doc/nrpe + cp -pr README.SSL.md /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/doc/nrpe + cp -pr SECURITY.md /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/doc/nrpe + cp -pr docs/NRPE.pdf /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/doc/nrpe + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.g71B6n + umask 022 + cd /builddir/build/BUILD + cd nrpe-nrpe-4.1.0 + LICENSEDIR=/builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/licenses/nrpe + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/licenses/nrpe + cp -pr LICENSE.md /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/licenses/nrpe + RPM_EC=0 ++ jobs -p + exit 0 Provides: config(nrpe) = 4.1.0-2.ocs23 nagios-nrpe = 4.1.0-2.ocs23 nrpe = 4.1.0-2.ocs23 nrpe(x86-64) = 4.1.0-2.ocs23 Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(pre): /bin/sh /usr/sbin/useradd /usr/sbin/usermod Requires(post): /bin/sh systemd Requires(preun): /bin/sh systemd Requires(postun): /bin/sh systemd Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.15)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.4)(64bit) libcrypto.so.3()(64bit) libcrypto.so.3(OPENSSL_3.0.0)(64bit) libssl.so.3()(64bit) libssl.so.3(OPENSSL_3.0.0)(64bit) rtld(GNU_HASH) Processing files: nagios-plugins-nrpe-4.1.0-2.ocs23.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.sWO2fp + umask 022 + cd /builddir/build/BUILD + cd nrpe-nrpe-4.1.0 + DOCDIR=/builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/doc/nagios-plugins-nrpe + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/doc/nagios-plugins-nrpe + cp -pr CHANGELOG.md /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/doc/nagios-plugins-nrpe + cp -pr LEGAL /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/doc/nagios-plugins-nrpe + cp -pr README.md /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/doc/nagios-plugins-nrpe + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.lnMuPw + umask 022 + cd /builddir/build/BUILD + cd nrpe-nrpe-4.1.0 + LICENSEDIR=/builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/licenses/nagios-plugins-nrpe + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/licenses/nagios-plugins-nrpe + cp -pr LICENSE.md /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64/usr/share/licenses/nagios-plugins-nrpe + RPM_EC=0 ++ jobs -p + exit 0 Provides: check_nrpe = 4.1.0-2.ocs23 nagios-plugins-nrpe = 4.1.0-2.ocs23 nagios-plugins-nrpe(x86-64) = 4.1.0-2.ocs23 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.15)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.4)(64bit) libcrypto.so.3()(64bit) libcrypto.so.3(OPENSSL_3.0.0)(64bit) libssl.so.3()(64bit) libssl.so.3(OPENSSL_3.0.0)(64bit) rtld(GNU_HASH) Processing files: nrpe-debugsource-4.1.0-2.ocs23.x86_64 Provides: nrpe-debugsource = 4.1.0-2.ocs23 nrpe-debugsource(x86-64) = 4.1.0-2.ocs23 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: nrpe-debuginfo-4.1.0-2.ocs23.x86_64 Provides: debuginfo(build-id) = 512ebf0b3ec63dd06aec42e7275aec9821a0aeab nrpe-debuginfo = 4.1.0-2.ocs23 nrpe-debuginfo(x86-64) = 4.1.0-2.ocs23 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: nrpe-debugsource(x86-64) = 4.1.0-2.ocs23 Processing files: nagios-plugins-nrpe-debuginfo-4.1.0-2.ocs23.x86_64 Provides: debuginfo(build-id) = 1a8daeae29111d0ae5eba944ad88ab869e4312b8 nagios-plugins-nrpe-debuginfo = 4.1.0-2.ocs23 nagios-plugins-nrpe-debuginfo(x86-64) = 4.1.0-2.ocs23 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: nrpe-debugsource(x86-64) = 4.1.0-2.ocs23 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/nrpe-4.1.0-2.ocs23.x86_64 Wrote: /builddir/build/RPMS/nrpe-debugsource-4.1.0-2.ocs23.x86_64.rpm Wrote: /builddir/build/RPMS/nagios-plugins-nrpe-4.1.0-2.ocs23.x86_64.rpm Wrote: /builddir/build/RPMS/nagios-plugins-nrpe-debuginfo-4.1.0-2.ocs23.x86_64.rpm Wrote: /builddir/build/RPMS/nrpe-debuginfo-4.1.0-2.ocs23.x86_64.rpm Wrote: /builddir/build/RPMS/nrpe-4.1.0-2.ocs23.x86_64.rpm Child return code was: 0