Mock Version: 1.2.17 Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i386 --nodeps /builddir/build/SPECS/nsca.spec'], chrootPath='/var/lib/mock/centos5-rutgers-staging-build-5638-8738/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=86400logger=uid=486) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i386 --nodeps /builddir/build/SPECS/nsca.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False warning: Could not canonicalize hostname: opus3 Building target platforms: i386 Building for target i386 Wrote: /builddir/build/SRPMS/nsca-2.9.2-7.ru.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target i386 --nodeps /builddir/build/SPECS/nsca.spec'], chrootPath='/var/lib/mock/centos5-rutgers-staging-build-5638-8738/root'shell=Falseuid=486env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=86400private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target i386 --nodeps /builddir/build/SPECS/nsca.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: i386 Building for target i386 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.93603 + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf nsca-2.9.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/nsca-2.9.2.tar.gz + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd nsca-2.9.2 ++ /usr/bin/id -u + '[' 486 = 0 ']' ++ /usr/bin/id -u + '[' 486 = 0 ']' + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (nsca-2.9-initscript.patch):' Patch #0 (nsca-2.9-initscript.patch): + patch -p0 -b --suffix .initscript -s + echo 'Patch #1 (nsca-2.9.2-confpath.patch):' Patch #1 (nsca-2.9.2-confpath.patch): + patch -p1 -b --suffix .confpath -s + 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.93603 + umask 022 + cd /builddir/build/BUILD + cd nsca-2.9.2 + LANG=C + export LANG + unset DISPLAY + CFLAGS='-O2 -gdwarf-2 -g3 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS='-O2 -gdwarf-2 -g3 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' + export CXXFLAGS + FFLAGS='-O2 -gdwarf-2 -g3 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' + export FFLAGS ++ 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 ']' + /bin/rm -f ./config.guess ++ basename ./config.guess + /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 ']' + /bin/rm -f ./config.sub ++ basename ./config.sub + /bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub `/usr/lib/rpm/redhat/config.sub' -> `./config.sub' + ./configure --build=i386-koji-linux-gnu --host=i386-koji-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --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... i386-koji-linux-gnu checking host system type... i386-koji-linux-gnu checking for i386-koji-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 make sets $(MAKE)... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /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 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 for working volatile... 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... 4 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 sigaction... yes checking for sig_atomic_t... 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: WARNING: 'subst.in' seems to ignore the --datarootdir setting config.status: creating src/Makefile config.status: creating package/solaris/Makefile config.status: creating init-script config.status: creating sample-config/nsca.cfg config.status: creating sample-config/send_nsca.cfg config.status: creating sample-config/nsca.xinetd config.status: creating include/config.h *** Configuration summary for nsca 2.9.2 12-07-2016 ***: 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.9.2/src' gcc -O2 -gdwarf-2 -g3 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DHAVE_LIBMCRYPT -I/usr/include -DHAVE_CONFIG_H -o nsca ./nsca.c ./netutils.c ./utils.c -L/usr/lib -lmcrypt -lnsl gcc -O2 -gdwarf-2 -g3 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DHAVE_LIBMCRYPT -I/usr/include -DHAVE_CONFIG_H -o send_nsca ./send_nsca.c ./netutils.c ./utils.c -L/usr/lib -lmcrypt -lnsl ./nsca.c: In function 'main': ./nsca.c:156: warning: ignoring return value of 'getcwd', declared with attribute warn_unused_result ./nsca.c: In function 'read_config_file': ./nsca.c:492: warning: implicit declaration of function 'asprintf' ./send_nsca.c: In function 'main': ./send_nsca.c:74: warning: unused variable 'inputptr' ./send_nsca.c:67: warning: unused variable 'temp_ptr' ./send_nsca.c:65: warning: unused variable 'input' ./nsca.c: In function 'write_checkresult_file': ./nsca.c:1262: warning: format '%d' expects type 'int', but argument 4 has type 'time_t' ./nsca.c:1237: warning: unused variable 'output_file' ./send_nsca.c: In function 'alarm_handler': ./send_nsca.c:483: warning: ignoring return value of 'write', declared with attribute warn_unused_result ./send_nsca.c: In function 'read_config_file': ./send_nsca.c:494: warning: unused variable 'temp_buffer' ./nsca.c: In function 'write_pid_file': ./nsca.c:1466: warning: ignoring return value of 'write', declared with attribute warn_unused_result ./nsca.c:1467: warning: ignoring return value of 'fchown', declared with attribute warn_unused_result./send_nsca.c: At top level: ./../include/utils.h:57: warning: 'generate_transmitted_iv' declared 'static' but never defined ./nsca.c: In function 'drop_privileges': ./nsca.c:1561: warning: unused variable 'pw' ./nsca.c:1560: warning: unused variable 'grp' ./nsca.c: In function 'sighandler': ./nsca.c:1626: warning: unused variable 'temp_buffer' ./nsca.c: In function 'find_rhand': ./nsca.c:740: warning: control reaches end of non-void function ./nsca.c: In function 'find_whand': ./nsca.c:756: warning: control reaches end of non-void function ./nsca.c: At top level: ./../include/utils.h:57: warning: 'generate_transmitted_iv' declared 'static' but never defined ./nsca.c: In function 'handle_connection_read': ./nsca.c:1177: warning: 'current_time' is used uninitialized in this function ./nsca.c:1177: warning: 'packet_time' is used uninitialized in this function make[1]: Leaving directory `/builddir/build/BUILD/nsca-2.9.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.57526 + exit 0 + umask 022 + cd /builddir/build/BUILD + cd nsca-2.9.2 + LANG=C + export LANG + unset DISPLAY + install -Dp -m 0755 src/nsca /var/tmp/nsca-2.9.2-7.ru-root-mockbuild/usr/sbin/nsca + install -Dp -m 0755 src/send_nsca /var/tmp/nsca-2.9.2-7.ru-root-mockbuild/usr/sbin/send_nsca + install -Dp -m 0644 sample-config/nsca.cfg /var/tmp/nsca-2.9.2-7.ru-root-mockbuild/etc/nagios/nsca.cfg + install -Dp -m 0644 sample-config/send_nsca.cfg /var/tmp/nsca-2.9.2-7.ru-root-mockbuild/etc/nagios/send_nsca.cfg + install -Dp -m 0644 /builddir/build/SOURCES/nsca-sysconfig /var/tmp/nsca-2.9.2-7.ru-root-mockbuild/etc/sysconfig/nsca + install -Dp -m 0755 /builddir/build/SOURCES/nsca-initscript /var/tmp/nsca-2.9.2-7.ru-root-mockbuild/etc/rc.d/init.d/nsca + /usr/lib/rpm/find-debuginfo.sh /builddir/build/BUILD/nsca-2.9.2 extracting debug info from /var/tmp/nsca-2.9.2-7.ru-root-mockbuild/usr/sbin/nsca extracting debug info from /var/tmp/nsca-2.9.2-7.ru-root-mockbuild/usr/sbin/send_nsca 203 blocks + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-python-bytecompile + /usr/lib/rpm/redhat/brp-java-repack-jars Processing files: nsca-2.9.2-7.ru Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.57526 + umask 022 + cd /builddir/build/BUILD + cd nsca-2.9.2 + DOCDIR=/var/tmp/nsca-2.9.2-7.ru-root-mockbuild/usr/share/doc/nsca-2.9.2 + export DOCDIR + rm -rf /var/tmp/nsca-2.9.2-7.ru-root-mockbuild/usr/share/doc/nsca-2.9.2 + /bin/mkdir -p /var/tmp/nsca-2.9.2-7.ru-root-mockbuild/usr/share/doc/nsca-2.9.2 + cp -pr Changelog LEGAL README SECURITY /var/tmp/nsca-2.9.2-7.ru-root-mockbuild/usr/share/doc/nsca-2.9.2 + exit 0 Provides: config(nsca) = 2.9.2-7.ru Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh /sbin/chkconfig Requires(preun): /bin/sh /sbin/chkconfig /sbin/service Requires(postun): /bin/sh /sbin/service Requires: /bin/sh config(nsca) = 2.9.2-7.ru libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4) libmcrypt.so.4 libnsl.so.1 nagios rtld(GNU_HASH) Processing files: nsca-client-2.9.2-7.ru Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.57526 + umask 022 + cd /builddir/build/BUILD + cd nsca-2.9.2 + DOCDIR=/var/tmp/nsca-2.9.2-7.ru-root-mockbuild/usr/share/doc/nsca-client-2.9.2 + export DOCDIR + rm -rf /var/tmp/nsca-2.9.2-7.ru-root-mockbuild/usr/share/doc/nsca-client-2.9.2 + /bin/mkdir -p /var/tmp/nsca-2.9.2-7.ru-root-mockbuild/usr/share/doc/nsca-client-2.9.2 + cp -pr Changelog LEGAL README SECURITY /var/tmp/nsca-2.9.2-7.ru-root-mockbuild/usr/share/doc/nsca-client-2.9.2 + exit 0 Provides: config(nsca-client) = 2.9.2-7.ru Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: config(nsca-client) = 2.9.2-7.ru libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.4) libc.so.6(GLIBC_2.4) libmcrypt.so.4 libnsl.so.1 nagios-common rtld(GNU_HASH) Processing files: nsca-debuginfo-2.9.2-7.ru Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/nsca-2.9.2-7.ru-root-mockbuild warning: Could not canonicalize hostname: opus3 Wrote: /builddir/build/RPMS/nsca-2.9.2-7.ru.i386.rpm Wrote: /builddir/build/RPMS/nsca-client-2.9.2-7.ru.i386.rpm Wrote: /builddir/build/RPMS/nsca-debuginfo-2.9.2-7.ru.i386.rpm Child return code was: 0