D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/xwpick-2.20-28.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.zu7cv9 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf xwpick-2.20 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/xwpick-2.20.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd xwpick-2.20 + rm -rf /home/pterjan/rpmbuild/BUILD/xwpick-2.20-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/xwpick-2.20-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.9h6cL8 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd xwpick-2.20 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + xmkmf mv -f Makefile Makefile.bak imake -DUseInstalled -I/usr/share/X11/config + perl -pi -e 's|CXXDEBUGFLAGS = .*|CXXDEBUGFLAGS = -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|' Makefile + perl -pi -e 's|CDEBUGFLAGS = .*|CDEBUGFLAGS = -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|' Makefile + /usr/bin/make -O -j16 V=1 VERBOSE=1 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 -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -c -o GIFencode.o GIFencode.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from GIFencode.c:1: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ GIFencode.c: In function 'output': GIFencode.c:246:5: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 246 | memset((char *) HashTab, -1, sizeof(HashTab)); | ^~~~~~ GIFencode.c:3:1: note: include '' or provide a declaration of 'memset' 2 | #include +++ |+#include 3 | GIFencode.c:246:5: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch] 246 | memset((char *) HashTab, -1, sizeof(HashTab)); | ^~~~~~ GIFencode.c:246:5: note: include '' or provide a declaration of 'memset' make: *** [: GIFencode.o] 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 -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -c -o ImgToolKit.o ImgToolKit.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xlib.h:38, from ImgToolKit.c:31: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ ImgToolKit.c: In function 'ImgPause': ImgToolKit.c:108:7: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-declarations] 108 | if( XKeycodeToKeysym(theDsp, event.xkey.keycode, 0) == XK_space ){ | ^~ /usr/include/X11/Xlib.h:1687:15: note: declared here 1687 | extern KeySym XKeycodeToKeysym( | ^~~~~~~~~~~~~~~~ ImgToolKit.c: In function 'ImgFreeImage': ImgToolKit.c:131:23: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 131 | if (theImg->data) free(theImg->data); | ^~~~ ImgToolKit.c:37:1: note: include '' or provide a declaration of 'free' 36 | #include +++ |+#include 37 | ImgToolKit.c:131:23: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 131 | if (theImg->data) free(theImg->data); | ^~~~ ImgToolKit.c:131:23: note: include '' or provide a declaration of 'free' ImgToolKit.c: In function 'ImgPickPalette': ImgToolKit.c:197:14: warning: comparison between pointer and integer 197 | if (window != NULL && window != theRoot) | ^~ ImgToolKit.c: In function 'ImgFindRectangle': ImgToolKit.c:265:29: warning: comparison between pointer and integer 265 | if (win == theRoot && win == NULL) { | ^~ ImgToolKit.c:271:13: warning: comparison between pointer and integer 271 | if (state != NULL) { | ^~ ImgToolKit.c:272:10: error: assignment to 'Atom' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion] 272 | type = NULL; | ^ ImgToolKit.c:274:17: warning: comparison between pointer and integer 274 | while (kidW != NULL) { | ^~ ImgToolKit.c:279:16: warning: comparison between pointer and integer 279 | if (type != NULL) break; | ^~ ImgToolKit.c: In function 'ImgGetRectangle': ImgToolKit.c:421:14: warning: comparison between pointer and integer 421 | if (cW == NULL || cW == theRoot) { | ^~ ImgToolKit.c:440:12: error: implicit declaration of function 'abs' [-Wimplicit-function-declaration] 440 | iw = abs(x - x1) + 1; ih = abs(y - y1) + 1; | ^~~ ImgToolKit.c:440:12: note: include '' or provide a declaration of 'abs' ImgToolKit.c:464:13: warning: comparison between pointer and integer 464 | while (rW != NULL) { | ^~ ImgToolKit.c: In function 'ImgGetCurrentWindow': ImgToolKit.c:502:10: warning: comparison between pointer and integer 502 | if (cW == NULL) cW = theRoot; | ^~ ImgToolKit.c:508:13: warning: comparison between pointer and integer 508 | while (rW != NULL) { | ^~ make: *** [: ImgToolKit.o] Error 1 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 -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -c -o xwpick.o xwpick.c In file included from /usr/include/sys/types.h:25, from /usr/include/X11/Xlib.h:38, from xwpick.c:19: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ xwpick.c:168:1: error: return type defaults to 'int' [-Wimplicit-int] 168 | main(ArgC, ArgV) | ^~~~ xwpick.c: In function 'main': xwpick.c:443:46: warning: format '%d' expects argument of type 'int', but argument 7 has type 'long int' [-Wformat=] 443 | fprintf(stderr,"%s %d colors %dx%d size %d bytes\n", | ~^ | | | int | %ld 444 | FileName,ncol,width,height,irep); | ~~~~ | | | long int xwpick.c:248:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 248 | scanf("%s",FileName); | ^~~~~~~~~~~~~~~~~~~~ make: *** [: xwpick.o] Error 1 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 -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -c -o PPMencode.o PPMencode.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from PPMencode.c:1: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ PPMencode.c: In function 'PPMencode': PPMencode.c:70:23: warning: '%d' directive writing between 1 and 10 bytes into a region of size between 7 and 13 [-Wformat-overflow=] 70 | sprintf(s,"P6 %d %d %d\n", Width, Height, maxcol); | ^~ PPMencode.c:70:13: note: directive argument in the range [0, 2147483647] 70 | sprintf(s,"P6 %d %d %d\n", Width, Height, maxcol); | ^~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:980: In function 'sprintf', inlined from 'PPMencode' at PPMencode.c:70:3: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 10 and 25 bytes into a destination of size 20 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ 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 -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -c -o PCXencode.o PCXencode.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from PCXencode.c:1: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ 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 -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -c -o PICTencode.o PICTencode.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from PICTencode.c:1: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ 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 -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -c -o PSencode.o PSencode.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from PSencode.c:1: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ 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 -I/usr/include -Dlinux -D__amd64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -c -o PS_LZWencode.o PS_LZWencode.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from PS_LZWencode.c:20: /usr/include/features.h:196:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 196 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.9h6cL8 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.9h6cL8 (%build) I: [iurt_root_command] ERROR: chroot