D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/perl-Authen-Smb-0.910.0-28.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.iViRQt + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf Authen-Smb-0.91 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/Authen-Smb-0.91.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd Authen-Smb-0.91 + rm -rf /home/pterjan/rpmbuild/BUILD/Authen-Smb-0.91-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/Authen-Smb-0.91-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/Authen-Smb-0.91-64bit-fixes.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.HCbOkt + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd Authen-Smb-0.91 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor Checking if your kit is complete... Looks good Writing MYMETA.yml and MYMETA.json Generating a Unix-style Makefile Writing Makefile for Authen::Smb Writing MYMETA.yml and MYMETA.json + make cp Smb.pm blib/lib/Authen/Smb.pm AutoSplitting blib/lib/Authen/Smb.pm (blib/lib/auto/Authen/Smb) cd smbval && make LIBPERL_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="-g" PREFIX="/usr" PASTHRU_DEFINE=' ' PASTHRU_INC=' ' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/Authen-Smb-0.91/smbval' /usr/bin/cc -c -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fwrapv -fno-strict-aliasing -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib64/perl5/CORE" valid.c valid.c: In function 'Valid_User': valid.c:22:3: error: implicit declaration of function 'SMB_Init' [-Wimplicit-function-declaration] 22 | SMB_Init(); | ^~~~~~~~ valid.c:30:7: error: implicit declaration of function 'SMB_Negotiate' [-Wimplicit-function-declaration] 30 | if (SMB_Negotiate(con, SMB_Prots) < 0) { /* An error */ | ^~~~~~~~~~~~~ valid.c:31:5: error: implicit declaration of function 'SMB_Discon'; did you mean 'SMBtcon'? [-Wimplicit-function-declaration] 31 | SMB_Discon(con,0); | ^~~~~~~~~~ | SMBtcon valid.c:42:7: error: implicit declaration of function 'SMB_Logon_Server'; did you mean 'SMB_Connect_Server'? [-Wimplicit-function-declaration] 42 | if (SMB_Logon_Server(con, USERNAME, PASSWORD) < 0) { | ^~~~~~~~~~~~~~~~ | SMB_Connect_Server make[1]: *** [Makefile:342: valid.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/Authen-Smb-0.91/smbval' make: *** [Makefile:1089: smbval/smbvalid.a] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.HCbOkt (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.HCbOkt (%build) I: [iurt_root_command] ERROR: chroot