D: [iurt_root_command] chroot warning: %patchN is deprecated (2 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/cups-drivers-foo2zjs-0.0-1.20121012.14.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.UbLhZS + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf foo2zjs + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/foo2zjs.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd foo2zjs + rm -rf /home/pterjan/rpmbuild/BUILD/foo2zjs-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/foo2zjs-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (foo2zjs-system-jbig.patch):' Patch #1 (foo2zjs-system-jbig.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file ./Makefile Hunk #1 succeeded at 126 (offset -2 lines). Hunk #2 succeeded at 272 (offset 3 lines). + echo 'Patch #2 (foo2zjs-Makefile.patch):' Patch #2 (foo2zjs-Makefile.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file ./Makefile Hunk #1 succeeded at 995 (offset 14 lines). + chmod 644 COPYING ChangeLog INSTALL INSTALL.usb README + 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.pRrmpo + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd foo2zjs + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + make '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' # # Dependencies... # # ... OK! # cc -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 -c -o foo2zjs.o foo2zjs.c cc -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 -o foo2zjs foo2zjs.o -ljbig cc -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 -c -o zjsdecode.o zjsdecode.c cc -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 zjsdecode.o -ljbig -o zjsdecode cc -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 arm2hpdl.c -o arm2hpdl cc -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 -c -o foo2hp.o foo2hp.c foo2hp.c: In function 'cmyk_page': foo2hp.c:932:9: warning: 'write_bitmap_page' accessing 32 bytes in a region of size 8 [-Wstringop-overflow=] 932 | write_bitmap_page(w, h, 1, &bitmaps[3], ofp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ foo2hp.c:932:9: note: referencing argument 4 of type 'unsigned char *[4]' foo2hp.c:673:1: note: in a call to function 'write_bitmap_page' 673 | write_bitmap_page(int w, int h, int np, unsigned char *bitmaps[4], FILE *ofp) | ^~~~~~~~~~~~~~~~~ foo2hp.c: In function 'pksm_page': foo2hp.c:1014:9: warning: 'write_bitmap_page' accessing 32 bytes in a region of size 8 [-Wstringop-overflow=] 1014 | write_bitmap_page(w, h, 1, &bitmaps[3], ofp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ foo2hp.c:1014:9: note: referencing argument 4 of type 'unsigned char *[4]' foo2hp.c:673:1: note: in a call to function 'write_bitmap_page' 673 | write_bitmap_page(int w, int h, int np, unsigned char *bitmaps[4], FILE *ofp) | ^~~~~~~~~~~~~~~~~ foo2hp.c: In function 'pbm_page': foo2hp.c:1042:5: warning: 'write_bitmap_page' accessing 32 bytes in a region of size 8 [-Wstringop-overflow=] 1042 | write_bitmap_page(w, h, 1, bitmaps, ofp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ foo2hp.c:1042:5: note: referencing argument 4 of type 'unsigned char *[4]' foo2hp.c:673:1: note: in a call to function 'write_bitmap_page' 673 | write_bitmap_page(int w, int h, int np, unsigned char *bitmaps[4], FILE *ofp) | ^~~~~~~~~~~~~~~~~ # cc -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 -o foo2hp foo2hp.o -ljbig /usr/local/lib/libdmalloc.a cc -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 -o foo2hp foo2hp.o -ljbig cc -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 -c -o foo2xqx.o foo2xqx.c cc -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 -o foo2xqx foo2xqx.o -ljbig cc -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 -c -o xqxdecode.o xqxdecode.c cc -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 xqxdecode.o -ljbig -o xqxdecode cc -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 -c -o foo2lava.o foo2lava.c cc -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 -o foo2lava foo2lava.o -ljbig cc -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 -c -o lavadecode.o lavadecode.c cc -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 lavadecode.o -ljbig -o lavadecode cc -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 -c -o foo2qpdl.o foo2qpdl.c foo2qpdl.c: In function 'pbm_page': foo2qpdl.c:1143:9: warning: 'write_page_banded' accessing 32 bytes in a region of size 8 [-Wstringop-overflow=] 1143 | write_page_banded(1, bitmaps, w, h, 3, ofp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ foo2qpdl.c:1143:9: note: referencing argument 2 of type 'unsigned char *[4]' foo2qpdl.c:693:1: note: in a call to function 'write_page_banded' 693 | write_page_banded(int nbie, unsigned char *bm[4], int w, int h, int pn, | ^~~~~~~~~~~~~~~~~ cc -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 -o foo2qpdl foo2qpdl.o -ljbig cc -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 -c -o qpdldecode.o qpdldecode.c cc -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 qpdldecode.o -ljbig -o qpdldecode cc -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 -c -o opldecode.o opldecode.c cc -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 -g opldecode.o -ljbig -o opldecode cc -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 -c -o foo2oak.o foo2oak.c cc -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 -o foo2oak foo2oak.o -ljbig cc -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 -c -o oakdecode.o oakdecode.c cc -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 -g oakdecode.o -ljbig -o oakdecode cc -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 -c -o foo2slx.o foo2slx.c cc -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 -o foo2slx foo2slx.o -ljbig cc -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 -c -o slxdecode.o slxdecode.c cc -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 slxdecode.o -ljbig -o slxdecode cc -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 -c -o foo2hiperc.o foo2hiperc.c cc -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 -o foo2hiperc foo2hiperc.o -ljbig cc -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 -c -o hipercdecode.o hipercdecode.c cc -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 hipercdecode.o -ljbig -o hipercdecode cc -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 -c -o gipddecode.o gipddecode.c cc -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 gipddecode.o -ljbig -o gipddecode cc -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 -c -o hbpldecode.o hbpldecode.c cc -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 hbpldecode.o -ljbig -o hbpldecode cc -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 -I/usr/local/include -c command2foo2lava-pjl.c command2foo2lava-pjl.c: In function 'main': command2foo2lava-pjl.c:92:5: warning: 'ppdOpenFile' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] 92 | ppd = ppdOpenFile(getenv("PPD")); | ^~~ In file included from command2foo2lava-pjl.c:37: /usr/include/cups/ppd.h:390:26: note: declared here 390 | extern ppd_file_t *ppdOpenFile(const char *filename) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | ^~~~~~~~~~~ command2foo2lava-pjl.c:95:9: warning: 'ppdFindAttr' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] 95 | attr = ppdFindAttr(ppd, "foo2zjsNegateMarkerLevels", NULL); | ^~~~ /usr/include/cups/ppd.h:400:26: note: declared here 400 | extern ppd_attr_t *ppdFindAttr(ppd_file_t *ppd, const char *name, | ^~~~~~~~~~~ command2foo2lava-pjl.c:98:9: warning: 'ppdClose' is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations] 98 | ppdClose(ppd); | ^~~~~~~~ /usr/include/cups/ppd.h:365:25: note: declared here 365 | extern void ppdClose(ppd_file_t *ppd) _CUPS_DEPRECATED_1_6_MSG("Use cupsCopyDestInfo and friends instead."); | ^~~~~~~~ cc -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 -L/usr/local/lib command2foo2lava-pjl.o -lcups -o command2foo2lava-pjl cc -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 usb_printerid.c -o usb_printerid [ ! -f foo2zjs-wrapper ] || chmod +w foo2zjs-wrapper sed < foo2zjs-wrapper.in > foo2zjs-wrapper \ -e 's@^PREFIX=.*@PREFIX=/usr@' || (rm -f foo2zjs-wrapper && exit 1) chmod 555 foo2zjs-wrapper [ ! -f foo2oak-wrapper ] || chmod +w foo2oak-wrapper sed < foo2oak-wrapper.in > foo2oak-wrapper \ -e 's@^PREFIX=.*@PREFIX=/usr@' || (rm -f foo2oak-wrapper && exit 1) chmod 555 foo2oak-wrapper [ ! -f foo2hp2600-wrapper ] || chmod +w foo2hp2600-wrapper sed < foo2hp2600-wrapper.in > foo2hp2600-wrapper \ -e 's@^PREFIX=.*@PREFIX=/usr@' || (rm -f foo2hp2600-wrapper && exit 1) chmod 555 foo2hp2600-wrapper [ ! -f foo2xqx-wrapper ] || chmod +w foo2xqx-wrapper sed < foo2xqx-wrapper.in > foo2xqx-wrapper \ -e 's@^PREFIX=.*@PREFIX=/usr@' || (rm -f foo2xqx-wrapper && exit 1) chmod 555 foo2xqx-wrapper [ ! -f foo2lava-wrapper ] || chmod +w foo2lava-wrapper sed < foo2lava-wrapper.in > foo2lava-wrapper \ -e 's@^PREFIX=.*@PREFIX=/usr@' || (rm -f foo2lava-wrapper && exit 1) chmod 555 foo2lava-wrapper [ ! -f foo2qpdl-wrapper ] || chmod +w foo2qpdl-wrapper sed < foo2qpdl-wrapper.in > foo2qpdl-wrapper \ -e 's@^PREFIX=.*@PREFIX=/usr@' || (rm -f foo2qpdl-wrapper && exit 1) chmod 555 foo2qpdl-wrapper [ ! -f foo2slx-wrapper ] || chmod +w foo2slx-wrapper sed < foo2slx-wrapper.in > foo2slx-wrapper \ -e 's@^PREFIX=.*@PREFIX=/usr@' || (rm -f foo2slx-wrapper && exit 1) chmod 555 foo2slx-wrapper [ ! -f foo2hiperc-wrapper ] || chmod +w foo2hiperc-wrapper sed < foo2hiperc-wrapper.in > foo2hiperc-wrapper \ -e 's@^PREFIX=.*@PREFIX=/usr@' || (rm -f foo2hiperc-wrapper && exit 1) chmod 555 foo2hiperc-wrapper cat foo2zjs-pstops.sh >foo2zjs-pstops chmod a+x foo2zjs-pstops cat printer-profile.sh >printer-profile chmod a+x printer-profile [ ! -f getweb ] || chmod +w getweb sed < getweb.in > getweb \ -e "s@\${URLZJS}@http://foo2zjs.rkkda.com@" \ -e 's@^PREFIX=.*@PREFIX=/usr@' || (rm -f getweb && exit 1) chmod 555 getweb cd icc2ps; make all make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/foo2zjs/icc2ps' cc -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 icc2ps.c xgetopt.c cmscam97.c cmscnvrt.c cmserr.c cmsgamma.c cmsgmt.c cmsintrp.c cmsio1.c cmslut.c cmsmatsh.c cmsmtrx.c cmsnamed.c cmspack.c cmspcs.c cmsps2.c cmssamp.c cmswtpnt.c cmsxform.c cmsio0.c cmsvirt.c -lm -o foo2zjs-icc2ps cmsio1.c: In function 'AdjustEndianessArray16': cmsio1.c:74:15: error: implicit declaration of function 'swab'; did you mean 'xswab'? [-Wimplicit-function-declaration] 74 | #define xswab swab | ^~~~ cmsio1.c:118:8: note: in expansion of macro 'xswab' 118 | xswab((char*) p, (char*)p, (int) num_words * sizeof(WORD)); | ^~~~~ make[1]: *** [Makefile:24: foo2zjs-icc2ps] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/foo2zjs/icc2ps' make: *** [Makefile:528: all-icc2ps] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.pRrmpo (%build) RPM build warnings: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.pRrmpo (%build) I: [iurt_root_command] ERROR: chroot