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/buffer-1.19-19.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.zeWGe7 sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.PyW0VU + umask 022 + cd /home/pterjan/rpmbuild/BUILD/buffer-1.19-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/buffer-1.19-build + rm -rf buffer-1.19 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/buffer-1.19.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd buffer-1.19 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/buffer_1.19-7.patch.bz2 + /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.D6Sxdp + umask 022 + cd /home/pterjan/rpmbuild/BUILD/buffer-1.19-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 buffer-1.19 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + make '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 -Wall' 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 -Wall -c -o buffer.o buffer.c buffer.c: In function 'main': buffer.c:270:1: warning: old-style function definition [-Wold-style-definition] 270 | main( argc, argv ) | ^~~~ buffer.c:274:9: error: too many arguments to function 'parse_args'; expected 0, have 2 274 | parse_args( argc, argv ); | ^~~~~~~~~~ ~~~~ buffer.c:154:6: note: declared here 154 | void parse_args(); | ^~~~~~~~~~ buffer.c:284:9: error: too many arguments to function 'byee'; expected 0, have 1 284 | byee( 0 ); | ^~~~ ~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c: In function 'parse_args': buffer.c:291:1: warning: old-style function definition [-Wold-style-definition] 291 | parse_args( argc, argv ) | ^~~~~~~~~~ buffer.c:294:1: error: number of arguments doesn't match prototype 294 | { | ^ buffer.c:154:6: error: prototype declaration 154 | void parse_args(); | ^~~~~~~~~~ buffer.c:323:33: error: too many arguments to function 'byee'; expected 0, have 1 323 | byee( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c:329:33: error: too many arguments to function 'byee'; expected 0, have 1 329 | byee ( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c:337:33: error: too many arguments to function 'byee'; expected 0, have 1 337 | byee( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c:343:33: error: too many arguments to function 'byee'; expected 0, have 1 343 | byee ( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c:348:37: error: too many arguments to function 'do_size'; expected 0, have 1 348 | showevery = do_size( optarg ); | ^~~~~~~ ~~~~~~ buffer.c:158:5: note: declared here 158 | int do_size(); | ^~~~~~~ buffer.c:362:37: error: too many arguments to function 'do_size'; expected 0, have 1 362 | max_shmem = do_size( optarg ); | ^~~~~~~ ~~~~~~ buffer.c:158:5: note: declared here 158 | int do_size(); | ^~~~~~~ buffer.c:366:33: error: too many arguments to function 'byee'; expected 0, have 1 366 | byee( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c:375:33: error: too many arguments to function 'byee'; expected 0, have 1 375 | byee( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c:383:33: error: too many arguments to function 'byee'; expected 0, have 1 383 | byee( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c:392:37: error: too many arguments to function 'do_size'; expected 0, have 1 392 | blocksize = do_size( optarg ); | ^~~~~~~ ~~~~~~ buffer.c:158:5: note: declared here 158 | int do_size(); | ^~~~~~~ buffer.c:396:33: error: too many arguments to function 'byee'; expected 0, have 1 396 | byee( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c:413:25: error: too many arguments to function 'byee'; expected 0, have 1 413 | byee( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c:419:17: error: too many arguments to function 'byee'; expected 0, have 1 419 | byee( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c:429:25: error: too many arguments to function 'byee'; expected 0, have 1 429 | byee( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c:433:25: error: too many arguments to function 'byee'; expected 0, have 1 433 | byee( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c:441:17: error: too many arguments to function 'byee'; expected 0, have 1 441 | byee( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c:447:17: error: too many arguments to function 'byee'; expected 0, have 1 447 | byee( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c: In function 'shutdown': buffer.c:466:9: error: too many arguments to function 'byee'; expected 0, have 1 466 | byee( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c: In function 'child_shutdown': buffer.c:487:25: error: too many arguments to function 'byee'; expected 0, have 1 487 | byee( 0 ); | ^~~~ ~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c: In function 'set_handlers': buffer.c:498:25: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 498 | signal( SIGHUP, shutdown ); | ^~~~~~~~ | | | void (*)(void) In file included from buffer.c:117: /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) | ~~~~~~~~~~~~~~~^~~~~~~~~ buffer.c:454:1: note: 'shutdown' declared here 454 | shutdown() | ^~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ buffer.c:499:25: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 499 | signal( SIGINT, shutdown ); | ^~~~~~~~ | | | 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) | ~~~~~~~~~~~~~~~^~~~~~~~~ buffer.c:454:1: note: 'shutdown' declared here 454 | shutdown() | ^~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ buffer.c:500:26: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 500 | signal( SIGQUIT, shutdown ); | ^~~~~~~~ | | | 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) | ~~~~~~~~~~~~~~~^~~~~~~~~ buffer.c:454:1: note: 'shutdown' declared here 454 | shutdown() | ^~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ buffer.c:501:26: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 501 | signal( SIGTERM, shutdown ); | ^~~~~~~~ | | | 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) | ~~~~~~~~~~~~~~~^~~~~~~~~ buffer.c:454:1: note: 'shutdown' declared here 454 | shutdown() | ^~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ buffer.c:503:26: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 503 | signal( SIGCHLD, child_shutdown ); | ^~~~~~~~~~~~~~ | | | 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) | ~~~~~~~~~~~~~~~^~~~~~~~~ buffer.c:471:1: note: 'child_shutdown' declared here 471 | child_shutdown() | ^~~~~~~~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ buffer.c: In function 'buffer_allocate': buffer.c:525:17: error: too many arguments to function 'byee'; expected 0, have 1 525 | byee( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c:544:26: error: too many arguments to function 'new_sems'; expected 0, have 1 544 | pbuffer->semid = new_sems( 2 ); /* Get a read and a write sem */ | ^~~~~~~~ ~ In file included from buffer.c:127: sem.h:30:5: note: declared here 30 | int new_sems(); | ^~~~~~~~ buffer.c:547:9: error: too many arguments to function 'lock'; expected 0, have 2 547 | lock( pbuffer->semid, pbuffer->blocks_used_lock ); | ^~~~ ~~~~~~~~~~~~~~ sem.h:34:6: note: declared here 34 | void lock(); | ^~~~ buffer.c:561:9: error: too many arguments to function 'sem_set'; expected 0, have 3 561 | sem_set( pbuffer->semid, pbuffer->blocks_free_lock, blocks ); | ^~~~~~~ ~~~~~~~~~~~~~~ sem.h:33:6: note: declared here 33 | void sem_set(); | ^~~~~~~ buffer.c: In function 'buffer_remove': buffer.c:590:9: error: too many arguments to function 'remove_sems'; expected 0, have 1 590 | remove_sems( pbuffer->semid ); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~ sem.h:36:6: note: declared here 36 | void remove_sems(); | ^~~~~~~~~~~ buffer.c: In function 'get_buffer': buffer.c:608:17: error: too many arguments to function 'byee'; expected 0, have 1 608 | byee( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c: In function 'start_reader_and_writer': buffer.c:627:17: error: too many arguments to function 'byee'; expected 0, have 1 627 | byee( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c: In function 'get_next_free_block': buffer.c:672:9: error: too many arguments to function 'lock'; expected 0, have 2 672 | lock( pbuffer->semid, pbuffer->blocks_free_lock ); | ^~~~ ~~~~~~~~~~~~~~ sem.h:34:6: note: declared here 34 | void lock(); | ^~~~ buffer.c: In function 'fill_block': buffer.c:689:17: error: too many arguments to function 'unlock'; expected 0, have 2 689 | unlock( pbuffer->semid, pbuffer->blocks_used_lock ); | ^~~~~~ ~~~~~~~~~~~~~~ sem.h:35:6: note: declared here 35 | void unlock(); | ^~~~~~ buffer.c:716:17: error: too many arguments to function 'byee'; expected 0, have 1 716 | byee( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c:730:9: error: too many arguments to function 'unlock'; expected 0, have 2 730 | unlock( pbuffer->semid, pbuffer->blocks_used_lock ); | ^~~~~~ ~~~~~~~~~~~~~~ sem.h:35:6: note: declared here 35 | void unlock(); | ^~~~~~ buffer.c: In function 'writer': buffer.c:763:25: error: too many arguments to function 'write_blocks_to_stdout'; expected 0, have 2 763 | write_blocks_to_stdout( filled, first_block ); | ^~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ buffer.c:169:6: note: declared here 169 | void write_blocks_to_stdout(); | ^~~~~~~~~~~~~~~~~~~~~~ buffer.c:768:9: error: too many arguments to function 'write_blocks_to_stdout'; expected 0, have 2 768 | write_blocks_to_stdout( filled, first_block ); | ^~~~~~~~~~~~~~~~~~~~~~ ~~~~~~ buffer.c:169:6: note: declared here 169 | void write_blocks_to_stdout(); | ^~~~~~~~~~~~~~~~~~~~~~ buffer.c: In function 'get_next_filled_block': buffer.c:787:9: error: too many arguments to function 'lock'; expected 0, have 2 787 | lock( pbuffer->semid, pbuffer->blocks_used_lock ); | ^~~~ ~~~~~~~~~~~~~~ sem.h:34:6: note: declared here 34 | void lock(); | ^~~~ buffer.c: In function 'write_blocks_to_stdout': buffer.c:801:1: warning: old-style function definition [-Wold-style-definition] 801 | write_blocks_to_stdout( filled, first_block ) | ^~~~~~~~~~~~~~~~~~~~~~ buffer.c:804:1: error: number of arguments doesn't match prototype 804 | { | ^ buffer.c:169:6: error: prototype declaration 169 | void write_blocks_to_stdout(); | ^~~~~~~~~~~~~~~~~~~~~~ buffer.c: In function 'write_block_to_stdout': buffer.c:833:17: error: too many arguments to function 'byee'; expected 0, have 1 833 | byee( -1 ); | ^~~~ ~~ buffer.c:152:6: note: declared here 152 | void byee(); | ^~~~ buffer.c:867:9: error: too many arguments to function 'unlock'; expected 0, have 2 867 | unlock( pbuffer->semid, pbuffer->blocks_free_lock ); | ^~~~~~ ~~~~~~~~~~~~~~ sem.h:35:6: note: declared here 35 | void unlock(); | ^~~~~~ buffer.c: In function 'byee': buffer.c:872:1: warning: old-style function definition [-Wold-style-definition] 872 | byee( exit_val ) | ^~~~ buffer.c:874:1: error: number of arguments doesn't match prototype 874 | { | ^ buffer.c:152:6: error: prototype declaration 152 | void byee(); | ^~~~ buffer.c: In function 'test_writer': buffer.c:934:17: error: too many arguments to function 'byee'; expected 0, have 1 934 | byee( -1 ); | ^~~~ ~~ buffer.c:872:1: note: declared here 872 | byee( exit_val ) | ^~~~ buffer.c: In function 'do_size': buffer.c:945:1: warning: old-style function definition [-Wold-style-definition] 945 | do_size( arg ) | ^~~~~~~ buffer.c:947:1: error: number of arguments doesn't match prototype 947 | { | ^ buffer.c:158:5: error: prototype declaration 158 | int do_size(); | ^~~~~~~ buffer.c: At top level: buffer.c:130:14: warning: 'rcsid' defined but not used [-Wunused-variable] 130 | static char *rcsid = "$Header: /a/swan/home/swan/staff/csg/lmjm/src/buffer/RCS/buffer.c,v 1.19 1995/08/24 17:46:28 lmjm Exp lmjm $"; | ^~~~~ make: *** [: buffer.o] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.D6Sxdp (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.D6Sxdp (%build) I: [iurt_root_command] ERROR: chroot