D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/perl-Linux-CDROM-0.20.0-25.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.G5nBNM + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf Linux-CDROM-0.02 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/Linux-CDROM-0.02.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd Linux-CDROM-0.02 + rm -rf /home/pterjan/rpmbuild/BUILD/Linux-CDROM-0.02-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/Linux-CDROM-0.02-SPECPARTS + /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.DSLIJ4 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd Linux-CDROM-0.02 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/perl Makefile.PL INSTALLDIRS=vendor Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Linux::CDROM Writing MYMETA.yml and MYMETA.json + /usr/bin/make -O -j16 V=1 VERBOSE=1 cp lib/Linux/CDROM.pm blib/lib/Linux/CDROM.pm AutoSplitting blib/lib/Linux/CDROM.pm (blib/lib/auto/Linux/CDROM) cp lib/Linux/CDROM/Cookbook.pm blib/lib/Linux/CDROM/Cookbook.pm Running Mkbootstrap for CDROM () chmod 644 "CDROM.bs" "/usr/bin/perl5.38.2" -MExtUtils::Command::MM -e 'cp_nonempty' -- CDROM.bs blib/arch/auto/Linux/CDROM/CDROM.bs 644 "/usr/bin/perl5.38.2" "/usr/share/perl5/ExtUtils/xsubpp" -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap '/home/pterjan/rpmbuild/BUILD/Linux-CDROM-0.02/typemap' CDROM.xs > CDROM.xsc mv CDROM.xsc CDROM.c gcc -c -I. -D_REENTRANT -D_GNU_SOURCE -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 -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -DVERSION=\"0.02\" -DXS_VERSION=\"0.02\" -fPIC "-I/usr/lib64/perl5/CORE" CDROM.c In file included from CDROM.xs:5: ppport.h:230:11: warning: "PERL_UNUSED_DECL" redefined 230 | # define PERL_UNUSED_DECL | ^~~~~~~~~~~~~~~~ In file included from CDROM.xs:2: /usr/lib64/perl5/CORE/perl.h:516:11: note: this is the location of the previous definition 516 | # define PERL_UNUSED_DECL __attribute__unused__ | ^~~~~~~~~~~~~~~~ In file included from /usr/lib64/perl5/CORE/perl.h:6196: CDROM.xs: In function 'XS_Linux__CDROM_play_ti': /usr/lib64/perl5/CORE/embedvar.h:61:49: error: initialization of 'SV *' {aka 'struct sv *'} from incompatible pointer type 'char *' [-Wincompatible-pointer-types] 61 | # define PL_curcop (vTHX->Icurcop) | ^ CDROM.xs:17:19: note: in expansion of macro 'PL_curcop' 17 | SV *oldwarn = PL_curcop->cop_warnings; \ | ^~~~~~~~~ CDROM.xs:503:9: note: in expansion of macro 'WARN_OFF' 503 | WARN_OFF; | ^~~~~~~~ CDROM.xs:21:29: error: assignment to 'char *' from incompatible pointer type 'SV *' {aka 'struct sv *'} [-Wincompatible-pointer-types] 21 | PL_curcop->cop_warnings = oldwarn; | ^ CDROM.xs:530:9: note: in expansion of macro 'WARN_ON' 530 | WARN_ON; | ^~~~~~~ In file included from /usr/lib64/perl5/CORE/perl.h:3327: CDROM.xs: In function 'XS_Linux__CDROM_read1': /usr/lib64/perl5/CORE/handy.h:2849:28: error: assignment to 'struct cdrom_msf *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types] 2849 | #define Newx(v,n,t) (v = (MEM_WRAP_CHECK_(n,t) (t*)MEM_LOG_ALLOC(n,t,safemalloc((MEM_SIZE)((n)*sizeof(t)))))) | ^ /usr/lib64/perl5/CORE/handy.h:2855:25: note: in expansion of macro 'Newx' 2855 | #define New(x,v,n,t) Newx(v,n,t) | ^~~~ CDROM.xs:606:9: note: in expansion of macro 'New' 606 | New(0, data, CD_FRAMESIZE, char); | ^~~ CDROM.xs: In function 'XS_Linux__CDROM_read2': /usr/lib64/perl5/CORE/handy.h:2849:28: error: assignment to 'struct cdrom_msf *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types] 2849 | #define Newx(v,n,t) (v = (MEM_WRAP_CHECK_(n,t) (t*)MEM_LOG_ALLOC(n,t,safemalloc((MEM_SIZE)((n)*sizeof(t)))))) | ^ /usr/lib64/perl5/CORE/handy.h:2855:25: note: in expansion of macro 'Newx' 2855 | #define New(x,v,n,t) Newx(v,n,t) | ^~~~ CDROM.xs:628:9: note: in expansion of macro 'New' 628 | New(0, data, CD_FRAMESIZE_RAW0, char); | ^~~ CDROM.xs: In function 'XS_Linux__CDROM_read_raw': /usr/lib64/perl5/CORE/handy.h:2849:28: error: assignment to 'struct cdrom_msf *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types] 2849 | #define Newx(v,n,t) (v = (MEM_WRAP_CHECK_(n,t) (t*)MEM_LOG_ALLOC(n,t,safemalloc((MEM_SIZE)((n)*sizeof(t)))))) | ^ /usr/lib64/perl5/CORE/handy.h:2855:25: note: in expansion of macro 'Newx' 2855 | #define New(x,v,n,t) Newx(v,n,t) | ^~~~ CDROM.xs:719:9: note: in expansion of macro 'New' 719 | New(0, data, CD_FRAMESIZE_RAW, char); | ^~~ CDROM.xs: In function 'XS_Linux__CDROM_ioctl': /usr/lib64/perl5/CORE/embedvar.h:61:49: error: initialization of 'SV *' {aka 'struct sv *'} from incompatible pointer type 'char *' [-Wincompatible-pointer-types] 61 | # define PL_curcop (vTHX->Icurcop) | ^ CDROM.xs:17:19: note: in expansion of macro 'PL_curcop' 17 | SV *oldwarn = PL_curcop->cop_warnings; \ | ^~~~~~~~~ CDROM.xs:832:9: note: in expansion of macro 'WARN_OFF' 832 | WARN_OFF; | ^~~~~~~~ CDROM.xs:21:29: error: assignment to 'char *' from incompatible pointer type 'SV *' {aka 'struct sv *'} [-Wincompatible-pointer-types] 21 | PL_curcop->cop_warnings = oldwarn; | ^ CDROM.xs:839:9: note: in expansion of macro 'WARN_ON' 839 | WARN_ON; | ^~~~~~~ make: *** [Makefile:339: CDROM.o] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.DSLIJ4 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.DSLIJ4 (%build) I: [iurt_root_command] ERROR: chroot