D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/wmgrabimage-0.72-13.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.JrYOQi Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.MpTE21 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/wmgrabimage-0.72-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/wmgrabimage-0.72-build + rm -rf wmGrabImage-0.72 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/wmGrabImage-0.72.tgz + STATUS=0 + '[' 0 -ne 0 ']' + cd wmGrabImage-0.72 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/wmGrabImage-0.72-convert.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/wmGrabImage-0.72-ctime.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/wmgrabimage-0.72-cflags.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.tw8vkL + umask 022 + cd /home/pterjan/rpmbuild/BUILD/wmgrabimage-0.72-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -fcommon -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 -fcommon -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 -fcommon -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 -fcommon -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 wmGrabImage-0.72 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd wmGrabImage + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -fcommon -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 -fcommon -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 -fcommon -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 -fcommon -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 -j16 V=1 VERBOSE=1 clean for i in wmGrabImage.o ../wmgeneral/wmgeneral.o ; do \ rm -f $i; \ done rm -f wmGrabImage + /usr/bin/make -O -j16 V=1 VERBOSE=1 gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -fcommon -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -Wall -DLinux -c wmGrabImage.c -o wmGrabImage.o -I/usr/X11R6/include/X11 wmGrabImage.c: In function 'main': wmGrabImage.c:318:25: error: too many arguments to function 'jd'; expected 0, have 4 318 | CurrentJD = jd(Year, Month, Day, UT); | ^~ ~~~~ wmGrabImage.c:162:31: note: declared here 162 | double UT, hour24(), jd(), CurrentJD, OldFileUT, FileUT; | ^~ wmGrabImage.c:332:15: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 332 | if (Attributes.nalloc_pixels > 0) | ^~ wmGrabImage.c:341:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 341 | if ( NewShapeMask != 0 ) | ^~ wmGrabImage.c:162:37: warning: variable 'CurrentJD' set but not used [-Wunused-but-set-variable] 162 | double UT, hour24(), jd(), CurrentJD, OldFileUT, FileUT; | ^~~~~~~~~ wmGrabImage.c:157:20: warning: variable 's' set but not used [-Wunused-but-set-variable] 157 | int n, s, m, dt1, dt2, dt3, len; | ^ wmGrabImage.c:157:17: warning: variable 'n' set but not used [-Wunused-but-set-variable] 157 | int n, s, m, dt1, dt2, dt3, len; | ^ wmGrabImage.c: In function 'jd': wmGrabImage.c:162:31: warning: old-style function definition [-Wold-style-definition] 162 | double UT, hour24(), jd(), CurrentJD, OldFileUT, FileUT; | ^~ wmGrabImage.c:535:1: error: number of arguments doesn't match prototype 535 | { | ^ wmGrabImage.c:162:31: error: prototype declaration 162 | double UT, hour24(), jd(), CurrentJD, OldFileUT, FileUT; | ^~ wmGrabImage.c: In function 'main': wmGrabImage.c:432:13: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 432 | system(command); | ^~~~~~~~~~~~~~~ wmGrabImage.c: In function 'pressEvent': wmGrabImage.c:608:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 608 | system(Command); | ^~~~~~~~~~~~~~~ wmGrabImage.c:619:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 619 | system(Command); | ^~~~~~~~~~~~~~~ make: *** [Makefile:15: wmGrabImage.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -fcommon -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -Wall -DLinux -c ../wmgeneral/wmgeneral.c -o ../wmgeneral/wmgeneral.o -I/usr/X11R6/include/X11 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.tw8vkL (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.tw8vkL (%build) I: [iurt_root_command] ERROR: chroot