D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/ppmtocpva-1.0-22.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.77QFmv sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Mg2OwB + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ppmtocpva-1.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/ppmtocpva-1.0-build + rm -rf ppmtocpva-1.0 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/ppmtocpva-1.0.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd ppmtocpva-1.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (ppmtocpva-1.0-includes.patch):' Patch #0 (ppmtocpva-1.0-includes.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .includes --fuzz=0 patching file ppmtocpva.c + echo 'Patch #1 (ppmtocpva-1.0-netpbm.patch):' Patch #1 (ppmtocpva-1.0-netpbm.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Makefile + echo 'Patch #2 (ppmtocpva-1.0-LDFLAGS.diff):' Patch #2 (ppmtocpva-1.0-LDFLAGS.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file Makefile + chmod 644 Makefile README cpva-colour ppmtocpva.c ppmtocpva.c.includes + 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.LG1Lkn + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ppmtocpva-1.0-build + 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-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + 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-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-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-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-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-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + 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' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd ppmtocpva-1.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j48 V=1 VERBOSE=1 '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-strong -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' gcc -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-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -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 -o ppmtocpva ppmtocpva.c -lnetpbm -lm ppmtocpva.c: In function 'RGBtoHSV': ppmtocpva.c:250:7: warning: old-style function definition [-Wold-style-definition] 250 | void RGBtoHSV(r,g,b,hp,sp,vp) | ^~~~~~~~ ppmtocpva.c: In function 'HSVtoRGB': ppmtocpva.c:298:7: warning: old-style function definition [-Wold-style-definition] 298 | void HSVtoRGB(hf,sf,vf,rp,gp,bp) | ^~~~~~~~ ppmtocpva.c: In function 'jcb_cmyk_ht': ppmtocpva.c:335:6: warning: old-style function definition [-Wold-style-definition] 335 | void jcb_cmyk_ht(cp,mp,yp,kp) | ^~~~~~~~~~~ ppmtocpva.c: At top level: ppmtocpva.c:423:15: error: conflicting types for 'atof'; have 'double(void)' 423 | extern double atof(); | ^~~~ In file included from /usr/include/features.h:524, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from ppmtocpva.c:16: /usr/include/bits/stdlib-float.h:25:1: note: previous definition of 'atof' with type 'double(const char *)' 25 | __NTH (atof (const char *__nptr)) | ^~~~~ ppmtocpva.c:424:12: error: conflicting types for 'atoi'; have 'int(void)' 424 | extern int atoi(); | ^~~~ /usr/include/stdlib.h:481:1: note: previous definition of 'atoi' with type 'int(const char *)' 481 | __NTH (atoi (const char *__nptr)) | ^~~~~ ppmtocpva.c: In function 'bitsperpixel': ppmtocpva.c:588:5: warning: old-style function definition [-Wold-style-definition] 588 | int bitsperpixel(v) | ^~~~~~~~~~~~ ppmtocpva.c: In function 'putbits': ppmtocpva.c:605:6: warning: old-style function definition [-Wold-style-definition] 605 | void putbits(bp,n) /* take the char array bp, size n, and compress and output */ | ^~~~~~~ ppmtocpva.c: In function 'main': ppmtocpva.c:771:5: warning: old-style function definition [-Wold-style-definition] 771 | int main(argc, argv) | ^~~~ ppmtocpva.c:835:59: error: too many arguments to function 'atof'; expected 0, have 1 835 | *(int *)(options[i].value) = (int)(resf*atof(argv[1])*4.16667); | ^~~~ ~~~~~~~ ppmtocpva.c:423:15: note: declared here 423 | extern double atof(); | ^~~~ ppmtocpva.c:837:59: error: too many arguments to function 'atof'; expected 0, have 1 837 | *(int *)(options[i].value) = (int)(resf*atof(argv[1])*0.41667); | ^~~~ ~~~~~~~ ppmtocpva.c:423:15: note: declared here 423 | extern double atof(); | ^~~~ ppmtocpva.c:839:59: error: too many arguments to function 'atof'; expected 0, have 1 839 | *(int *)(options[i].value) = (int)(resf*atof(argv[1])*300); | ^~~~ ~~~~~~~ ppmtocpva.c:423:15: note: declared here 423 | extern double atof(); | ^~~~ ppmtocpva.c:841:59: error: too many arguments to function 'atof'; expected 0, have 1 841 | *(int *)(options[i].value) = (int)(resf*atof(argv[1])*118.11024); | ^~~~ ~~~~~~~ ppmtocpva.c:423:15: note: declared here 423 | extern double atof(); | ^~~~ ppmtocpva.c:843:59: error: too many arguments to function 'atof'; expected 0, have 1 843 | *(int *)(options[i].value) = (int)(resf*atof(argv[1])*11.81102); | ^~~~ ~~~~~~~ ppmtocpva.c:423:15: note: declared here 423 | extern double atof(); | ^~~~ ppmtocpva.c:846:48: error: too many arguments to function 'atoi'; expected 0, have 1 846 | *(int *)(options[i].value) = atoi(argv[1]); | ^~~~ ~~~~~~~ ppmtocpva.c:424:12: note: declared here 424 | extern int atoi(); | ^~~~ ppmtocpva.c:853:48: error: too many arguments to function 'atof'; expected 0, have 1 853 | *(double *)(options[i].value) = atof(argv[1]); | ^~~~ ~~~~~~~ ppmtocpva.c:423:15: note: declared here 423 | extern double atof(); | ^~~~ ppmtocpva.c:861:45: error: too many arguments to function 'atoi'; expected 0, have 1 861 | *(int *)(options[i].value) = atoi(argv[1]); | ^~~~ ~~~~~~~ ppmtocpva.c:424:12: note: declared here 424 | extern int atoi(); | ^~~~ ppmtocpva.c:1022:16: warning: too many arguments for format [-Wformat-extra-args] 1022 | pm_error("can't allocate space for row", 0,0,0,0,0); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:6: ppmtocpva] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.LG1Lkn (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.LG1Lkn (%build) I: [iurt_root_command] ERROR: chroot