D: [iurt_root_command] chroot warning: %patchN is deprecated (3 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/ppmtomd-1.6-8.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.aUF42Q + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf ppmtomd-1.6 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/ppmtomd-1.6.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ppmtomd-1.6 + rm -rf /home/pterjan/rpmbuild/BUILD/ppmtomd-1.6-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/ppmtomd-1.6-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (ppmtomd-mdv_conf.diff):' Patch #0 (ppmtomd-mdv_conf.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file Makefile + echo 'Patch #1 (ppmtomd-1.5-LDFLAGS.diff):' Patch #1 (ppmtomd-1.5-LDFLAGS.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file Makefile + echo 'Patch #2 (ppmtomd-1.6-mdv-fix-netpbm-includes.patch):' Patch #2 (ppmtomd-1.6-mdv-fix-netpbm-includes.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file ppmtomd.c + chmod 644 LICENCE Makefile README dyesubcolcor.c mddata.c mddata.h photocolcor.c ppmtomd.c ppmtomd.man version.h vphotocolcor.c + 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.iLq3F8 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd ppmtomd-1.6 + '[' 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 -c -o mddata.o mddata.c 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 -c -o photocolcor.o photocolcor.c 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 -c -o dyesubcolcor.o dyesubcolcor.c 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 -c -o vphotocolcor.o vphotocolcor.c gcc -O2 -W -Wall -Wstrict-prototypes -c ppmtomd.c ppmtomd.c: In function 'main': ppmtomd.c:1725:36: warning: variable 'hascmyk' set but not used [-Wunused-but-set-variable] 1725 | int hasfoil = 0, hasspot = 0, hascmyk = 0; | ^~~~~~~ ppmtomd.c:1725:23: warning: variable 'hasspot' set but not used [-Wunused-but-set-variable] 1725 | int hasfoil = 0, hasspot = 0, hascmyk = 0; | ^~~~~~~ ppmtomd.c:2204:59: warning: pointer targets in passing argument 2 of 'page_info.out_function' differ in signedness [-Wpointer-sign] 2204 | page_info.out_function(page_info.comp_fds[i],buffer,4); | ^~~~~~ | | | char * ppmtomd.c:2204:59: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2224:59: warning: pointer targets in passing argument 2 of 'page_info.out_function' differ in signedness [-Wpointer-sign] 2224 | page_info.out_function(page_info.comp_fds[i],buffer,5); | ^~~~~~ | | | char * ppmtomd.c:2224:59: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2229:61: warning: pointer targets in passing argument 2 of 'page_info.out_function' differ in signedness [-Wpointer-sign] 2229 | page_info.out_function(page_info.comp_fds[i],buffer,5); | ^~~~~~ | | | char * ppmtomd.c:2229:61: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2234:59: warning: pointer targets in passing argument 2 of 'page_info.out_function' differ in signedness [-Wpointer-sign] 2234 | page_info.out_function(page_info.comp_fds[i],buffer,5); | ^~~~~~ | | | char * ppmtomd.c:2234:59: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2240:59: warning: pointer targets in passing argument 2 of 'page_info.out_function' differ in signedness [-Wpointer-sign] 2240 | page_info.out_function(page_info.comp_fds[i],buffer,5); | ^~~~~~ | | | char * ppmtomd.c:2240:59: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2244:57: warning: pointer targets in passing argument 2 of 'page_info.out_function' differ in signedness [-Wpointer-sign] 2244 | page_info.out_function(page_info.comp_fds[i],buffer,5); | ^~~~~~ | | | char * ppmtomd.c:2244:57: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2264:59: warning: pointer targets in passing argument 2 of 'page_info.out_function' differ in signedness [-Wpointer-sign] 2264 | page_info.out_function(page_info.comp_fds[i],buffer,5); | ^~~~~~ | | | char * ppmtomd.c:2264:59: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2284:40: warning: pointer targets in passing argument 2 of 'page_info.out_function' differ in signedness [-Wpointer-sign] 2284 | page_info.out_function(STDOUT,buffer,5); | ^~~~~~ | | | char * ppmtomd.c:2284:40: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2313:38: warning: pointer targets in passing argument 2 of 'page_info.out_function' differ in signedness [-Wpointer-sign] 2313 | page_info.out_function(STDOUT,buffer,1); | ^~~~~~ | | | char * ppmtomd.c:2313:38: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2326:38: warning: pointer targets in passing argument 2 of 'page_info.out_function' differ in signedness [-Wpointer-sign] 2326 | page_info.out_function(STDOUT,buffer,5); | ^~~~~~ | | | char * ppmtomd.c:2326:38: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2334:40: warning: pointer targets in passing argument 2 of 'page_info.out_function' differ in signedness [-Wpointer-sign] 2334 | page_info.out_function(STDOUT,buffer,4); | ^~~~~~ | | | char * ppmtomd.c:2334:40: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2337:38: warning: pointer targets in passing argument 2 of 'page_info.out_function' differ in signedness [-Wpointer-sign] 2337 | page_info.out_function(STDOUT,buffer,1); | ^~~~~~ | | | char * ppmtomd.c:2337:38: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2340:38: warning: pointer targets in passing argument 2 of 'page_info.out_function' differ in signedness [-Wpointer-sign] 2340 | page_info.out_function(STDOUT,buffer,4); | ^~~~~~ | | | char * ppmtomd.c:2340:38: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2344:40: warning: pointer targets in passing argument 2 of 'page_info.out_function' differ in signedness [-Wpointer-sign] 2344 | page_info.out_function(STDOUT,buffer,2); | ^~~~~~ | | | char * ppmtomd.c:2344:40: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c: In function 'rgl_init_page': ppmtomd.c:2488:30: warning: pointer targets in passing argument 2 of 'page_info->out_function' differ in signedness [-Wpointer-sign] 2488 | page_info->out_function(fd,"\033%\200A",4); /* select RGL mode */ /* resolution defaults to 600 dpi */ | ^~~~~~~~~~~~ | | | char * ppmtomd.c:2488:30: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2490:30: warning: pointer targets in passing argument 2 of 'page_info->out_function' differ in signedness [-Wpointer-sign] 2490 | page_info->out_function(fd,buffer,6); | ^~~~~~ | | | char * ppmtomd.c:2490:30: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2495:30: warning: pointer targets in passing argument 2 of 'page_info->out_function' differ in signedness [-Wpointer-sign] 2495 | page_info->out_function(fd,buffer,6); | ^~~~~~ | | | char * ppmtomd.c:2495:30: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2497:30: warning: pointer targets in passing argument 2 of 'page_info->out_function' differ in signedness [-Wpointer-sign] 2497 | page_info->out_function(fd,buffer,6); | ^~~~~~ | | | char * ppmtomd.c:2497:30: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2501:32: warning: pointer targets in passing argument 2 of 'page_info->out_function' differ in signedness [-Wpointer-sign] 2501 | page_info->out_function(fd,buffer,6); | ^~~~~~ | | | char * ppmtomd.c:2501:32: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2506:32: warning: pointer targets in passing argument 2 of 'page_info->out_function' differ in signedness [-Wpointer-sign] 2506 | page_info->out_function(fd,buffer,6); | ^~~~~~ | | | char * ppmtomd.c:2506:32: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2511:32: warning: pointer targets in passing argument 2 of 'page_info->out_function' differ in signedness [-Wpointer-sign] 2511 | page_info->out_function(fd,buffer,5); | ^~~~~~ | | | char * ppmtomd.c:2511:32: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2516:32: warning: pointer targets in passing argument 2 of 'page_info->out_function' differ in signedness [-Wpointer-sign] 2516 | page_info->out_function(fd,buffer,5); | ^~~~~~ | | | char * ppmtomd.c:2516:32: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2522:32: warning: pointer targets in passing argument 2 of 'page_info->out_function' differ in signedness [-Wpointer-sign] 2522 | page_info->out_function(fd,buffer,5); | ^~~~~~ | | | char * ppmtomd.c:2522:32: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2543:32: warning: pointer targets in passing argument 2 of 'page_info->out_function' differ in signedness [-Wpointer-sign] 2543 | page_info->out_function(fd,buffer,num+6); | ^~~~~~ | | | char * ppmtomd.c:2543:32: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2550:32: warning: pointer targets in passing argument 2 of 'page_info->out_function' differ in signedness [-Wpointer-sign] 2550 | page_info->out_function(fd,buffer,6); | ^~~~~~ | | | char * ppmtomd.c:2550:32: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2554:32: warning: pointer targets in passing argument 2 of 'page_info->out_function' differ in signedness [-Wpointer-sign] 2554 | page_info->out_function(fd,buffer,6); | ^~~~~~ | | | char * ppmtomd.c:2554:32: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:2561:32: warning: pointer targets in passing argument 2 of 'page_info->out_function' differ in signedness [-Wpointer-sign] 2561 | page_info->out_function(fd,buffer,5); | ^~~~~~ | | | char * ppmtomd.c:2561:32: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c: In function 'print_page': ppmtomd.c:581:2: warning: macro expands to multiple statements [-Wmultistatement-macros] 581 | if ( (h)->comps[c].y == 0 ) { (h)->comps[c].hcol++ ; } else { \ | ^~ ppmtomd.c:3073:62: note: in expansion of macro 'ht_inc' 3073 | if (vphoto) { vph_ht_inc(&kht,compY); } else ht_inc(&kht,compY); | ^~~~~~ ppmtomd.c:3073:57: note: some parts of macro expansion are not guarded by this 'else' clause 3073 | if (vphoto) { vph_ht_inc(&kht,compY); } else ht_inc(&kht,compY); | ^~~~ ppmtomd.c:581:2: warning: macro expands to multiple statements [-Wmultistatement-macros] 581 | if ( (h)->comps[c].y == 0 ) { (h)->comps[c].hcol++ ; } else { \ | ^~ ppmtomd.c:3079:64: note: in expansion of macro 'ht_inc' 3079 | if ( vphoto ) { vph_ht_inc(&kht,compK); } else ht_inc(&kht,compK); | ^~~~~~ ppmtomd.c:3079:59: note: some parts of macro expansion are not guarded by this 'else' clause 3079 | if ( vphoto ) { vph_ht_inc(&kht,compK); } else ht_inc(&kht,compK); | ^~~~ ppmtomd.c:581:2: warning: macro expands to multiple statements [-Wmultistatement-macros] 581 | if ( (h)->comps[c].y == 0 ) { (h)->comps[c].hcol++ ; } else { \ | ^~ ppmtomd.c:3085:64: note: in expansion of macro 'ht_inc' 3085 | if ( vphoto ) { vph_ht_inc(&kht,compC); } else ht_inc(&kht,compC); | ^~~~~~ ppmtomd.c:3085:59: note: some parts of macro expansion are not guarded by this 'else' clause 3085 | if ( vphoto ) { vph_ht_inc(&kht,compC); } else ht_inc(&kht,compC); | ^~~~ ppmtomd.c:581:2: warning: macro expands to multiple statements [-Wmultistatement-macros] 581 | if ( (h)->comps[c].y == 0 ) { (h)->comps[c].hcol++ ; } else { \ | ^~ ppmtomd.c:3091:62: note: in expansion of macro 'ht_inc' 3091 | if (vphoto) { vph_ht_inc(&kht,compM); } else ht_inc(&kht,compM); | ^~~~~~ ppmtomd.c:3091:57: note: some parts of macro expansion are not guarded by this 'else' clause 3091 | if (vphoto) { vph_ht_inc(&kht,compM); } else ht_inc(&kht,compM); | ^~~~ ppmtomd.c:3241:22: warning: pointer targets in passing argument 2 of 'prn_out' differ in signedness [-Wpointer-sign] 3241 | prn_out(STDOUT,(char *)(pixels),cols); | ^~~~~~~~~~~~~~~~ | | | char * ppmtomd.c:3241:22: note: expected 'unsigned char *' but argument is of type 'char *' ppmtomd.c:3269:37: warning: pointer targets in passing argument 1 of 'packbits' differ in signedness [-Wpointer-sign] 3269 | n = packbits(outbytes[i][0],cols,outu,outc); | ~~~~~~~~~~~^~~ | | | unsigned char * ppmtomd.c:2362:27: note: expected 'char *' but argument is of type 'unsigned char *' 2362 | static int packbits(char *bp, int n, char *outu, char *outc) | ~~~~~~^~ ppmtomd.c:3269:46: warning: pointer targets in passing argument 3 of 'packbits' differ in signedness [-Wpointer-sign] 3269 | n = packbits(outbytes[i][0],cols,outu,outc); | ^~~~ | | | unsigned char * ppmtomd.c:2362:44: note: expected 'char *' but argument is of type 'unsigned char *' 2362 | static int packbits(char *bp, int n, char *outu, char *outc) | ~~~~~~^~~~ ppmtomd.c:3269:51: warning: pointer targets in passing argument 4 of 'packbits' differ in signedness [-Wpointer-sign] 3269 | n = packbits(outbytes[i][0],cols,outu,outc); | ^~~~ | | | unsigned char * ppmtomd.c:2362:56: note: expected 'char *' but argument is of type 'unsigned char *' 2362 | static int packbits(char *bp, int n, char *outu, char *outc) | ~~~~~~^~~~ ppmtomd.c:3306:23: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 3306 | sprintf(buffer,"\033*b%c%cM",0,0); | ^~~~~~ | | | unsigned char * In file included from ppmtomd.c:25: /usr/include/stdio.h:365:38: note: expected 'char * restrict' but argument is of type 'unsigned char *' 365 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ ppmtomd.c:3313:23: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 3313 | sprintf(buffer,"\033*b%c%cM",2,0); | ^~~~~~ | | | unsigned char * /usr/include/stdio.h:365:38: note: expected 'char * restrict' but argument is of type 'unsigned char *' 365 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ ppmtomd.c:3320:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 3320 | sprintf(buffer,"\033*b%c%cY",rowstoskip[i]%256,rowstoskip[i]/256); | ^~~~~~ | | | unsigned char * /usr/include/stdio.h:365:38: note: expected 'char * restrict' but argument is of type 'unsigned char *' 365 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ ppmtomd.c:3327:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 3327 | sprintf(buffer,"\033\032%c%cc",page_info->comp_colours[i],0); | ^~~~~~ | | | unsigned char * /usr/include/stdio.h:365:38: note: expected 'char * restrict' but argument is of type 'unsigned char *' 365 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ ppmtomd.c:3335:21: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 3335 | sprintf(buffer,"\033*b%c%cV",0,0); | ^~~~~~ | | | unsigned char * /usr/include/stdio.h:365:38: note: expected 'char * restrict' but argument is of type 'unsigned char *' 365 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ ppmtomd.c:3339:19: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 3339 | sprintf(buffer,"\033*b%c%c%c", | ^~~~~~ | | | unsigned char * /usr/include/stdio.h:365:38: note: expected 'char * restrict' but argument is of type 'unsigned char *' 365 | extern int sprintf (char *__restrict __s, | ~~~~~~~~~~~~~~~~~^~~ ppmtomd.c:2595:7: warning: variable 'black' set but not used [-Wunused-but-set-variable] 2595 | int black; | ^~~~~ ppmtomd.c:2584:7: warning: variable 'hrhalf' set but not used [-Wunused-but-set-variable] 2584 | int hrhalf, hrtoggle ; /* variables used in highres halftoning */ | ^~~~~~ ppmtomd.c: At top level: ppmtomd.c:772:18: warning: 'tile44' defined but not used [-Wunused-const-variable=] 772 | static const int tile44[4*4] = { | ^~~~~~ ppmtomd.c:764:18: warning: 'tile74' defined but not used [-Wunused-const-variable=] 764 | static const int tile74[7*4] = { | ^~~~~~ ppmtomd.c:684:18: warning: 'dithmat5line' defined but not used [-Wunused-const-variable=] 684 | static const int dithmat5line[5*5] = { | ^~~~~~~~~~~~ ppmtomd.c:676:18: warning: 'dithmat4line' defined but not used [-Wunused-const-variable=] 676 | static const int dithmat4line[4*4] = { | ^~~~~~~~~~~~ ppmtomd.c:655:18: warning: 'dithmat8line' defined but not used [-Wunused-const-variable=] 655 | static const int dithmat8line[8*8] = { | ^~~~~~~~~~~~ ppmtomd.c:15:19: warning: 'rcsid' defined but not used [-Wunused-const-variable=] 15 | static const char rcsid[] = "$Header: /home/jcb/piva/ppmtomd/RCS/ppmtomd.c,v 2.18 2009/09/09 16:23:27 jcb Exp $"; | ^~~~~ 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 ppmtomd ppmtomd.o mddata.o photocolcor.o vphotocolcor.o dyesubcolcor.o -lnetpbm -lm /usr/bin/ld: ppmtomd.o: relocation R_X86_64_32 against `.data' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: failed to set dynamic section sizes: bad value collect2: error: ld returned 1 exit status make: *** [Makefile:43: ppmtomd] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.iLq3F8 (%build) RPM build warnings: %patchN is deprecated (3 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.iLq3F8 (%build) I: [iurt_root_command] ERROR: chroot