Mock Version: 1.2.12 ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/grok.spec'], chrootPath='/var/lib/mock/epel-7-x86_64-mockbuilder-9785/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=0logger=uid=1001) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/grok.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 error: Macro %py2_install has unterminated body error: Macro %py2_install has unterminated body warning: Could not canonicalize hostname: copr-builder-394111408 Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/grok-0.9.2-2.el7.centos.src.rpm error: Macro %py2_install has unterminated body error: Macro %py2_install has unterminated body Child return code was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/grok.spec '], chrootPath='/var/lib/mock/epel-7-x86_64-mockbuilder-9785/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=0logger=uid=1001) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/grok.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 error: Macro %py2_install has unterminated body error: Macro %py2_install has unterminated body Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.H9w0Ha + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf grok-0.9.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/v0.9.2.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd grok-0.9.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (grok-28d5706.patch):' Patch #0 (grok-28d5706.patch): + /usr/bin/cat /builddir/build/SOURCES/grok-28d5706.patch + /usr/bin/patch -p1 --fuzz=0 patching file ruby/INSTALL patching file ruby/Rakefile patching file ruby/examples/grok-web.rb patching file ruby/examples/pattern-discovery.rb patching file ruby/examples/test.rb patching file ruby/grok.gemspec patching file ruby/lib/Grok.rb patching file ruby/lib/grok-pure.rb patching file ruby/lib/grok.rb patching file ruby/lib/grok/c-ext/match.rb patching file ruby/lib/grok/c-ext/pile.rb patching file ruby/lib/grok/pure/match.rb patching file ruby/lib/grok/pure/pile.rb patching file ruby/patterns/pure-ruby/base patching file ruby/patterns/pure-ruby/java patching file ruby/patterns/pure-ruby/ruby patching file ruby/sample.rb patching file ruby/test/Makefile patching file ruby/test/ffi-ruby/Makefile patching file ruby/test/ffi-ruby/alltests.rb patching file ruby/test/ffi-ruby/general/basic_test.rb patching file ruby/test/ffi-ruby/general/captures_test.rb patching file ruby/test/ffi-ruby/patterns/day.rb patching file ruby/test/ffi-ruby/patterns/host.rb patching file ruby/test/ffi-ruby/patterns/ip.input patching file ruby/test/ffi-ruby/patterns/ip.rb patching file ruby/test/ffi-ruby/patterns/iso8601.rb patching file ruby/test/ffi-ruby/patterns/month.rb patching file ruby/test/ffi-ruby/patterns/number.rb patching file ruby/test/ffi-ruby/patterns/path.rb patching file ruby/test/ffi-ruby/patterns/prog.rb patching file ruby/test/ffi-ruby/patterns/quotedstring.rb patching file ruby/test/ffi-ruby/patterns/uri.rb patching file ruby/test/ffi-ruby/regression/grokmatch-subject-garbagecollected-early.rb patching file ruby/test/ffi-ruby/run.sh patching file ruby/test/ffi-ruby/speedtest.rb patching file ruby/test/pure-ruby/Makefile patching file ruby/test/pure-ruby/alltests.rb patching file ruby/test/pure-ruby/general/basic_test.rb patching file ruby/test/pure-ruby/general/captures_test.rb patching file ruby/test/pure-ruby/patterns/day.rb patching file ruby/test/pure-ruby/patterns/host.rb patching file ruby/test/pure-ruby/patterns/ip.input patching file ruby/test/pure-ruby/patterns/ip.rb patching file ruby/test/pure-ruby/patterns/iso8601.rb patching file ruby/test/pure-ruby/patterns/month.rb patching file ruby/test/pure-ruby/patterns/number.rb patching file ruby/test/pure-ruby/patterns/path.rb patching file ruby/test/pure-ruby/patterns/prog.rb patching file ruby/test/pure-ruby/patterns/quotedstring.rb patching file ruby/test/pure-ruby/patterns/uri.rb patching file ruby/test/pure-ruby/run.sh patching file ruby/test/pure-ruby/speedtest.rb + echo 'Patch #1 (grok-1429ad8.patch):' Patch #1 (grok-1429ad8.patch): + /usr/bin/cat /builddir/build/SOURCES/grok-1429ad8.patch + /usr/bin/patch -p1 --fuzz=0 patching file grokre.c + echo 'Patch #2 (grok-c6cfeb5.patch):' Patch #2 (grok-c6cfeb5.patch): + /usr/bin/cat /builddir/build/SOURCES/grok-c6cfeb5.patch + /usr/bin/patch -p1 --fuzz=0 patching file patterns/base + echo 'Patch #3 (grok-06c4f30.patch):' Patch #3 (grok-06c4f30.patch): + /usr/bin/cat /builddir/build/SOURCES/grok-06c4f30.patch + /usr/bin/patch -p1 --fuzz=0 patching file patterns/nagios + echo 'Patch #4 (grok-f440e9b.patch):' Patch #4 (grok-f440e9b.patch): + /usr/bin/cat /builddir/build/SOURCES/grok-f440e9b.patch + /usr/bin/patch -p1 --fuzz=0 patching file Makefile + echo 'Patch #5 (grok-44ce937.patch):' Patch #5 (grok-44ce937.patch): + /usr/bin/cat /builddir/build/SOURCES/grok-44ce937.patch + /usr/bin/patch -p1 --fuzz=0 patching file grokre.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.wXibTM + umask 022 + cd /builddir/build/BUILD + cd grok-0.9.2 + make sh ./version.sh --header > grok_version.h [ -f grok_capture_xdr.h ] && rm grok_capture_xdr.h || true rpcgen -h grok_capture.x -o grok_capture_xdr.h cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux grok.c -o grok.o cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux grokre.c -o grokre.o grokre.c:15:0: warning: "CAPTURE_ID_LEN" redefined [enabled by default] #define CAPTURE_ID_LEN 5 ^ In file included from grokre.c:9:0: grok.h:126:0: note: this is the location of the previous definition #define CAPTURE_ID_LEN 4 ^ grokre.c:16:0: warning: "CAPTURE_FORMAT" redefined [enabled by default] #define CAPTURE_FORMAT "_%04x" ^ In file included from grokre.c:9:0: grok.h:127:0: note: this is the location of the previous definition #define CAPTURE_FORMAT "%04x" ^ grokre.c: In function 'grok_pattern_expand': grokre.c:312:7: warning: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [enabled by default] free(pattern_regex); ^ In file included from /usr/include/pcre.h:90:0, from grokre.c:1: /usr/include/stdlib.h:482:13: note: expected 'void *' but argument is of type 'const char *' extern void free (void *__ptr) __THROW; ^ cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux grok_capture.c -o grok_capture.o cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux grok_pattern.c -o grok_pattern.o cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux stringhelper.c -o stringhelper.o cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux predicates.c -o predicates.o [ -f grok_capture_xdr.c ] && rm grok_capture_xdr.c || true rpcgen -c grok_capture.x -o grok_capture_xdr.c cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux grok_capture_xdr.c -o grok_capture_xdr.o cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux grok_match.c -o grok_match.o cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux grok_logging.c -o grok_logging.o cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux grok_program.c -o grok_program.o cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux grok_input.c -o grok_input.o cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux grok_matchconf.c -o grok_matchconf.o cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux libc_helper.c -o libc_helper.o /usr/bin/gperf grok_matchconf_macro.gperf > grok_matchconf_macro.c cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux grok_matchconf_macro.c -o grok_matchconf_macro.o /usr/bin/gperf filters.gperf > filters.c cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux filters.c -o filters.o cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux grok_discover.c -o grok_discover.o cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux conf.tab.c -o conf.tab.o cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux conf.yy.c -o conf.yy.o cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux main.c -o main.o cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux grok_config.c -o grok_config.o cc grok.o grokre.o grok_capture.o grok_pattern.o stringhelper.o predicates.o grok_capture_xdr.o grok_match.o grok_logging.o grok_program.o grok_input.o grok_matchconf.o libc_helper.o grok_matchconf_macro.o filters.o grok_discover.o conf.tab.o conf.yy.o main.o grok_config.o -o grok -ldl -lpcre -levent -rdynamic -ltokyocabinet -L/usr/local/lib -levent cc -c -pipe -fPIC -I. -O2 -I/usr/local/include -DPLATFORM_GNULinux discover_main.c -o discover_main.o cc grok.o grokre.o grok_capture.o grok_pattern.o stringhelper.o predicates.o grok_capture_xdr.o grok_match.o grok_logging.o grok_program.o grok_input.o grok_matchconf.o libc_helper.o grok_matchconf_macro.o filters.o grok_discover.o discover_main.o -o discogrok -ldl -lpcre -levent -rdynamic -ltokyocabinet -L/usr/local/lib cc -fPIC -shared -Wl,-soname=libgrok.so.1 grok.o grokre.o grok_capture.o grok_pattern.o stringhelper.o predicates.o grok_capture_xdr.o grok_match.o grok_logging.o grok_program.o grok_input.o grok_matchconf.o libc_helper.o grok_matchconf_macro.o filters.o grok_discover.o -o libgrok.so -ldl -lpcre -levent -rdynamic -ltokyocabinet -L/usr/local/lib ln -s libgrok.so libgrok.so.1 rm filters.c grok_matchconf_macro.c Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.3LCrxt + exit 0 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64 ++ dirname /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64 + cd grok-0.9.2 + /usr/bin/mkdir -p /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64/usr/bin + /usr/bin/mkdir -p /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64/usr/lib64 + /usr/bin/mkdir -p /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64/usr/include + /usr/bin/mkdir -p /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64/usr/share/grok/patterns/base + install -c grok /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64//usr/bin + install -c libgrok.so /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64//usr/lib64 + install -c patterns/base /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64/usr/share/grok/patterns/base + for header in grok.h grok_pattern.h grok_capture.h grok_capture_xdr.h grok_match.h grok_logging.h grok_discover.h grok_version.h + install -c grok.h /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64//usr/include + for header in grok.h grok_pattern.h grok_capture.h grok_capture_xdr.h grok_match.h grok_logging.h grok_discover.h grok_version.h + install -c grok_pattern.h /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64//usr/include + for header in grok.h grok_pattern.h grok_capture.h grok_capture_xdr.h grok_match.h grok_logging.h grok_discover.h grok_version.h + install -c grok_capture.h /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64//usr/include + for header in grok.h grok_pattern.h grok_capture.h grok_capture_xdr.h grok_match.h grok_logging.h grok_discover.h grok_version.h + install -c grok_capture_xdr.h /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64//usr/include + for header in grok.h grok_pattern.h grok_capture.h grok_capture_xdr.h grok_match.h grok_logging.h grok_discover.h grok_version.h + install -c grok_match.h /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64//usr/include + for header in grok.h grok_pattern.h grok_capture.h grok_capture_xdr.h grok_match.h grok_logging.h grok_discover.h grok_version.h + install -c grok_logging.h /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64//usr/include + for header in grok.h grok_pattern.h grok_capture.h grok_capture_xdr.h grok_match.h grok_logging.h grok_discover.h grok_version.h + install -c grok_discover.h /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64//usr/include + for header in grok.h grok_pattern.h grok_capture.h grok_capture_xdr.h grok_match.h grok_logging.h grok_discover.h grok_version.h + install -c grok_version.h /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64//usr/include + /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/grok-0.9.2 extracting debug info from /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64/usr/lib64/libgrok.so extracting debug info from /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64/usr/bin/grok dwz: Too few files for multifile optimization /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 2 CRC32s did match. + /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: libgrok1-0.9.2-2.el7.centos.x86_64 Provides: libgrok.so.1()(64bit) libgrok1 = 0.9.2-2.el7.centos libgrok1(x86-64) = 0.9.2-2.el7.centos 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.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.7)(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libevent-2.0.so.5()(64bit) libpcre.so.1()(64bit) libtokyocabinet.so.9()(64bit) rtld(GNU_HASH) Processing files: grok-devel-0.9.2-2.el7.centos.x86_64 Provides: grok-devel = 0.9.2-2.el7.centos grok-devel(x86-64) = 0.9.2-2.el7.centos Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: grok-debuginfo-0.9.2-2.el7.centos.x86_64 Provides: grok-debuginfo = 0.9.2-2.el7.centos grok-debuginfo(x86-64) = 0.9.2-2.el7.centos 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/grok-0.9.2-2.el7.centos.x86_64 warning: Could not canonicalize hostname: copr-builder-394111408 Wrote: /builddir/build/RPMS/libgrok1-0.9.2-2.el7.centos.x86_64.rpm Wrote: /builddir/build/RPMS/grok-devel-0.9.2-2.el7.centos.x86_64.rpm Wrote: /builddir/build/RPMS/grok-debuginfo-0.9.2-2.el7.centos.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.HxbJIg + umask 022 + cd /builddir/build/BUILD + cd grok-0.9.2 + /usr/bin/rm -rf /builddir/build/BUILDROOT/grok-0.9.2-2.el7.centos.x86_64 + exit 0 error: Macro %py2_install has unterminated body Child return code was: 0 LEAVE do -->