D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/python-pysendfile-2.0.1-8.mga9.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.b7DlfU + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf pysendfile-release-2.0.1 + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/pysendfile-release-2.0.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd pysendfile-release-2.0.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.DYI10x + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd pysendfile-release-2.0.1 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_ext building 'sendfile' extension creating build creating build/temp.linux-x86_64-cpython-310 gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -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 -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/include/python3.10 -c sendfilemodule.c -o build/temp.linux-x86_64-cpython-310/sendfilemodule.o creating build/lib.linux-x86_64-cpython-310 gcc -shared -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables build/temp.linux-x86_64-cpython-310/sendfilemodule.o -L/usr/lib64 -o build/lib.linux-x86_64-cpython-310/sendfile.cpython-310-x86_64-linux-gnu.so /usr/bin/ld: build/temp.linux-x86_64-cpython-310/sendfilemodule.o: in function `sendfile_traverse': /home/pterjan/rpmbuild/BUILD/pysendfile-release-2.0.1/sendfilemodule.c:342: undefined reference to `PyModule_GetState' /usr/bin/ld: /home/pterjan/rpmbuild/BUILD/pysendfile-release-2.0.1/sendfilemodule.c:342: undefined reference to `PyModule_GetState' /usr/bin/ld: build/temp.linux-x86_64-cpython-310/sendfilemodule.o: in function `sendfile_clear': /home/pterjan/rpmbuild/BUILD/pysendfile-release-2.0.1/sendfilemodule.c:347: undefined reference to `PyModule_GetState' /usr/bin/ld: /home/pterjan/rpmbuild/BUILD/pysendfile-release-2.0.1/sendfilemodule.c:347: undefined reference to `PyModule_GetState' /usr/bin/ld: build/temp.linux-x86_64-cpython-310/sendfilemodule.o: in function `_Py_DECREF': /usr/include/python3.10/object.h:500: undefined reference to `_Py_Dealloc' /usr/bin/ld: build/temp.linux-x86_64-cpython-310/sendfilemodule.o: in function `method_sendfile': /home/pterjan/rpmbuild/BUILD/pysendfile-release-2.0.1/sendfilemodule.c:248: undefined reference to `PyArg_ParseTuple' /usr/bin/ld: /home/pterjan/rpmbuild/BUILD/pysendfile-release-2.0.1/sendfilemodule.c:252: undefined reference to `_Py_NoneStruct' /usr/bin/ld: build/temp.linux-x86_64-cpython-310/sendfilemodule.o: in function `_parse_off_t': /home/pterjan/rpmbuild/BUILD/pysendfile-release-2.0.1/sendfilemodule.c:56: undefined reference to `PyLong_AsLong' /usr/bin/ld: /home/pterjan/rpmbuild/BUILD/pysendfile-release-2.0.1/sendfilemodule.c:60: undefined reference to `PyErr_Occurred' /usr/bin/ld: build/temp.linux-x86_64-cpython-310/sendfilemodule.o: in function `method_sendfile': /home/pterjan/rpmbuild/BUILD/pysendfile-release-2.0.1/sendfilemodule.c:260: undefined reference to `PyEval_SaveThread' /usr/bin/ld: /home/pterjan/rpmbuild/BUILD/pysendfile-release-2.0.1/sendfilemodule.c:262: undefined reference to `PyEval_RestoreThread' /usr/bin/ld: /home/pterjan/rpmbuild/BUILD/pysendfile-release-2.0.1/sendfilemodule.c:268: undefined reference to `Py_BuildValue' /usr/bin/ld: /home/pterjan/rpmbuild/BUILD/pysendfile-release-2.0.1/sendfilemodule.c:253: undefined reference to `PyEval_SaveThread' /usr/bin/ld: /home/pterjan/rpmbuild/BUILD/pysendfile-release-2.0.1/sendfilemodule.c:266: undefined reference to `PyExc_OSError' /usr/bin/ld: /home/pterjan/rpmbuild/BUILD/pysendfile-release-2.0.1/sendfilemodule.c:266: undefined reference to `PyErr_SetFromErrno' /usr/bin/ld: build/temp.linux-x86_64-cpython-310/sendfilemodule.o: in function `PyInit_sendfile': /home/pterjan/rpmbuild/BUILD/pysendfile-release-2.0.1/sendfilemodule.c:376: undefined reference to `PyModule_Create2' collect2: error: ld returned 1 exit status error: command '/usr/bin/gcc' failed with exit code 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.DYI10x (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.DYI10x (%build) I: [iurt_root_command] ERROR: chroot