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/procmail-3.24-2.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.bXAr7c sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.2a7PCI + umask 022 + cd /home/pterjan/rpmbuild/BUILD/procmail-3.24-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/procmail-3.24-build + rm -rf procmail-3.24 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/procmail-3.24.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd procmail-3.24 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/procmail-3.22-lockf.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/procmail-3.22-benchmark.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/procmail-3.22-defsendmail.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/procmail-3.24-gcc-14-fix.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.N4iszo + umask 022 + cd /home/pterjan/rpmbuild/BUILD/procmail-3.24-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 procmail-3.24 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + echo -n -e '\n' + /usr/bin/make -O -j48 V=1 VERBOSE=1 'CFLAGS0=-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' 'LDFLAGS0=-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' /bin/sh ./initmake /bin/sh "/bin/sh" "/bin/rm -f" "mv -f" "ln" \ "-lm -ldir -lx -lsocket -lnet -linet -lnsl_s -lnsl_i -lnsl -lsun -lgen -lsockdns -ldl" \ "/lib /usr/lib /usr/local/lib" \ /dev/null "/usr/bin/make" 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 " "-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 " "procmail lockfile formail mailstat" \ "procmail formail lockfile mailstat" \ "procmailrc procmailsc procmailex" "src man" \ "/usr/bin" \ "strip" gcc seems to work fine, using that as the C-compiler ...scanning for 13 libraries... Added LDFLAGS= -lm -ldl -lc cd src; /usr/bin/make ../autoconf.h /bin/sh ./autoconf /bin/sh "/bin/rm -f" "mv -f" /dev/null \ "grep -F" "/usr/bin/make" o "__defaults__" \ "/usr/bin" ../autoconf.h echo Housekeeping file >config.check ============================================================================== In order for the kernel-locking tests to work as intended I have to be able to test-lock files on as many semantically different filesystems as possible (for more information about this, READ PARAGRAPH TWO in INSTALL). To suppress this prompt you can set the LOCKINGTEST variable in the Makefile.  Please add writable directories to the list. You should only add directories that reside on filesystems that have unique characteristics. E.g. if you have several remote NFS partitions, pick some unique client-server pairs, there is little use in picking the same server twice from the same client-machine. An excellent candidate would be a remotely mounted mail spool directory. ============================================================================== I will temporarily use a testdirectory named _locktest in the following directories: /tmp . If you would like to add any, please specify them below, press return to continue: Initiating fcntl()/kernel-locking-support tests Whoeaaa! There's something fishy going on here. You have a look and see if you detect anything uncanny: ******************************************************* make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/procmail-3.24-build/procmail-3.24/src' gcc -c -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 _autotst.c _autotst.c: In function 'main': _autotst.c:165:5: warning: old-style function definition [-Wold-style-definition] 165 | int main(argc,argv)int argc;char*argv[]; | ^~~~ _autotst.c:243:24: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 243 | signal(SIGTERM,Terminate); | ^~~~~~~~~ | | | void (*)(void) In file included from _autotst.c:11: /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ _autotst.c:76:6: note: 'Terminate' declared here 76 | void Terminate() | ^~~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ _autotst.c:256:63: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 256 | kill(ppid,SIGKILL);fdcollect=pip[0];signal(SIGALRM,stimeout); | ^~~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ _autotst.c:72:6: note: 'stimeout' declared here 72 | void stimeout() | ^~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ _autotst.c:204:48: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 204 | { close(1);close(2);i=NR_of_lockfiles;chdir(curdir); | ^~~~~~~~~~~~~ _autotst.c:205:12: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 205 | chdir(dirlocktest); | ^~~~~~~~~~~~~~~~~~ _autotst.c:215:18: warning: ignoring return value of 'pipe' declared with attribute 'warn_unused_result' [-Wunused-result] 215 | sleep(1);pipe(pip);pipe(pipw);i=NR_of_forks;*child=0; | ^~~~~~~~~ _autotst.c:215:28: warning: ignoring return value of 'pipe' declared with attribute 'warn_unused_result' [-Wunused-result] 215 | sleep(1);pipe(pip);pipe(pipw);i=NR_of_forks;*child=0; | ^~~~~~~~~~ _autotst.c:222:45: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 222 | seed=time((time_t*)0)+getpid()|1;chdir(curdir);chdir(dirlocktest); | ^~~~~~~~~~~~~ _autotst.c:222:59: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 222 | seed=time((time_t*)0)+getpid()|1;chdir(curdir);chdir(dirlocktest); | ^~~~~~~~~~~~~~~~~~ _autotst.c:230:15: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 230 | write(pip[1],&lockflag,1); | ^~~~~~~~~~~~~~~~~~~~~~~~~ _autotst.c:232:43: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 232 | lseek(fd,(off_t)0,SEEK_END);write(fd,&lockflag,1); | ^~~~~~~~~~~~~~~~~~~~~ _autotst.c:234:28: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 234 | lockflag&=~1;write(pip[1],&lockflag,1); | ^~~~~~~~~~~~~~~~~~~~~~~~~ _autotst.c:236:18: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 236 | { write(pip[1],&lockflag,1);fprintf(stderr,"XX%x",lockflag); | ^~~~~~~~~~~~~~~~~~~~~~~~~ _autotst.c:255:31: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 255 | timeout=0;sleep(1);read(pipw[0],&curflag,1);close(pipw[0]); | ^~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:239: _autotst.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/procmail-3.24-build/procmail-3.24/src' ******************************************************* I suggest you take a look at the definition of LDFLAGS* in the Makefile before you try make again. make[1]: *** [Makefile:124: ../autoconf.h] Error 1 make: *** [Makefile:154: autoconf.h] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.N4iszo (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.N4iszo (%build) I: [iurt_root_command] ERROR: chroot