D: [iurt_root_command] chroot warning: Macro expanded in comment on line 54: %{rname}" talks directly to the parallel port I/O 0x378, not to /dev/lp0 Installing /home/pterjan/rpmbuild/SRPMS/cups-drivers-lbp660-0.3.1-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.vV3sYe + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf lbp660-0.3.1 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/lbp660-0.3.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd lbp660-0.3.1 + rm -rf /home/pterjan/rpmbuild/BUILD/lbp660-0.3.1-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/lbp660-0.3.1-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/lbp660-0.3.1-ldflags.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/lbp660-0.3.1-gcc7.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.VDRYDt + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd lbp660-0.3.1 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j16 V=1 VERBOSE=1 'CFLAGS=-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' 'LDFLAGS= -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' gcc -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 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags lbp660.c -o lbp660 lbp660.c: In function 'get_bitmap': lbp660.c:162:17: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 162 | memset(bmbuf,0,800); | ^~~~~~ lbp660.c:29:1: note: include '' or provide a declaration of 'memset' 28 | #include "lbp660.h" +++ |+#include 29 | lbp660.c:162:17: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 162 | memset(bmbuf,0,800); | ^~~~~~ lbp660.c:162:17: note: include '' or provide a declaration of 'memset' lbp660.c: In function 'compress_bitmap': lbp660.c:252:13: error: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 252 | if (strncmp(cbm,"P4",2)) { | ^~~~~~~ lbp660.c:252:13: note: include '' or provide a declaration of 'strncmp' lbp660.c:252:30: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 252 | if (strncmp(cbm,"P4",2)) { | ^ : note: built-in 'strncmp' declared here lbp660.c:254:49: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long int' [-Wformat=] 254 | fprintf(stderr,"file position: %x\n",ftell(bitmapf)); | ~^ ~~~~~~~~~~~~~~ | | | | | long int | unsigned int | %lx lbp660.c: In function 'errorexit': lbp660.c:410:4: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 410 | exit(1); | ^~~~ lbp660.c:29:1: note: include '' or provide a declaration of 'exit' 28 | #include "lbp660.h" +++ |+#include 29 | lbp660.c:410:4: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 410 | exit(1); | ^~~~ lbp660.c:410:4: note: include '' or provide a declaration of 'exit' lbp660.c: In function 'print_band': lbp660.c:560:21: warning: too many arguments for format [-Wformat-extra-args] 560 | fprintf(stderr, "Waiting for ready status...\n", statusin()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lbp660.c:572:42: warning: too many arguments for format [-Wformat-extra-args] 572 | fprintf(stderr, "Reiniting band...\n", statusin()); | ^~~~~~~~~~~~~~~~~~~~~ lbp660.c:608:44: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat=] 608 | fprintf(stderr, "Band inited (0x%x, %d)\n", statusin(), ((ntv.tv_usec - ltv.tv_usec) + ((ntv.tv_sec - ltv.tv_sec)*1000000))); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int long int | %ld lbp660.c: In function 'main': lbp660.c:949:25: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 949 | strcpy(gname,"/tmp/lbp660-XXXXXX"); | ^~~~~~ lbp660.c:949:25: note: include '' or provide a declaration of 'strcpy' lbp660.c:949:25: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] lbp660.c:949:25: note: include '' or provide a declaration of 'strcpy' lbp660.c:950:34: error: implicit declaration of function 'mkstemp' [-Wimplicit-function-declaration] 950 | if ((tfd=mkstemp(gname))<0) { | ^~~~~~~ lbp660.c: At top level: lbp660.c:434:16: warning: 'inb' is static but used in inline function 'statusin' which is not static 434 | return inb(STATUS); | ^~~ lbp660.c:426:20: warning: 'inb' is static but used in inline function 'checkctrl' which is not static 426 | int ctrl = inb(CONTROL); | ^~~ lbp660.c:422:16: warning: 'inb' is static but used in inline function 'ctrlin' which is not static 422 | return inb(CONTROL); | ^~~ lbp660.c:418:9: warning: 'outb' is static but used in inline function 'ctrlout' which is not static 418 | outb(cmd, CONTROL); | ^~~~ lbp660.c:414:9: warning: 'outb' is static but used in inline function 'dataout' which is not static 414 | outb(data, DATA); | ^~~~ lbp660.c: In function 'bitmap_seek': lbp660.c:150:25: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 150 | fread(bmbuf,1,sizeof(garbage),bitmapf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lbp660.c:153:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 153 | fread(bmbuf,1,offset,bitmapf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lbp660.c: In function 'get_bitmap': lbp660.c:166:33: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 166 | fread(bmbuf,1,800,bitmapf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ lbp660.c:170:33: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 170 | fread(bmbuf,1,bmwidth,bitmapf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lbp660.c: In function 'compress_bitmap': lbp660.c:259:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 259 | fgets(cbm,200,bitmapf); | ^~~~~~~~~~~~~~~~~~~~~~ lbp660.c: In function 'print_page': lbp660.c:811:16: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 811 | fread( cbm,size*4,1,cbmf ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:15: lbp660] Error 1 make: *** Waiting for unfinished jobs.... gcc -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 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags lbp460.c -o lbp460 lbp460.c: In function 'compress_bitmap': lbp460.c:287:49: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long int' [-Wformat=] 287 | fprintf(stderr,"file position: %x\n",ftell(bitmapf)); | ~^ ~~~~~~~~~~~~~~ | | | | | long int | unsigned int | %lx lbp460.c: At top level: lbp460.c:465:16: warning: 'inb' is static but used in inline function 'statusin' which is not static 465 | return inb(STATUS); | ^~~ lbp460.c:451:16: warning: 'inb' is static but used in inline function 'ctrlin' which is not static 451 | return inb(CONTROL); | ^~~ lbp460.c:446:9: warning: 'outb' is static but used in inline function 'ctrlout' which is not static 446 | outb(cmd, CONTROL); | ^~~~ lbp460.c:441:9: warning: 'outb' is static but used in inline function 'dataout' which is not static 441 | outb(data, DATA); | ^~~~ lbp460.c: In function 'bitmap_seek': lbp460.c:183:25: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 183 | fread(bmbuf,1,sizeof(garbage),bitmapf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lbp460.c:186:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 186 | fread(bmbuf,1,offset,bitmapf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lbp460.c: In function 'get_bitmap': lbp460.c:199:33: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 199 | fread(bmbuf,1,800,bitmapf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ lbp460.c:203:33: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 203 | fread(bmbuf,1,bmwidth,bitmapf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lbp460.c: In function 'compress_bitmap': lbp460.c:292:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 292 | fgets(cbm,200,bitmapf); | ^~~~~~~~~~~~~~~~~~~~~~ lbp460.c: In function 'print_page': lbp460.c:793:41: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 793 | fread( cbm,size*4,1,cbmf); | ^~~~~~~~~~~~~~~~~~~~~~~~~ chmod +s lbp460 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.VDRYDt (%build) RPM build warnings: Macro expanded in comment on line 54: %{rname}" talks directly to the parallel port I/O 0x378, not to /dev/lp0 RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.VDRYDt (%build) I: [iurt_root_command] ERROR: chroot