D: [iurt_root_command] chroot warning: %patchN is deprecated (9 usages found), use %patch N (or %patch -P N) sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/perl-CGI-SpeedyCGI-2.220.0-30.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.1zEhwj + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf CGI-SpeedyCGI-2.22 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/CGI-SpeedyCGI-2.22.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd CGI-SpeedyCGI-2.22 + rm -rf /home/pterjan/rpmbuild/BUILD/CGI-SpeedyCGI-2.22-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/CGI-SpeedyCGI-2.22-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (perl-CGI-SpeedyCGI-2.22-documentation.patch):' Patch #0 (perl-CGI-SpeedyCGI-2.22-documentation.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .documentation --fuzz=0 patching file src/SpeedyCGI.src + echo 'Patch #1 (perl-CGI-SpeedyCGI-2.22-empty_param.patch):' Patch #1 (perl-CGI-SpeedyCGI-2.22-empty_param.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .empty_param --fuzz=0 patching file src/speedy_frontend.c + echo 'Patch #2 (perl-CGI-SpeedyCGI-2.22-strerror.patch):' Patch #2 (perl-CGI-SpeedyCGI-2.22-strerror.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .strerror --fuzz=0 patching file src/speedy_util.c + echo 'Patch #3 (perl-CGI-SpeedyCGI-2.22-brigade_foreach.patch):' Patch #3 (perl-CGI-SpeedyCGI-2.22-brigade_foreach.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .brigade_foreach --fuzz=0 patching file src/mod_speedycgi2.c + echo 'Patch #4 (perl-CGI-SpeedyCGI-2.22-exit_messages.patch):' Patch #4 (perl-CGI-SpeedyCGI-2.22-exit_messages.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .exit_messages --fuzz=0 patching file src/speedy_main.c + echo 'Patch #5 (perl-CGI-SpeedyCGI-2.22-perl_510.patch):' Patch #5 (perl-CGI-SpeedyCGI-2.22-perl_510.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .perl_510 --fuzz=0 patching file src/speedy_backend_main.h + echo 'Patch #6 (perl-CGI-SpeedyCGI-2.22-c99_inline.patch):' Patch #6 (perl-CGI-SpeedyCGI-2.22-c99_inline.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .c99_inline --fuzz=0 patching file src/speedy_file.c patching file src/speedy_file.h patching file src/speedy_inc.h patching file src/speedy_opt.c patching file src/speedy_opt.h patching file src/speedy_util.c patching file src/speedy_util.c.strerror patching file src/speedy_util.h + echo 'Patch #7 (CGI-SpeedyCGI-2.22-Fix-building-on-Perl-without-dot-in-INC.patch):' Patch #7 (CGI-SpeedyCGI-2.22-Fix-building-on-Perl-without-dot-in-INC.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .inc --fuzz=0 patching file Makefile.PL + echo 'Patch #8 (CGI-SpeedyCGI-2.22-Fix-building-with-GCC-10.patch):' Patch #8 (CGI-SpeedyCGI-2.22-Fix-building-with-GCC-10.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .gcc10 --fuzz=0 patching file src/speedy_perl.h + cp /home/pterjan/rpmbuild/SOURCES/mod_speedycgi.conf '%{mod_conf}' + RPM_EC=0 ++ jobs -p + exit 0 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.BlzF5G + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd CGI-SpeedyCGI-2.22 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + export 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + perl Makefile.PL INSTALLDIRS=vendor + echo yes Optional mod_speedycgi support. Mod_speedycgi increases performance under Apache by avoiding the fork/exec overhead associated with each request under normal SpeedyCGI. However, it requires a working copy of "apxs" in your path, Apache with mod_so support, and additional Apache configuration. Compile mod_speedycgi (default no)? Compiling for Apache version 2 Checking if your kit is complete... Looks good Writing Makefile for src Writing MYMETA.yml and MYMETA.json Writing MYMETA.yml and MYMETA.json Writing Makefile for mod_speedycgi2 Generating a Unix-style Makefile Writing Makefile for CGI::SpeedyCGI Writing MYMETA.yml and MYMETA.json + make 'OPTIMIZE=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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 -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' cd src && make make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/CGI-SpeedyCGI-2.22/src' "/usr/bin/perl5.38.2" -w optdefs.pl /usr/bin Writing speedy_optdefs.c Writing speedy_optdefs.h Redundant argument in printf at optdefs.pl line 158. Redundant argument in printf at optdefs.pl line 158. Redundant argument in printf at optdefs.pl line 158. Redundant argument in printf at optdefs.pl line 158. Redundant argument in printf at optdefs.pl line 158. Redundant argument in printf at optdefs.pl line 158. Redundant argument in printf at optdefs.pl line 158. Redundant argument in printf at optdefs.pl line 158. Redundant argument in printf at optdefs.pl line 158. Writing mod_speedycgi_cmds.c Writing mod_speedycgi2_cmds.c Writing SpeedyCGI.pm make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/CGI-SpeedyCGI-2.22/src' cp src/SpeedyCGI.pm blib/lib/CGI/SpeedyCGI.pm make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/CGI-SpeedyCGI-2.22/src' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/CGI-SpeedyCGI-2.22/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/CGI-SpeedyCGI-2.22/speedy_backend' rm -f speedy_backend_main.c cp ../src/speedy_backend_main.c speedy_backend_main.c gcc -c -I../src -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 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fPIC "-I/usr/lib64/perl5/CORE" -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_backend_main.c rm -f speedy_perl.c cp ../src/speedy_perl.c speedy_perl.c gcc -c -I../src -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 -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-all -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DVERSION=\"2.22\" -DXS_VERSION=\"2.22\" -fPIC "-I/usr/lib64/perl5/CORE" -DSPEEDY_PROGNAME=\"speedy_backend\" -DSPEEDY_VERSION=\"2.22\" -DSPEEDY_BACKEND speedy_perl.c speedy_perl.c: In function 'onerun': speedy_perl.c:808:9: error: implicit declaration of function 'PerlIO_reopen'; did you mean 'PerlIO_fdopen'? [-Wimplicit-function-declaration] 808 | if (PerlIO_reopen(dev_null, "r", pio_in ) == NULL || | ^~~~~~~~~~~~~ | PerlIO_fdopen speedy_perl.c:808:47: warning: comparison between pointer and integer 808 | if (PerlIO_reopen(dev_null, "r", pio_in ) == NULL || | ^~ speedy_perl.c:809:47: warning: comparison between pointer and integer 809 | PerlIO_reopen(dev_null, "w", pio_out) == NULL || | ^~ speedy_perl.c:810:47: warning: comparison between pointer and integer 810 | PerlIO_reopen(dev_null, "w", pio_err) == NULL) | ^~ speedy_perl.c: In function 'speedy_perl_init': speedy_perl.c:917:29: error: passing argument 2 of 'perl_parse' from incompatible pointer type [-Wincompatible-pointer-types] 917 | if (perl_parse(my_perl, xs_init, | ^~~~~~~ | | | void (*)(void) In file included from /usr/lib64/perl5/CORE/perl.h:6188, from ../src/speedy_inc_perl.h:25, from speedy.h:1, from speedy_perl.c:20: /usr/lib64/perl5/CORE/proto.h:3472:47: note: expected 'XSINIT_t' {aka 'void (*)(struct interpreter *)'} but argument is of type 'void (*)(void)' 3472 | perl_parse(PerlInterpreter *my_perl, XSINIT_t xsinit, int argc, char **argv, char **env); | ~~~~~~~~~^~~~~~ speedy_perl.c: In function 'do_proto2': speedy_perl.c:466:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 466 | write(PREF_FD_ACCEPT_O, &c, 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:328: speedy_perl.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/CGI-SpeedyCGI-2.22/speedy_backend' make: *** [Makefile:529: subdirs] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.BlzF5G (%build) RPM build warnings: %patchN is deprecated (9 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.BlzF5G (%build) I: [iurt_root_command] ERROR: chroot