D: [iurt_root_command] chroot warning: Macro expanded in comment on line 15: %{version}-%{release} Installing /home/pterjan/rpmbuild/SRPMS/python-pyblock-0.53-9.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.dpu7Ks + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf pyblock-0.53 + /usr/bin/tar -xof - + /usr/bin/bzip2 -dc /home/pterjan/rpmbuild/SOURCES/pyblock-0.53.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd pyblock-0.53 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (Fix-GCC-5-logical-not-parentheses-warnings.patch):' Patch #0 (Fix-GCC-5-logical-not-parentheses-warnings.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 --fuzz=0 patching file dm.c + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.MlxtKB + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd pyblock-0.53 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + echo 'warning: %make is deprecated, try %make_build instead' warning: %make is deprecated, try %make_build instead + /usr/bin/make -O -j8 'OPTFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' gcc -g -I/usr/include/python2.7 -Wall -Werror -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fno-strict-aliasing -DUSESELINUX=1 -c -o exc.o exc.c gcc -g -I/usr/include/python2.7 -Wall -Werror -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fno-strict-aliasing -DUSESELINUX=1 -c -o pyhelpers.o pyhelpers.c gcc -g -I/usr/include/python2.7 -Wall -Werror -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fno-strict-aliasing -DUSESELINUX=1 -c -o dmraid.o dmraid.c gcc -g -I/usr/include/python2.7 -Wall -Werror -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fno-strict-aliasing -DUSESELINUX=1 -shared -Wl,-soname="dmraidmodule.so.0.53" -o dmraidmodule.so.0.53 dmraid.o pyhelpers.o -ldmraid -ldevmapper gcc -g -I/usr/include/python2.7 -Wall -Werror -fPIC -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fno-strict-aliasing -DUSESELINUX=1 -c -o dm.o dm.c dm.c: In function 'pydm_dev_init_method': dm.c:141:13: error: In the GNU C Library, "makedev" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "makedev", include directly. If you did not intend to use a system-defined macro "makedev", you should undefine it after including . [-Werror] dev->dev = makedev(ma, mi); ^~~~~~~~~~~~~~~~~ dm.c: In function 'pydm_dev_str_method': dm.c:151:13: error: In the GNU C Library, "major" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "major", include directly. If you did not intend to use a system-defined macro "major", you should undefine it after including . [-Werror] major(dev->dev), minor(dev->dev)); ^~~~~~~~~~~~~~~~~~~~~~~~~ dm.c:151:13: error: In the GNU C Library, "minor" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "minor", include directly. If you did not intend to use a system-defined macro "minor", you should undefine it after including . [-Werror] dm.c: In function 'pydm_dev_get': dm.c:306:13: error: In the GNU C Library, "major" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "major", include directly. If you did not intend to use a system-defined macro "major", you should undefine it after including . [-Werror] return PyLong_FromUnsignedLongLong(major(dev->dev)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dm.c:308:13: error: In the GNU C Library, "minor" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "minor", include directly. If you did not intend to use a system-defined macro "minor", you should undefine it after including . [-Werror] return PyLong_FromUnsignedLongLong(minor(dev->dev)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dm.c: In function 'pydm_dev_set': dm.c:336:13: error: In the GNU C Library, "minor" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "minor", include directly. If you did not intend to use a system-defined macro "minor", you should undefine it after including . [-Werror] dev->dev = makedev(v, minor(dev->dev)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dm.c:336:13: error: In the GNU C Library, "makedev" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "makedev", include directly. If you did not intend to use a system-defined macro "makedev", you should undefine it after including . [-Werror] dev->dev = makedev(v, minor(dev->dev)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dm.c:341:13: error: In the GNU C Library, "major" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "major", include directly. If you did not intend to use a system-defined macro "major", you should undefine it after including . [-Werror] dev->dev = makedev(major(dev->dev), v); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dm.c:341:13: error: In the GNU C Library, "makedev" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "makedev", include directly. If you did not intend to use a system-defined macro "makedev", you should undefine it after including . [-Werror] dev->dev = makedev(major(dev->dev), v); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dm.c: In function 'PydmDevice_FromMajorMinor': dm.c:423:13: error: In the GNU C Library, "makedev" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "makedev", include directly. If you did not intend to use a system-defined macro "makedev", you should undefine it after including . [-Werror] ((PydmDeviceObject *)self)->dev = makedev(major, minor); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dm.c: In function 'pydm_task_set_key': dm.c:712:13: error: In the GNU C Library, "major" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "major", include directly. If you did not intend to use a system-defined macro "major", you should undefine it after including . [-Werror] dm_task_set_major(task, major(key->dev)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dm.c:713:13: error: In the GNU C Library, "minor" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "minor", include directly. If you did not intend to use a system-defined macro "minor", you should undefine it after including . [-Werror] dm_task_set_minor(task, minor(key->dev)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dm.c: In function 'pydm_map_read': dm.c:781:13: error: In the GNU C Library, "major" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "major", include directly. If you did not intend to use a system-defined macro "major", you should undefine it after including . [-Werror] major(key->dev), ^~~~~~~~~~~ dm.c:782:13: error: In the GNU C Library, "minor" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "minor", include directly. If you did not intend to use a system-defined macro "minor", you should undefine it after including . [-Werror] minor(key->dev)); ^~~~~~~~~~~~ dm.c: In function 'pydm_map_create': dm.c:934:13: error: In the GNU C Library, "major" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "major", include directly. If you did not intend to use a system-defined macro "major", you should undefine it after including . [-Werror] dm_task_set_major(task, major(dev->dev)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dm.c:935:13: error: In the GNU C Library, "minor" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "minor", include directly. If you did not intend to use a system-defined macro "minor", you should undefine it after including . [-Werror] dm_task_set_minor(task, minor(dev->dev)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dm.c: In function 'pydm_map_get_deps': dm.c:1286:13: error: In the GNU C Library, "major" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "major", include directly. If you did not intend to use a system-defined macro "major", you should undefine it after including . [-Werror] major(deps->device[i]), ^~~~~~~~~~~~~~~~ dm.c:1287:13: error: In the GNU C Library, "minor" is defined by . For historical compatibility, it is currently defined by as well, but we plan to remove this soon. To use "minor", include directly. If you did not intend to use a system-defined macro "minor", you should undefine it after including . [-Werror] minor(deps->device[i])); ^~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make: *** [Makefile:28: dm.o] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.MlxtKB (%build) RPM build errors: Macro expanded in comment on line 15: %{version}-%{release} Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.MlxtKB (%build) I: [iurt_root_command] ERROR: chroot