D: [iurt_root_command] chroot warning: %patchN is deprecated (4 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/pwauth-2.3.10-11.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.hzDmZZ + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf pwauth-2.3.10 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/pwauth-2.3.10.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd pwauth-2.3.10 + rm -rf /home/pterjan/rpmbuild/BUILD/pwauth-2.3.10-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/pwauth-2.3.10-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (pwauth-typo_fix.diff):' Patch #0 (pwauth-typo_fix.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file pwauth.h + echo 'Patch #1 (pwauth-config.diff):' Patch #1 (pwauth-config.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file config.h + echo 'Patch #2 (pwauth-2.3.2-pam.diff):' Patch #2 (pwauth-2.3.2-pam.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file main.c + echo 'Patch #4 (pwauth-ldflags_fix.diff):' Patch #4 (pwauth-ldflags_fix.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file Makefile Hunk #2 succeeded at 32 (offset 7 lines). + cp /home/pterjan/rpmbuild/SOURCES/pwauth.pam pwauth.pam + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.vi3qDK + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd pwauth-2.3.10 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + export 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export 'CXXFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export 'RPM_OPT_FLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + RPM_OPT_FLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + /usr/bin/make -O -j8 V=1 VERBOSE=1 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' 'LDFLAGS= -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' 'LIB=-lpam -ldl' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o auth_aix.o auth_aix.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o auth_mdw.o auth_mdw.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o auth_bsd.o auth_bsd.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o main.o main.c main.c:47:1: error: return type defaults to 'int' [-Wimplicit-int] 47 | main(int argc, char **argv) | ^~~~ main.c: In function 'main': main.c:96:13: error: implicit declaration of function 'check_auth' [-Wimplicit-function-declaration] 96 | status= check_auth(login,passwd); | ^~~~~~~~~~ main.c:112:18: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 112 | bzero(passwd,strlen(passwd)); /* Erase plain-text from our memory */ | ^~~~~~ main.c:35:1: note: include '' or provide a declaration of 'strlen' 34 | #include "pwauth.h" +++ |+#include 35 | main.c:112:18: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 112 | bzero(passwd,strlen(passwd)); /* Erase plain-text from our memory */ | ^~~~~~ main.c:112:18: note: include '' or provide a declaration of 'strlen' make: *** [: main.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o auth_hpux.o auth_hpux.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o auth_pam.o auth_pam.c auth_pam.c: In function 'PAM_conv': auth_pam.c:123:53: error: implicit declaration of function 'strdup' [-Wimplicit-function-declaration] 123 | response[i].resp= appdata_ptr ? (char *)strdup(user->login) : NULL; | ^~~~~~ auth_pam.c:123:53: warning: incompatible implicit declaration of built-in function 'strdup' [-Wbuiltin-declaration-mismatch] make: *** [: auth_pam.o] Error 1 gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o auth_sun.o auth_sun.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o auth_openbsd.o auth_openbsd.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o fail_log.o fail_log.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -c -o lastlog.o lastlog.c error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.vi3qDK (%build) RPM build warnings: %patchN is deprecated (4 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.vi3qDK (%build) I: [iurt_root_command] ERROR: chroot