Mock Version: 1.1.41 Mock Version: 1.1.41 ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/nsca.spec'], False, '/var/lib/mock/centos7-rutgers-staging-build-5673-8794/root/', None, 86400, True, False, 486, 495, None, False, {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}, logger=) Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/nsca.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} warning: bogus date in %changelog: Wed Feb 02 2008 Xavier Bachelot - 2.7.2-1 Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/nsca-2.7.2-9.ru7.src.rpm Child return code was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/nsca.spec'], False, '/var/lib/mock/centos7-rutgers-staging-build-5673-8794/root/', None, 86400, True, False, 486, 495, None, False, {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}, logger=) Executing command: ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/nsca.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.wFb6fZ warning: bogus date in %changelog: Wed Feb 02 2008 Xavier Bachelot - 2.7.2-1 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf nsca-2.7.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/nsca-2.7.2.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd nsca-2.7.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (nsca-2.7.2-initscript.patch): + echo 'Patch #0 (nsca-2.7.2-initscript.patch):' + /usr/bin/cat /builddir/build/SOURCES/nsca-2.7.2-initscript.patch + /usr/bin/patch -p0 -b --suffix .initscript --fuzz=0 patching file init-script.in Patch #1 (nsca-2.7.2-confpath.patch): + echo 'Patch #1 (nsca-2.7.2-confpath.patch):' + /usr/bin/cat /builddir/build/SOURCES/nsca-2.7.2-confpath.patch + /usr/bin/patch -p1 -b --suffix .confpath --fuzz=0 patching file src/send_nsca.c + sed -i -e 's|^command_file=.*|command_file=/var/spool/nagios/cmd/nagios.cmd|' -e 's|^alternate_dump_file=.*|alternate_dump_file=/var/spool/nagios/cmd/nsca.dump|' sample-config/nsca.cfg.in + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.tgo2iH + umask 022 + cd /builddir/build/BUILD + cd nsca-2.7.2 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro ' + export LDFLAGS + '[' 1 == 1 ']' + '[' x86_64 == ppc64le ']' ++ find . -name config.guess -o -name config.sub + for i in '$(find . -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' + for i in '$(find . -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' + ./configure --build=x86_64-koji-linux-gnu --host=x86_64-koji-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 --sysconfdir=/etc/nagios --localstatedir=/var/log/nagios --with-nsca-user=nagios --with-nsca-grp=nagios --with-nsca-port=5667 checking for a BSD-compatible install... /usr/bin/install -c checking build system type... x86_64-koji-linux-gnu checking host system type... x86_64-koji-linux-gnu checking for x86_64-koji-linux-gnu-gcc... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... 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 ANSI C... none needed checking whether make sets $(MAKE)... yes checking how to run the C preprocessor... gcc -E checking for egrep... 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 db.h usability... no checking db.h presence... no checking for db.h... no checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.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 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 regex.h usability... yes checking regex.h presence... yes checking for regex.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 sys/config.h usability... no checking sys/config.h presence... no checking for sys/config.h... no checking sys/int_types.h usability... no checking sys/int_types.h presence... no checking for sys/int_types.h... no checking sys/poll.h usability... yes checking sys/poll.h presence... yes checking for sys/poll.h... yes 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 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 for sys/wait.h... (cached) 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 for int... yes checking size of int... 4 checking for short... yes checking size of short... 2 checking for long... yes checking size of long... 8 checking for uint32_t... yes checking for u_int32_t... yes checking for int32_t... yes checking for main in -lnsl... yes checking for socket in -lsocket... no checking for main in -lwrap... no checking for strdup... yes checking for strstr... yes checking for strtoul... yes checking for socklen_t... yes checking for type of socket size... size_t checking for libmcrypt-config... /usr/bin/libmcrypt-config checking for libmcrypt - version >= 2.4.11... yes checking for perl... /usr/bin/perl configure: creating ./config.status config.status: creating Makefile config.status: creating subst config.status: creating src/Makefile config.status: creating include/config.h *** Configuration summary for nsca 2.7.2 07-03-2007 ***: General Options: ------------------------- NSCA port: 5667 NSCA user: nagios NSCA group: nagios Review the options above for accuracy. If they look okay, type 'make all' to compile the NSCA daemon and client. + make -j2 all cd ./src/; make all ; cd .. make[1]: Entering directory `/builddir/build/BUILD/nsca-2.7.2/src' gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DHAVE_LIBMCRYPT -I/usr/include -DHAVE_CONFIG_H -o nsca nsca.c netutils.c utils.c -Wl,-z,relro -L/usr/lib64 -lmcrypt -lnsl gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DHAVE_LIBMCRYPT -I/usr/include -DHAVE_CONFIG_H -o send_nsca send_nsca.c netutils.c utils.c -Wl,-z,relro -L/usr/lib64 -lmcrypt -lnsl send_nsca.c: In function 'main': send_nsca.c:274:4: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] printf("Warning: Sent only %d of %d bytes to host\n",rc,sizeof(send_packet)); ^ send_nsca.c:65:8: warning: unused variable 'temp_ptr' [-Wunused-variable] char *temp_ptr; ^ send_nsca.c: In function 'read_init_packet': nsca.c: In function 'handle_connection': nsca.c:917:17: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] syslog(LOG_ERR,"Only able to send %d of %d bytes of init packet to client\n",rc,sizeof(send_packet)); ^ send_nsca.c:346:17: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] printf("Error: Init packet from server was too short (%d bytes received, %d expected)\n",bytes_to_recv,sizeof(receive_packet)); ^ nsca.c: In function 'handle_connection_read': nsca.c:985:17: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] syslog(LOG_ERR,"Data sent from client was too short (%d < %d), aborting...",bytes_to_recv,sizeof(receive_packet)); ^ send_nsca.c: In function 'read_config_file': send_nsca.c:466:8: warning: unused variable 'temp_buffer' [-Wunused-variable] char *temp_buffer; ^ In file included from send_nsca.c:21:0: send_nsca.c: At top level: ../include/utils.h:56:13: warning: 'generate_transmitted_iv' declared 'static' but never defined [-Wunused-function] static void generate_transmitted_iv(char *transmitted_iv); ^ nsca.c: In function 'drop_privileges': nsca.c:1354:17: warning: unused variable 'pw' [-Wunused-variable] struct passwd *pw; ^ nsca.c:1353:16: warning: unused variable 'grp' [-Wunused-variable] struct group *grp; ^ nsca.c: In function 'sighandler': nsca.c:1419:7: warning: unused variable 'temp_buffer' [-Wunused-variable] char temp_buffer[MAX_INPUT_BUFFER]; ^ In file included from nsca.c:21:0: nsca.c: At top level: ../include/utils.h:56:13: warning: 'generate_transmitted_iv' declared 'static' but never defined [-Wunused-function] static void generate_transmitted_iv(char *transmitted_iv); ^ nsca.c: In function 'main': nsca.c:145:9: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result [-Wunused-result] getcwd(config_file,sizeof(config_file)); ^ nsca.c: In function 'write_pid_file': nsca.c:1259:8: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(fd,pbuf,strlen(pbuf)); ^ nsca.c:1260:9: warning: ignoring return value of 'fchown', declared with attribute warn_unused_result [-Wunused-result] fchown(fd,usr,grp); ^ nsca.c: In function 'find_rhand': nsca.c:604:9: warning: control reaches end of non-void function [-Wreturn-type] } ^ nsca.c: In function 'find_whand': nsca.c:620:9: warning: control reaches end of non-void function [-Wreturn-type] } ^ make[1]: Leaving directory `/builddir/build/BUILD/nsca-2.7.2/src' *** Compile finished *** If the compile finished without any errors, you should find client and server binaries in the src/ subdirectory. Read the README file for more information on installing the binaries, creating configuration files, and using the server and client. Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.3ZdmMN + exit 0 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64 ++ dirname /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64 + cd nsca-2.7.2 + rm -rf /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64 + install -Dp -m 0755 src/nsca /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/usr/sbin/nsca + install -Dp -m 0755 src/send_nsca /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/usr/sbin/send_nsca + install -Dp -m 0644 sample-config/nsca.cfg /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/etc/nagios/nsca.cfg + install -Dp -m 0644 sample-config/send_nsca.cfg /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/etc/nagios/send_nsca.cfg + install -Dp -m 0644 /builddir/build/SOURCES/nsca-sysconfig /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/etc/sysconfig/nsca + install -Dp -m 0644 /builddir/build/SOURCES/nsca.service /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/usr/lib/systemd/system/nsca.service + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/nsca-2.7.2 extracting debug info from /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/usr/sbin/send_nsca extracting debug info from /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/usr/sbin/nsca /usr/lib/rpm/sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. 173 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: nsca-2.7.2-9.ru7.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ReE9nW + umask 022 + cd /builddir/build/BUILD + cd nsca-2.7.2 + DOCDIR=/builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/usr/share/doc/nsca-2.7.2 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/usr/share/doc/nsca-2.7.2 + cp -pr Changelog /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/usr/share/doc/nsca-2.7.2 + cp -pr LEGAL /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/usr/share/doc/nsca-2.7.2 + cp -pr README /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/usr/share/doc/nsca-2.7.2 + cp -pr SECURITY /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/usr/share/doc/nsca-2.7.2 + exit 0 Provides: config(nsca) = 2.7.2-9.ru7 nsca = 2.7.2-9.ru7 nsca(x86-64) = 2.7.2-9.ru7 Requires(interp): /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(post): /bin/sh systemd-units Requires(preun): /bin/sh systemd-units Requires(postun): /bin/sh systemd-units Requires: libc.so.6()(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.4)(64bit) libmcrypt.so.4()(64bit) libnsl.so.1()(64bit) rtld(GNU_HASH) Processing files: nsca-client-2.7.2-9.ru7.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.sMF3i5 + umask 022 + cd /builddir/build/BUILD + cd nsca-2.7.2 + DOCDIR=/builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/usr/share/doc/nsca-client-2.7.2 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/usr/share/doc/nsca-client-2.7.2 + cp -pr Changelog /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/usr/share/doc/nsca-client-2.7.2 + cp -pr LEGAL /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/usr/share/doc/nsca-client-2.7.2 + cp -pr README /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/usr/share/doc/nsca-client-2.7.2 + cp -pr SECURITY /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64/usr/share/doc/nsca-client-2.7.2 + exit 0 Provides: config(nsca-client) = 2.7.2-9.ru7 nsca-client = 2.7.2-9.ru7 nsca-client(x86-64) = 2.7.2-9.ru7 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.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libmcrypt.so.4()(64bit) libnsl.so.1()(64bit) rtld(GNU_HASH) Processing files: nsca-debuginfo-2.7.2-9.ru7.x86_64 Provides: nsca-debuginfo = 2.7.2-9.ru7 nsca-debuginfo(x86-64) = 2.7.2-9.ru7 Requires(rpmlib): rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64 Wrote: /builddir/build/RPMS/nsca-2.7.2-9.ru7.x86_64.rpm Wrote: /builddir/build/RPMS/nsca-client-2.7.2-9.ru7.x86_64.rpm Wrote: /builddir/build/RPMS/nsca-debuginfo-2.7.2-9.ru7.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.3VZxxG + umask 022 + cd /builddir/build/BUILD + cd nsca-2.7.2 + rm -rf /builddir/build/BUILDROOT/nsca-2.7.2-9.ru7.x86_64 + exit 0 Child return code was: 0 LEAVE do -->