Mock Version: 1.2.14 ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-openhpi.spec'], uid=7225printOutput=Falsetimeout=0shell=Falselogger=chrootPath='/scratch/mock/epel-5-x86_64-2420/root'env={'TERM': 'vt100', 'CCACHE_UMASK': '002', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'CCACHE_DIR': '/tmp/ccache', 'SHELL': '/bin/bash', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOSTNAME': 'mock', 'LANG': 'en_US.UTF-8'}gid=135user='mockbuild') Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-openhpi.spec'] with env {'TERM': 'vt100', 'CCACHE_UMASK': '002', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'CCACHE_DIR': '/tmp/ccache', 'SHELL': '/bin/bash', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOSTNAME': 'mock', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-openhpi-1.1-1.el5.centos.src.rpm Child return code was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-openhpi.spec '], uid=7225printOutput=Falseprivate_network=Truetimeout=0shell=Falselogger=chrootPath='/scratch/mock/epel-5-x86_64-2420/root'env={'TERM': 'vt100', 'CCACHE_UMASK': '002', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'CCACHE_DIR': '/tmp/ccache', 'SHELL': '/bin/bash', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOSTNAME': 'mock', 'LANG': 'en_US.UTF-8'}gid=135user='mockbuild') Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-openhpi.spec '] with env {'TERM': 'vt100', 'CCACHE_UMASK': '002', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'HOME': '/builddir', 'CCACHE_DIR': '/tmp/ccache', 'SHELL': '/bin/bash', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOSTNAME': 'mock', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.31462 + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf py-openhpi-1.1 + /bin/gzip -dc /builddir/build/SOURCES/py-openhpi-1.1.tar.gz + tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd py-openhpi-1.1 ++ /usr/bin/id -u + '[' 7225 = 0 ']' ++ /usr/bin/id -u + '[' 7225 = 0 ']' + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.31462 + umask 022 + cd /builddir/build/BUILD + cd py-openhpi-1.1 + LANG=C + export LANG + unset DISPLAY + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' + /usr/bin/python setup.py build running build running build_py creating build creating build/lib.linux-x86_64-2.4 copying openhpi.py -> build/lib.linux-x86_64-2.4 running build_ext building '_openhpi' extension swigging openhpi.i to openhpi_wrap.c swig -python -o openhpi_wrap.c openhpi.i creating build/temp.linux-x86_64-2.4 gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -I/usr/include/openhpi -I/usr/local/include/openhpi -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/python2.4 -c openhpi_wrap.c -o build/temp.linux-x86_64-2.4/openhpi_wrap.o openhpi_wrap.c: In function '_wrap_SaHpiDimiInfoT_NumberOfTests_set': openhpi_wrap.c:15033: error: 'SaHpiDimiTotalTestsT' undeclared (first use in this function) openhpi_wrap.c:15033: error: (Each undeclared identifier is reported only once openhpi_wrap.c:15033: error: for each function it appears in.) openhpi_wrap.c:15033: error: expected ';' before 'arg2' openhpi_wrap.c:15051: error: 'arg2' undeclared (first use in this function) openhpi_wrap.c: In function '_wrap_SaHpiDimiInfoT_NumberOfTests_get': openhpi_wrap.c:15064: error: 'SaHpiDimiTotalTestsT' undeclared (first use in this function) openhpi_wrap.c:15064: error: expected ';' before 'result' openhpi_wrap.c:15075: error: 'result' undeclared (first use in this function) error: command 'gcc' failed with exit status 1 error: Bad exit status from /var/tmp/rpm-tmp.31462 (%build) Bad exit status from /var/tmp/rpm-tmp.31462 (%build) RPM build errors: Child return code was: 1 EXCEPTION: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-openhpi.spec Traceback (most recent call last): File "/usr/lib/python3.4/site-packages/mockbuild/trace_decorator.py", line 84, in trace result = func(*args, **kw) File "/usr/lib/python3.4/site-packages/mockbuild/util.py", line 526, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) mockbuild.exception.Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-openhpi.spec LEAVE do --> EXCEPTION RAISED