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/ganglia.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-66569-3340/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/ganglia.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 warning: %patchN is deprecated (5 usages found), use %patch N (or %patch -P N) Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/ganglia-3.7.2-4.ocs23.src.rpm RPM build warnings: %patchN is deprecated (5 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/ganglia.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-66569-3340/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/ganglia.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 warning: %patchN is deprecated (5 usages found), use %patch N (or %patch -P N) Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.nDZ8JL + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ganglia-3.7.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ganglia-3.7.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ganglia-3.7.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + install -m 0644 /builddir/build/SOURCES/gmond.service gmond/gmond.service.in + install -m 0644 /builddir/build/SOURCES/gmetad.service gmetad/gmetad.service.in + echo 'Patch #3001 (ganglia-3.7.2-apache.patch):' Patch #3001 (ganglia-3.7.2-apache.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file gmond/python_modules/apache_status/apache_status.py Patch #3002 (ganglia-3.7.2-sflow.patch): + echo 'Patch #3002 (ganglia-3.7.2-sflow.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file gmond/sflow.c Patch #3003 (ganglia-3.7.2-tirpc-hack.patch): + echo 'Patch #3003 (ganglia-3.7.2-tirpc-hack.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Makefile.am patching file configure.ac patching file gmetad/Makefile.am patching file gmetric/Makefile.am patching file gmond/Makefile.am patching file gmond/modules/cpu/Makefile.am patching file gmond/modules/disk/Makefile.am patching file gmond/modules/example/Makefile.am patching file gmond/modules/memory/Makefile.am patching file gmond/modules/network/Makefile.am patching file gmond/modules/perl/Makefile.am patching file gmond/modules/python/Makefile.am patching file gmond/modules/status/Makefile.am patching file gmond/modules/system/Makefile.am patching file lib/Makefile.am + cd /builddir/build/BUILD + cd ganglia-3.7.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ganglia-web-3.7.5.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv ganglia-web-3.7.5 web + pushd web ~/build/BUILD/ganglia-3.7.2/web ~/build/BUILD/ganglia-3.7.2 Patch #3000 (ganglia-web-3.7.2-path.patch): + echo 'Patch #3000 (ganglia-web-3.7.2-path.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Makefile Patch #3004 (ganglia-web-5ee6b7.patch): + echo 'Patch #3004 (ganglia-web-5ee6b7.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file conf_default.php.in patching file functions.php patching file graph.d/mem_report.php patching file header.php patching file lib/GangliaAuth.php patching file templates/default/cluster_host_metric_graphs.tpl + popd ~/build/BUILD/ganglia-3.7.2 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.p6yTdY + 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 ganglia-3.7.2 + touch Makefile.am + aclocal -I m4 Can't load '/usr/lib64/perl5/vendor_perl/auto/Cwd/Cwd.so' for module Cwd: /usr/lib64/perl5/vendor_perl/auto/Cwd/Cwd.so: undefined symbol: Perl_my_strlcat at /usr/share/perl5/XSLoader.pm line 94. at /usr/lib64/perl5/vendor_perl/Cwd.pm line 82. Compilation failed in require at /usr/share/perl5/vendor_perl/File/Path.pm line 6. BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/File/Path.pm line 6. Compilation failed in require at /usr/bin/aclocal line 33. BEGIN failed--compilation aborted at /usr/bin/aclocal line 33. error: Bad exit status from /var/tmp/rpm-tmp.p6yTdY (%build) %patchN is deprecated (5 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.p6yTdY (%build) RPM build warnings: RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/ganglia.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/ganglia.spec