D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/python-pyproj-1.9.6-1.mga7.src.rpm Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ZuIaXr + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf pyproj-1.9.6 + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/pyproj-1.9.6.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd pyproj-1.9.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/rm -rf pyproj.egg-info + /usr/bin/cp -a . /home/pterjan/rpmbuild/BUILD/python3-python-pyproj-1.9.6-1.mga7 + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.3qQmvG + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd pyproj-1.9.6 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + export PROJ_DIR=/usr/lib64 + PROJ_DIR=/usr/lib64 + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s' PROJ_DIR is set, using existing proj4 installation.. running build running build_py creating build creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/pyproj copying lib/pyproj/datadir.py -> build/lib.linux-x86_64-2.7/pyproj copying lib/pyproj/__init__.py -> build/lib.linux-x86_64-2.7/pyproj running build_ext building 'pyproj._proj' extension creating build/temp.linux-x86_64-2.7 gcc -pthread -DNDEBUG -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -I/usr/lib64/include -I/usr/include/python2.7 -c _proj.c -o build/temp.linux-x86_64-2.7/_proj.o In file included from _proj.c:613: /usr/include/proj_api.h:37:2: error: #error 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H' #error 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H' ^~~~~ error: command 'gcc' failed with exit status 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.3qQmvG (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.3qQmvG (%build) I: [iurt_root_command] ERROR: chroot