D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/cups-drivers-lxx74-0.8.4.2-18.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.WVX58L + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf lxx74-cups-0.8.4.2 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/lxx74-cups-0.8.4.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd lxx74-cups-0.8.4.2 + rm -rf /home/pterjan/rpmbuild/BUILD/lxx74-cups-0.8.4.2-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/lxx74-cups-0.8.4.2-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.KBnwmt + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd lxx74-cups-0.8.4.2 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + perl -p -i -e 's|gcc|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|g' Makefile + make clean rm -f rastertolxx74 *.o *~ *.bak *.ppd.gz *.ppd rm -rf ppd lxx74-cups-* + /usr/bin/make -O -j16 V=1 VERBOSE=1 ppdc lxx74.drv cd ppd; for f in *.ppd; do gzip $f && mv -f $f.gz ..; done 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 -g -c rastertolxx74.c rastertolxx74.c:1377:8: error: type defaults to 'int' in declaration of 'newpage' [-Wimplicit-int] 1377 | static newpage=0; | ^~~~~~~ rastertolxx74.c: In function 'lxx74_print_page': rastertolxx74.c:170:45: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'off_t' {aka 'long int'} [-Wformat=] 170 | #define debug(format, ...) fprintf(stderr, "DEBUG: %s:%d: " format ".\n", __FILE__, __LINE__, ## __VA_ARGS__) | ^~~~~~~~~~~~~~~~ rastertolxx74.c:1399:5: note: in expansion of macro 'debug' 1399 | debug("Read header from file positions %u to %u (%d bytes)", pos1, pos2, pos2-pos1); | ^~~~~ rastertolxx74.c:170:45: warning: format '%u' expects argument of type 'unsigned int', but argument 6 has type 'off_t' {aka 'long int'} [-Wformat=] 170 | #define debug(format, ...) fprintf(stderr, "DEBUG: %s:%d: " format ".\n", __FILE__, __LINE__, ## __VA_ARGS__) | ^~~~~~~~~~~~~~~~ rastertolxx74.c:1399:5: note: in expansion of macro 'debug' 1399 | debug("Read header from file positions %u to %u (%d bytes)", pos1, pos2, pos2-pos1); | ^~~~~ rastertolxx74.c:170:45: warning: format '%d' expects argument of type 'int', but argument 7 has type 'off_t' {aka 'long int'} [-Wformat=] 170 | #define debug(format, ...) fprintf(stderr, "DEBUG: %s:%d: " format ".\n", __FILE__, __LINE__, ## __VA_ARGS__) | ^~~~~~~~~~~~~~~~ rastertolxx74.c:1399:5: note: in expansion of macro 'debug' 1399 | debug("Read header from file positions %u to %u (%d bytes)", pos1, pos2, pos2-pos1); | ^~~~~ rastertolxx74.c:170:45: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long int' [-Wformat=] 170 | #define debug(format, ...) fprintf(stderr, "DEBUG: %s:%d: " format ".\n", __FILE__, __LINE__, ## __VA_ARGS__) | ^~~~~~~~~~~~~~~~ rastertolxx74.c:1400:5: note: in expansion of macro 'debug' 1400 | debug("HWResolution starts at offset %d",(void *)&cups_header->HWResolution[0] - (void *)cups_header); | ^~~~~ rastertolxx74.c:170:45: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'off_t' {aka 'long int'} [-Wformat=] 170 | #define debug(format, ...) fprintf(stderr, "DEBUG: %s:%d: " format ".\n", __FILE__, __LINE__, ## __VA_ARGS__) | ^~~~~~~~~~~~~~~~ rastertolxx74.c:1450:5: note: in expansion of macro 'debug' 1450 | debug("Expect next page at offset %u", pos2 + (cups_header->cupsBytesPerLine * cups_header->cupsHeight)); | ^~~~~ rastertolxx74.c: At top level: rastertolxx74.c:1638:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1638 | #define LXX74_MEMBER_OFFSET(member) ( (int) & ((lxx74_device_t *)0)->member ) | ^ rastertolxx74.c:1640:27: note: in expansion of macro 'LXX74_MEMBER_OFFSET' 1640 | { "BlackAdjustX=", 1, LXX74_MEMBER_OFFSET(black_adj_x), -25, 25 }, | ^~~~~~~~~~~~~~~~~~~ rastertolxx74.c:1638:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1638 | #define LXX74_MEMBER_OFFSET(member) ( (int) & ((lxx74_device_t *)0)->member ) | ^ rastertolxx74.c:1641:27: note: in expansion of macro 'LXX74_MEMBER_OFFSET' 1641 | { "BlackAdjustY=", 1, LXX74_MEMBER_OFFSET(black_adj_y), -25, 25 }, | ^~~~~~~~~~~~~~~~~~~ rastertolxx74.c:1638:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1638 | #define LXX74_MEMBER_OFFSET(member) ( (int) & ((lxx74_device_t *)0)->member ) | ^ rastertolxx74.c:1642:27: note: in expansion of macro 'LXX74_MEMBER_OFFSET' 1642 | { "RTLAdjust=", 1, LXX74_MEMBER_OFFSET(rtl_adj), -25, 25 }, | ^~~~~~~~~~~~~~~~~~~ rastertolxx74.c:1638:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1638 | #define LXX74_MEMBER_OFFSET(member) ( (int) & ((lxx74_device_t *)0)->member ) | ^ rastertolxx74.c:1643:27: note: in expansion of macro 'LXX74_MEMBER_OFFSET' 1643 | { "WidthPixels=", 1, LXX74_MEMBER_OFFSET(width), -25, 25 }, | ^~~~~~~~~~~~~~~~~~~ rastertolxx74.c:1638:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1638 | #define LXX74_MEMBER_OFFSET(member) ( (int) & ((lxx74_device_t *)0)->member ) | ^ rastertolxx74.c:1644:27: note: in expansion of macro 'LXX74_MEMBER_OFFSET' 1644 | { "HeightPixels=", 1, LXX74_MEMBER_OFFSET(height), -25, 25 }, | ^~~~~~~~~~~~~~~~~~~ make: *** [Makefile:12: rastertolxx74.o] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.KBnwmt (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.KBnwmt (%build) I: [iurt_root_command] ERROR: chroot