D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/python-smbpasswd-1.0.2-5.mga9.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.s8kktM + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf py-smbpasswd-1.0.2 + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/py-smbpasswd-1.0.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd py-smbpasswd-1.0.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/python-smbpasswd-1.0.1-py3.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Okjl6l + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd py-smbpasswd-1.0.2 + '[' 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 'smbpasswd' 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 md4.c -o build/temp.linux-x86_64-cpython-310/md4.o 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 smbdes.c -o build/temp.linux-x86_64-cpython-310/smbdes.o 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 smbpasswd.c -o build/temp.linux-x86_64-cpython-310/smbpasswd.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/md4.o build/temp.linux-x86_64-cpython-310/smbdes.o build/temp.linux-x86_64-cpython-310/smbpasswd.o -L/usr/lib64 -o build/lib.linux-x86_64-cpython-310/smbpasswd.cpython-310-x86_64-linux-gnu.so /usr/bin/ld: build/temp.linux-x86_64-cpython-310/smbpasswd.o: in function `hash_to_string': /home/pterjan/rpmbuild/BUILD/py-smbpasswd-1.0.2/smbpasswd.c:73: undefined reference to `PyUnicode_FromStringAndSize' /usr/bin/ld: build/temp.linux-x86_64-cpython-310/smbpasswd.o: in function `nthash': /home/pterjan/rpmbuild/BUILD/py-smbpasswd-1.0.2/smbpasswd.c:121: undefined reference to `PyArg_ParseTuple' /usr/bin/ld: /home/pterjan/rpmbuild/BUILD/py-smbpasswd-1.0.2/smbpasswd.c:133: undefined reference to `PyMem_Free' /usr/bin/ld: build/temp.linux-x86_64-cpython-310/smbpasswd.o: in function `lmhash': /home/pterjan/rpmbuild/BUILD/py-smbpasswd-1.0.2/smbpasswd.c:88: undefined reference to `PyArg_ParseTuple' /usr/bin/ld: build/temp.linux-x86_64-cpython-310/smbpasswd.o: in function `hash': /home/pterjan/rpmbuild/BUILD/py-smbpasswd-1.0.2/smbpasswd.c:144: undefined reference to `PyTuple_New' /usr/bin/ld: /home/pterjan/rpmbuild/BUILD/py-smbpasswd-1.0.2/smbpasswd.c:145: undefined reference to `PyTuple_SetItem' /usr/bin/ld: /home/pterjan/rpmbuild/BUILD/py-smbpasswd-1.0.2/smbpasswd.c:146: undefined reference to `PyTuple_SetItem' /usr/bin/ld: build/temp.linux-x86_64-cpython-310/smbpasswd.o: in function `PyInit_smbpasswd': /home/pterjan/rpmbuild/BUILD/py-smbpasswd-1.0.2/smbpasswd.c:173: 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.Okjl6l (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.Okjl6l (%build) I: [iurt_root_command] ERROR: chroot