D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/xmbdfed-4.7-13.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Urc0O8 sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ABylqW + umask 022 + cd /home/pterjan/rpmbuild/BUILD/xmbdfed-4.7-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/xmbdfed-4.7-build + rm -rf xmbdfed-4.7 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/xmbdfed-4.7.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd xmbdfed-4.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/xmbdfed-4.7-patch1 + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/xmbdfed-4.7-linux.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/xmbdfed-4.7-staticfix.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/xmbdfed-4.7-getline.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/xmbdfed-4.7-mga-format-security_bdf.c.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/xmbdfed-build-flags.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/xmbdfed-4.7-gcc10.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + 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.iWeyDF + umask 022 + cd /home/pterjan/rpmbuild/BUILD/xmbdfed-4.7-build + 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' + export CFLAGS + CXXFLAGS='-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' + export CXXFLAGS + FFLAGS='-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 ' + export FFLAGS + FCFLAGS='-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 ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + 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' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd xmbdfed-4.7 + '[' 1 -eq 1 ']' + '[' 1 -eq 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' + export CFLAGS + CXXFLAGS='-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' + export CXXFLAGS + FFLAGS='-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 ' + export FFLAGS + FCFLAGS='-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 ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + 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' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/make -O -j48 V=1 VERBOSE=1 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c bdfgrab.c -o bdfgrab.o bdfgrab.c: In function 'bdf_load_server_font': bdfgrab.c:309:23: error: assignment to 'int (*)(void)' from incompatible pointer type 'XErrorHandler' {aka 'int (*)(Display *, XErrorEvent *)'} [-Wincompatible-pointer-types] 309 | old_error_handler = XSetErrorHandler(error_handler); | ^ In file included from bdfgrab.c:44: /usr/include/X11/Xlib.h:1843:15: note: 'XErrorHandler' declared here 1843 | typedef int (*XErrorHandler) ( /* WARNING, this type not in Xlib spec */ | ^~~~~~~~~~~~~ bdfgrab.c:350:22: error: passing argument 1 of 'XSetErrorHandler' from incompatible pointer type [-Wincompatible-pointer-types] 350 | XSetErrorHandler(old_error_handler); | ^~~~~~~~~~~~~~~~~ | | | int (*)(void) /usr/include/X11/Xlib.h:1849:5: note: expected 'XErrorHandler' {aka 'int (*)(Display *, XErrorEvent *)'} but argument is of type 'int (*)(void)' 1849 | XErrorHandler /* handler */ | ^~~~~~~~~~~~~ /usr/include/X11/Xlib.h:1843:15: note: 'XErrorHandler' declared here 1843 | typedef int (*XErrorHandler) ( /* WARNING, this type not in Xlib spec */ | ^~~~~~~~~~~~~ make: *** [Makefile:141: bdfgrab.o] Error 1 make: *** Waiting for unfinished jobs.... 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c prog.c -o prog.o 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c comment.c -o comment.o 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c help.c -o help.o 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c test.c -o test.o 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c bdfcons.c -o bdfcons.o bdfcons.c: In function 'bdf_load_console_font': bdfcons.c:547:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 547 | fread((char *) hdr, sizeof(unsigned char), 4, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bdfcons.c:567:20: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 567 | (void) fread((char *) &vhdr, sizeof(vfhdr_t), 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bdfcons.c: In function '_bdf_load_vfont': bdfcons.c:121:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 121 | fread((char *) metrics, sizeof(vfmetrics_t), 256, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bdfcons.c:250:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 250 | fread((char *) gp->bitmap, gp->bytes, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bdfcons.c: In function '_bdf_load_simple': bdfcons.c:365:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 365 | fread((char *) gp->bitmap, height, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c bdfgname.c -o bdfgname.o 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c finfo.c -o finfo.o 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c otfin.c -o otfin.o 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c grab.c -o grab.o 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c ops.c -o ops.o 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c ProgBar.c -o ProgBar.o 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c fntin.c -o fntin.o fntin.c: In function 'SelectAction': fntin.c:67:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 67 | select_action = (int) client_data; | ^ 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c props.c -o props.o 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c color.c -o color.o color.c: In function 'AdjustColor': color.c:236:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 236 | which = (int) client_data; | ^ color.c: In function 'BuildColorDialog': color.c:433:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 433 | (XtPointer) i); | ^ color.c:435:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 435 | (XtPointer) i); | ^ 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c bdfotf.c -o bdfotf.o 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c bdfpsf.c -o bdfpsf.o bdfpsf.c: In function 'cmplen': bdfpsf.c:477:5: warning: old-style function definition [-Wold-style-definition] 477 | cmplen(a, b) | ^~~~~~ bdfpsf.c: In function 'bdf_load_psf': bdfpsf.c:637:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 637 | fread((char *) &hdr, sizeof(_bdf_psfhdr_t), 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bdfpsf.c:731:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 731 | fread((char *) gp->bitmap, hdr.bpc, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c GTest.c -o GTest.o 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c bdffnt.c -o bdffnt.o bdffnt.c: In function 'bdffnt_open_font': bdffnt.c:531:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 531 | fread((char *) &sshift, 1, sizeof(unsigned short), in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bdffnt.c:591:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 591 | fread((char *) &version, sizeof(unsigned short), 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bdffnt.c: In function 'bdffnt_load_font': bdffnt.c:881:9: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 881 | fread((char *) &tmp, sizeof(unsigned short), 1, font->in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bdffnt.c:886:13: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 886 | fread((char *) &cp->offset, sizeof(unsigned long), 1, font->in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bdffnt.c:890:13: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 890 | fread((char *) &tmp, sizeof(unsigned short), 1, font->in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bdffnt.c:980:11: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 980 | fread((char *) gp->bitmap, gp->bytes, 1, font->in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c setup.c -o setup.o setup.c: In function 'SetProgBar': setup.c:373:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 373 | which = (int) client_data; | ^ setup.c: In function 'SetPixelSize': setup.c:397:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 397 | setup.pixsize = (int) client_data; | ^ setup.c: In function 'SetBitsPerPixel': setup.c:410:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 410 | if ((setup.bpp = (int) client_data) > 1) { | ^ setup.c:411:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 411 | xmbdfedAllocateColors(top, (int) client_data); | ^ setup.c: In function 'SetEOLType': setup.c:427:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 427 | setup.eol = (int) client_data; | ^ setup.c: In function 'SetGlyphFileName': setup.c:445:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 445 | adobe = (int) client_data; | ^ setup.c: In function 'ShowFileBrowser': setup.c:500:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 500 | adobe = (int) client_data; | ^ setup.c: In function 'DoOtherOptions': setup.c:736:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 736 | (XtPointer) i); | ^ 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c bdfpkgf.c -o bdfpkgf.o bdfpkgf.c: In function 'bdf_load_mf_font': bdfpkgf.c:1577:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 1577 | fread((char *) mfmag, 2, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bdfpkgf.c: In function '_bdf_load_pk_font': bdfpkgf.c:465:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 465 | fread((char *) bytes, 1, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bdfpkgf.c:467:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 467 | fread(bytes, n, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~ bdfpkgf.c:485:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 485 | fread(bytes, 4, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~ bdfpkgf.c:589:13: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 589 | fread(bytes, 2, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~ bdfpkgf.c:630:13: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 630 | fread(bytes, 10, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~ bdfpkgf.c:718:15: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 718 | fread(g.bitmap, g.bbx.height * bpr, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bdfpkgf.c: In function '_bdf_pk_specials': bdfpkgf.c:245:13: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 245 | fread((char *) bytes, n, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bdfpkgf.c:264:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 264 | fread((char *) comment, num, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bdfpkgf.c: In function '_bdf_load_gf_font': bdfpkgf.c:1151:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 1151 | fread((char *) bytes, 1, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bdfpkgf.c:1153:5: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 1153 | fread(bytes, n, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~ bdfpkgf.c: In function '_bdf_gf_specials': bdfpkgf.c:1010:13: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 1010 | fread((char *) bytes, n, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bdfpkgf.c:1029:17: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 1029 | fread((char *) comment, num, 1, in); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c GEditTB.c -o GEditTB.o GEditTB.c: In function 'ContextHelp': GEditTB.c:2071:36: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 2071 | sprintf(cbuf, "Color %d", b - _GETB_GLYPH_IMAGE); | ^ In file included from /usr/include/stdio.h:970, from GEditTBP.h:29, from GEditTB.c:31: In function 'sprintf', inlined from 'ContextHelp' at GEditTB.c:2071:13: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 8 and 17 bytes into a destination of size 16 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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c glyphed.c -o glyphed.o glyphed.c: In function 'DoPointerUpdate': glyphed.c:1798:5: warning: missing sentinel in function call [-Wformat=] 1798 | XtVaSetValues(ge->pointer, XmNlabelString, s, 0); | ^~~~~~~~~~~~~ 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c GEdit.c -o GEdit.o 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c xmbdfed.c -o xmbdfed.o xmbdfed.c: In function 'ReallySaveAs': xmbdfed.c:509:5: warning: missing sentinel in function call [-Wformat=] 509 | XtVaSetValues(ed->shell, XmNtitle, title, 0); | ^~~~~~~~~~~~~ xmbdfed.c: In function 'DoSave': xmbdfed.c:899:5: warning: missing sentinel in function call [-Wformat=] 899 | XtVaSetValues(ed->shell, XmNtitle, title, 0); | ^~~~~~~~~~~~~ xmbdfed.c: In function 'SetPSFOptions': xmbdfed.c:922:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 922 | int flags = (int) client_data; | ^ xmbdfed.c: In function 'ToggleEncodedView': xmbdfed.c:2902:5: warning: missing sentinel in function call [-Wformat=] 2902 | XtVaSetValues(ed->viewmenu.unencoded, XmNlabelString, s, 0); | ^~~~~~~~~~~~~ xmbdfed.c: In function '_XmBDFEditorSetup': xmbdfed.c:5306:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 5306 | (XtPointer) xmbdfed_opts.font_opts.correct_metrics; | ^ xmbdfed.c:5308:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 5308 | (XtPointer) xmbdfed_opts.font_opts.keep_unencoded; | ^ xmbdfed.c:5310:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 5310 | (XtPointer) xmbdfed_opts.font_opts.keep_comments; | ^ xmbdfed.c:5312:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 5312 | cmdres[3].default_addr = (XtPointer) xmbdfed_opts.font_opts.pad_cells; | ^ xmbdfed.c:5316:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 5316 | cmdres[7].default_addr = (XtPointer) xmbdfed_opts.font_opts.font_spacing; | ^ xmbdfed.c:5317:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 5317 | cmdres[8].default_addr = (XtPointer) xmbdfed_opts.font_opts.bits_per_pixel; | ^ xmbdfed.c:5318:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 5318 | cmdres[9].default_addr = (XtPointer) xmbdfed_opts.font_opts.eol; | ^ xmbdfed.c:5320:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 5320 | cmdres[11].default_addr = (XtPointer) xmbdfed_opts.no_blanks; | ^ xmbdfed.c:5321:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 5321 | cmdres[12].default_addr = (XtPointer) xmbdfed_opts.really_exit; | ^ xmbdfed.c:5322:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 5322 | cmdres[13].default_addr = (XtPointer) xmbdfed_opts.overwrite_mode; | ^ xmbdfed.c:5323:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 5323 | cmdres[14].default_addr = (XtPointer) xmbdfed_opts.initial_glyph; | ^ xmbdfed.c:5324:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 5324 | cmdres[15].default_addr = (XtPointer) xmbdfed_opts.progbar; | ^ xmbdfed.c:5325:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 5325 | cmdres[16].default_addr = (XtPointer) xmbdfed_opts.code_base; | ^ xmbdfed.c: In function 'DoSaveAs': xmbdfed.c:789:26: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] 789 | sprintf(title, "%s/%s", dir, name); | ^ In file included from /usr/include/stdio.h:970, from xmbdfed.c:30: In function 'sprintf', inlined from 'DoSaveAs' at xmbdfed.c:789:5: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 8193) into a destination of size 8192 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:548, from xmbdfed.c:31: In function 'strcat', inlined from 'AddFilename' at xmbdfed.c:558:22: /usr/include/bits/string_fortified.h:140:10: warning: argument 1 null where non-null expected [-Wnonnull] 140 | return __builtin___strcat_chk (__dest, __src, __glibc_objsize (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/bits/string_fortified.h:140:10: note: in a call to built-in function '__builtin_strcat' xmbdfed.c: In function 'DoSave': xmbdfed.c:840:26: warning: '.BAK' directive writing 4 bytes into a region of size between 1 and 8192 [-Wformat-overflow=] 840 | sprintf(name, "%s.BAK", path); | ^~~~ In function 'sprintf', inlined from 'DoSave' at xmbdfed.c:840:9: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 5 and 8196 bytes into a destination of size 8192 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xmbdfed.c: In function 'DoSave': xmbdfed.c:843:65: warning: '%s' directive writing up to 8191 bytes into a region of size 8150 [-Wformat-overflow=] 843 | "A problem occured making the backup file:\n%s.BAK", | ^~ 844 | path); | ~~~~ In function 'sprintf', inlined from 'DoSave' at xmbdfed.c:842:13: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 47 and 8238 bytes into a destination of size 8192 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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c FGrid.c -o FGrid.o FGrid.c: In function '_XmuttFGridDrawCells.part.0': FGrid.c:1205:43: warning: '%ld' directive writing between 1 and 20 bytes into a region of size 10 [-Wformat-overflow=] 1205 | case 10: sprintf(nbuf, "%ld", i); break; | ^~~ FGrid.c:1205:42: note: directive argument in the range [-9223372036854775808, 9223372036854775806] 1205 | case 10: sprintf(nbuf, "%ld", i); break; | ^~~~~ In file included from /usr/include/stdio.h:970, from FGridP.h:29, from FGrid.c:31: In function 'sprintf', inlined from '_XmuttFGridDrawCells.part.0' at FGrid.c:1205:28: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 2 and 21 bytes into a destination of size 10 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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c bdfgrid.c -o bdfgrid.o 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 -DHAVE_XLIB -DHAVE_FREETYPE -I/usr/include/freetype2 -c bdf.c -o bdf.o bdf.c: In function 'bdf_save_font': bdf.c:2946:37: warning: field precision specifier '.*' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] 2946 | fprintf(out, "COMMENT %.*s%s", ep - sp, sp, eol); | ~~^~ ~~~~~~~ | | | | int long int error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.iWeyDF (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.iWeyDF (%build) I: [iurt_root_command] ERROR: chroot