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/taper-7.0-0.pre1.22.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.GQbhJF sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.tWnsWv + umask 022 + cd /home/pterjan/rpmbuild/BUILD/taper-7.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/taper-7.0-build + rm -rf taper-7.0pre-1 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/taper-7.0pre1.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd taper-7.0pre-1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (taper-7.0pre1-remove-conflicting-type.patch):' Patch #1 (taper-7.0pre1-remove-conflicting-type.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .type_conflict --fuzz=0 patching file non-ansi.h + echo 'Patch #2 (taper-7.0pre-1-umode_t.patch):' Patch #2 (taper-7.0pre-1-umode_t.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .umode_t --fuzz=0 patching file config.h patching file select_box.c patching file select_box.h + echo 'Patch #3 (taper-7.0pre1-LDFLAGS.diff):' Patch #3 (taper-7.0pre1-LDFLAGS.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .LDFLAGS --fuzz=0 patching file Makefile + echo 'Patch #4 (taper-fix-build-with-gcc14.patch):' Patch #4 (taper-fix-build-with-gcc14.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .gcc14 --fuzz=0 patching file endianize.c patching file utils.c patching file sel_backup.c patching file common.c patching file sel_restore.c patching file taper.c patching file select_box.c patching file compress/lzrw3.h + find . -name CVS -type d + xargs rm -rf + sed -i -e 's|755 --strip|755|g' Makefile + 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.rQu4Ft + umask 022 + cd /home/pterjan/rpmbuild/BUILD/taper-7.0-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 taper-7.0pre-1 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j48 V=1 VERBOSE=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 -O3 -fno-strength-reduce -Wall' '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' echo "#define CUR_VERSION \""7.0pre-1"\"" > version.h cp docs/Taper.txt docs/taper.8 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o memory.o -c memory.c 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o library.o -c library.c 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o vars.o -c vars.c 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o bg_vars.o -c bg_vars.c 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o utils.o -c utils.c In file included from taper.h:55, from utils.c:14: utils.c: In function 'utils_write_nullheader': rmt.h:77:47: error: too many arguments to function '__rmt_write'; expected 0, have 3 77 | #define rmtwrite(fd, buf, n) (_isrmt(fd) ? __rmt_write(fd - __REM_BIAS, buf, n) : write(fd, buf, n)) | ^~~~~~~~~~~ utils.c:41:9: note: in expansion of macro 'rmtwrite' 41 | if (rmtwrite(dv, write_buffer, block_size) != block_size) | ^~~~~~~~ rmt.h:95:5: note: declared here 95 | int __rmt_write (); | ^~~~~~~~~~~ utils.c: In function 'utils_test_eot': rmt.h:77:47: error: too many arguments to function '__rmt_write'; expected 0, have 3 77 | #define rmtwrite(fd, buf, n) (_isrmt(fd) ? __rmt_write(fd - __REM_BIAS, buf, n) : write(fd, buf, n)) | ^~~~~~~~~~~ utils.c:291:13: note: in expansion of macro 'rmtwrite' 291 | if (rmtwrite(dv, m, block_size) volume = mach2littleu32(&k->volume); | ^~~~~~~~~~ | | | _s32 * {aka int *} endianize.c:209:28: note: expected '_u32 *' {aka 'unsigned int *'} but argument is of type '_s32 *' {aka 'int *'} 209 | _u32 mach2littleu32(_u32 *s) | ~~~~~~^ endianize.c: In function 'little2machkey': endianize.c:313:33: warning: pointer targets in passing argument 1 of 'little2machu32' differ in signedness [-Wpointer-sign] 313 | k1->volume = little2machu32(&k->volume); | ^~~~~~~~~~ | | | _s32 * {aka int *} endianize.c:228:28: note: expected '_u32 *' {aka 'unsigned int *'} but argument is of type '_s32 *' {aka 'int *'} 228 | _u32 little2machu32(_u32 *s) | ~~~~~~^ endianize.c: In function 'ifk_node_endianize2little': endianize.c:322:28: warning: pointer targets in passing argument 1 of 'mach2littleu32' differ in signedness [-Wpointer-sign] 322 | n1->n = mach2littleu32(&n->n); | ^~~~~ | | | int * endianize.c:209:28: note: expected '_u32 *' {aka 'unsigned int *'} but argument is of type 'int *' 209 | _u32 mach2littleu32(_u32 *s) | ~~~~~~^ endianize.c: In function 'ifk_node_endianize2mach': endianize.c:334:28: warning: pointer targets in passing argument 1 of 'little2machu32' differ in signedness [-Wpointer-sign] 334 | n1->n = little2machu32(&n->n); | ^~~~~ | | | int * endianize.c:228:28: note: expected '_u32 *' {aka 'unsigned int *'} but argument is of type 'int *' 228 | _u32 little2machu32(_u32 *s) | ~~~~~~^ 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o bg_backup.o -c bg_backup.c bg_backup.c: In function 'main': bg_backup.c:228:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 228 | fgets(ftoc, sizeof(ftoc), cf); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bg_backup.c:249:47: warning: '%s' directive writing up to 254 bytes into a region of size 237 [-Wformat-overflow=] 249 | sprintf(com, " :Compressing %s to %s", ftoc, tmpbuf); | ^~ ~~~~~~ In file included from /usr/include/stdio.h:970, from taper.h:21, from bg_backup.c:33: In function 'sprintf', inlined from 'main' at bg_backup.c:249:6: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 19 or more bytes (assuming 273) into a destination of size 255 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ bg_backup.c: In function 'main': bg_backup.c:254:43: warning: '%s' directive writing up to 254 bytes into a region of size 242 [-Wformat-overflow=] 254 | sprintf(com, "%s \"%s\" > %s 2>/dev/null", COMPRESS_PROG, | ^~ 255 | ftoc, tmpbuf); /* compress file */ | ~~~~~~ In function 'sprintf', inlined from 'main' at bg_backup.c:254:3: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 26 or more bytes (assuming 280) into a destination of size 255 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o bg_restore.o -c bg_restore.c bg_restore.c: In function 'main': bg_restore.c:208:13: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result] 208 | read(of, cmp_buf, fi.act_size); /* read in all file */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bg_restore.c:167:36: warning: '%s' directive writing up to 254 bytes into a region of size 240 [-Wformat-overflow=] 167 | sprintf(fn, "%s %s > \"%s\"", DECOMPRESS_PROG, ff, (restore_mode == RESTORE_VERIFY) ? fn1 : s); | ^~ In file included from /usr/include/stdio.h:970, from taper.h:21, from bg_restore.c:33: In function 'sprintf', inlined from 'main' at bg_restore.c:167:6: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 17 or more bytes (assuming 271) into a destination of size 255 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o mkinfo.o -c mkinfo.c 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o common_bg.o -c common_bg.c common_bg.c: In function 'mail_finish': common_bg.c:29:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 29 | write(mf, s, strlen(s)); | ^~~~~~~~~~~~~~~~~~~~~~~ common_bg.c: In function 'sendmail': common_bg.c:41:5: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 41 | system(s); | ^~~~~~~~~ common_bg.c: In function 'do_exit': common_bg.c:65:12: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 65 | write(lf, "\n\n", strlen("\n\n")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common_bg.c:72:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 72 | write(mf, err, strlen(err)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ common_bg.c:74:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 74 | write(mf, err, strlen(err)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ common_bg.c: In function 'write_log': common_bg.c:154:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 154 | write(lf, s2, strlen(s2)); | ^~~~~~~~~~~~~~~~~~~~~~~~~ common_bg.c: In function 'my_filecopy': common_bg.c:347:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 347 | write(newfd, tr_buffer, x); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ common_bg.c: In function 'sendmail': common_bg.c:40:56: warning: '%s' directive writing up to 254 bytes into a region of size 214 [-Wformat-overflow=] 40 | sprintf(s, "%s %s -s \"Taper Unattended Backup\" < %s", MAIL_PROG, MAIL_TO, mailfn); /* send mail */ | ^~ ~~~~~~ In file included from /usr/include/stdio.h:970, from taper.h:21, from common_bg.c:18: In function 'sprintf', inlined from 'sendmail' at common_bg.c:40:5: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 42 and 296 bytes into a destination of size 255 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o mtree.o -c mtree.c mtree.c: In function 'ndeleteb': mtree.c:455:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 455 | if (pblk.a[0] == 0) | ^~ mtree.c:457:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 457 | t = pblk.a[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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o sel_restore.o -c sel_restore.c sel_restore.c: In function 'restore_update_selected_sizes': sel_restore.c:104:44: warning: pointer targets in passing argument 4 of 'ntraverse' differ in signedness [-Wpointer-sign] 104 | x = ntraverse(0, &i_key, NULL, &rec, TRAVERSE_SEARCH, INFO_NAME); | ^~~~ | | | _s32 * {aka int *} In file included from taper.h:50, from sel_restore.c:14: common.h:119:26: note: expected 'dskblk *' {aka 'unsigned int *'} but argument is of type '_s32 *' {aka 'int *'} 119 | dskblk *rec, char command, int index); /* Traverse the tree */ | ~~~~~~~~^~~ sel_restore.c:122:48: warning: pointer targets in passing argument 4 of 'ntraverse' differ in signedness [-Wpointer-sign] 122 | x = ntraverse(0, &i_key, NULL, &rec, TRAVERSE_CONTINUE, INFO_NAME); | ^~~~ | | | _s32 * {aka int *} common.h:119:26: note: expected 'dskblk *' {aka 'unsigned int *'} but argument is of type '_s32 *' {aka 'int *'} 119 | dskblk *rec, char command, int index); /* Traverse the tree */ | ~~~~~~~~^~~ sel_restore.c: In function 'restore_print_voldir_line': sel_restore.c:180:15: warning: variable 't' set but not used [-Wunused-but-set-variable] 180 | struct tm t; | ^ sel_restore.c: In function 'restore_print_selected_line': sel_restore.c:272:58: warning: format '%d' expects argument of type 'int', but argument 5 has type '_u64' {aka 'long long unsigned int'} [-Wformat=] 272 | (mr->selected == 1) ? mvwprintw(win, line+1, 5, " %8d %s ", | ~~^ | | | int | %8lld 273 | (mr->incremental == 1) ? mr->mm_size : mr->ab_size, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | _u64 {aka long long unsigned int} sel_restore.c:275:58: warning: format '%d' expects argument of type 'int', but argument 5 has type '_u64' {aka 'long long unsigned int'} [-Wformat=] 275 | mvwprintw(win, line+1, 5, "(%8d %s)", | ~~^ | | | int | %8lld 276 | (mr->incremental == 1) ? mr->mm_size : mr->ab_size, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | _u64 {aka long long unsigned int} sel_restore.c: In function 'make_mydir': sel_restore.c:525:36: warning: pointer targets in passing argument 4 of 'ntraverse' differ in signedness [-Wpointer-sign] 525 | if (ntraverse(0, &i_key, NULL, &c, TRAVERSE_SEARCH, INFO_NAME) == 2) return; | ^~ | | | _s32 * {aka int *} common.h:119:26: note: expected 'dskblk *' {aka 'unsigned int *'} but argument is of type '_s32 *' {aka 'int *'} 119 | dskblk *rec, char command, int index); /* Traverse the tree */ | ~~~~~~~~^~~ sel_restore.c:559:40: warning: pointer targets in passing argument 4 of 'ntraverse' differ in signedness [-Wpointer-sign] 559 | if (ntraverse(0, &i_key, NULL, &c, TRAVERSE_CONTINUE, INFO_NAME) != 0) break; | ^~ | | | _s32 * {aka int *} common.h:119:26: note: expected 'dskblk *' {aka 'unsigned int *'} but argument is of type '_s32 *' {aka 'int *'} 119 | dskblk *rec, char command, int index); /* Traverse the tree */ | ~~~~~~~~^~~ sel_restore.c: In function 'select_restore_files': sel_restore.c:701:56: warning: pointer targets in passing argument 4 of 'ntraverse' differ in signedness [-Wpointer-sign] 701 | if (ntraverse(0, &i_key, NULL, &c, TRAVERSE_SEARCH, INFO_NAME)) | ^~ | | | _s32 * {aka int *} common.h:119:26: note: expected 'dskblk *' {aka 'unsigned int *'} but argument is of type '_s32 *' {aka 'int *'} 119 | dskblk *rec, char command, int index); /* Traverse the tree */ | ~~~~~~~~^~~ sel_restore.c:705:64: warning: pointer targets in passing argument 4 of 'ntraverse' differ in signedness [-Wpointer-sign] 705 | x = ntraverse(0, &i_key, NULL, &c, TRAVERSE_CONTINUE, | ^~ | | | _s32 * {aka int *} common.h:119:26: note: expected 'dskblk *' {aka 'unsigned int *'} but argument is of type '_s32 *' {aka 'int *'} 119 | dskblk *rec, char command, int index); /* Traverse the tree */ | ~~~~~~~~^~~ sel_restore.c:713:68: warning: pointer targets in passing argument 4 of 'ntraverse' differ in signedness [-Wpointer-sign] 713 | x = ntraverse(0, &i_key, NULL, &c, TRAVERSE_TOP, | ^~ | | | _s32 * {aka int *} common.h:119:26: note: expected 'dskblk *' {aka 'unsigned int *'} but argument is of type '_s32 *' {aka 'int *'} 119 | dskblk *rec, char command, int index); /* Traverse the tree */ | ~~~~~~~~^~~ sel_restore.c:752:46: warning: pointer targets in passing argument 5 of 'adjust_cur_entry' differ in signedness [-Wpointer-sign] 752 | &in_dir, c+1); | ^~~~~~~ | | | _s32 * {aka int *} In file included from taper.h:43: select_box.h:83:29: note: expected '_u32 *' {aka 'unsigned int *'} but argument is of type '_s32 *' {aka 'int *'} 83 | _u32 *no_entries, _s32 cur_entry); | ~~~~~~^~~~~~~~~~ sel_restore.c:758:38: warning: pointer targets in passing argument 5 of 'adjust_cur_entry' differ in signedness [-Wpointer-sign] 758 | &in_dir, c+1); | ^~~~~~~ | | | _s32 * {aka int *} select_box.h:83:29: note: expected '_u32 *' {aka 'unsigned int *'} but argument is of type '_s32 *' {aka 'int *'} 83 | _u32 *no_entries, _s32 cur_entry); | ~~~~~~^~~~~~~~~~ sel_restore.c:862:48: warning: pointer targets in passing argument 4 of 'ntraverse' differ in signedness [-Wpointer-sign] 862 | if (ntraverse(0, &i_key, NULL, &c, TRAVERSE_SEARCH, INFO_NAME)) | ^~ | | | _s32 * {aka int *} common.h:119:26: note: expected 'dskblk *' {aka 'unsigned int *'} but argument is of type '_s32 *' {aka 'int *'} 119 | dskblk *rec, char command, int index); /* Traverse the tree */ | ~~~~~~~~^~~ sel_restore.c: In function 'restore_restore_backupset': sel_restore.c:577:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 577 | fgets(ln, sizeof(ln), f); /* get name */ | ^~~~~~~~~~~~~~~~~~~~~~~~ sel_restore.c:593:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 593 | fgets(ln, sizeof(ln), f); /* ignore filter */ | ^~~~~~~~~~~~~~~~~~~~~~~~ sel_restore.c: In function 'restore_print_voldir_line': sel_restore.c:208:26: warning: '%d' directive writing between 1 and 10 bytes into a region of size between 0 and 255 [-Wformat-overflow=] 208 | sprintf(s, "%s %d %5s %12s", s, abs(fe->i.f.volume), "-", s2); | ^~ sel_restore.c:208:22: note: directive argument in the range [0, 2147483647] 208 | sprintf(s, "%s %d %5s %12s", s, abs(fe->i.f.volume), "-", s2); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:970, from taper.h:21: In function 'sprintf', inlined from 'restore_print_voldir_line' at sel_restore.c:208:4: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 22 or more bytes (assuming 286) into a destination of size 256 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ /usr/include/bits/stdio2.h:30:10: warning: '__builtin___sprintf_chk' argument 5 overlaps destination object 's' [-Wrestrict] sel_restore.c: In function 'restore_print_voldir_line': sel_restore.c:178:12: note: destination object referenced by 'restrict'-qualified argument 1 was declared here 178 | char s[NAME_MAX+1], s2[50], s3[MAX_FNAME]; | ^ sel_restore.c:206:26: warning: '%d' directive writing between 1 and 10 bytes into a region of size between 0 and 255 [-Wformat-overflow=] 206 | sprintf(s, "%s %d %5qd %12s", s, abs(fe->i.f.volume), fe->i.f.pos_in_archive, s2); | ^~ sel_restore.c:206:22: note: directive argument in the range [0, 2147483647] 206 | sprintf(s, "%s %d %5qd %12s", s, abs(fe->i.f.volume), fe->i.f.pos_in_archive, s2); | ^~~~~~~~~~~~~~~~~ sel_restore.c: In function 'restore_print_vol_dir': sel_restore.c:232:35: warning: 's' is used uninitialized [-Wuninitialized] 232 | if (strlen(s1) > getmaxx(win)-strlen(s)-2) { /* make sure dir name not too long */ | ^~~~~~~~~ In file included from taper.h:18: /usr/include/string.h:407:15: note: by argument 1 of type 'const char *' to 'strlen' declared here 407 | extern size_t strlen (const char *__s) | ^~~~~~ sel_restore.c:225:12: note: 's' declared here 225 | char s[50], s1[MAX_FNAME], s2[MAX_FNAME]; | ^ 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o sel_backup.o -c sel_backup.c sel_backup.c: In function 'backup_del_cur_selected_entry_engine': sel_backup.c:744:12: warning: variable 'mode' set but not used [-Wunused-but-set-variable] 744 | mode_t mode; | ^~~~ sel_backup.c: In function 'backup_del_cur_exclude_entry_engine': sel_backup.c:766:12: warning: variable 'mode' set but not used [-Wunused-but-set-variable] 766 | mode_t mode; | ^~~~ sel_backup.c: In function 'backup_select_files': sel_backup.c:1004:80: warning: pointer targets in passing argument 5 of 'adjust_cur_entry' differ in signedness [-Wpointer-sign] 1004 | adjust_cur_entry(files, &dir_sd, backup_print_dir, &p, &directory_count, c); | ^~~~~~~~~~~~~~~~ | | | _s32 * {aka int *} In file included from taper.h:43, from sel_backup.c:14: select_box.h:83:29: note: expected '_u32 *' {aka 'unsigned int *'} but argument is of type '_s32 *' {aka 'int *'} 83 | _u32 *no_entries, _s32 cur_entry); | ~~~~~~^~~~~~~~~~ sel_backup.c:1016:88: warning: pointer targets in passing argument 5 of 'adjust_cur_entry' differ in signedness [-Wpointer-sign] 1016 | adjust_cur_entry(files, &dir_sd, backup_print_dir, &p, &directory_count, c); | ^~~~~~~~~~~~~~~~ | | | _s32 * {aka int *} select_box.h:83:29: note: expected '_u32 *' {aka 'unsigned int *'} but argument is of type '_s32 *' {aka 'int *'} 83 | _u32 *no_entries, _s32 cur_entry); | ~~~~~~^~~~~~~~~~ sel_backup.c:1115:25: warning: the address of 'old_dir' will always evaluate as 'true' [-Waddress] 1115 | if (old_dir) | ^~~~~~~ sel_backup.c: In function 'backup_restore_backupset': sel_backup.c:802:5: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 802 | getcwd(x, sizeof(x)); | ^~~~~~~~~~~~~~~~~~~~ sel_backup.c:806:5: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 806 | chdir(x); | ^~~~~~~~ sel_backup.c: In function 'backup_select_files': sel_backup.c:1112:19: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 1112 | getcwd(cur_dir, MAX_FNAME); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ sel_backup.c:1138:41: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 1138 | getcwd(cur_dir, MAX_FNAME); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o select_box.o -c select_box.c select_box.c: In function 'select_box': select_box.c:780:43: warning: pointer targets in passing argument 5 of 'adjust_sd' differ in signedness [-Wpointer-sign] 780 | adjust_sd(win, sd, ps, &p_scroll, no_entries); | ^~~~~~~~~~ | | | _s32 * {aka int *} select_box.c:511:88: note: expected '_u32 *' {aka 'unsigned int *'} but argument is of type '_s32 *' {aka 'int *'} 511 | void adjust_sd(WINDOW *win, select_details *sd, print_screen ps, char *p_scroll, _u32 *no_entries) | ~~~~~~^~~~~~~~~~ select_box.c: In function 'select_menu': select_box.c:807:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 807 | for (c=0; c<=no_items; c++) | ^~~ select_box.c:810:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 810 | cur_line = *in_op; | ^~~~~~~~ select_box.c: In function 'select_file': select_box.c:1191:25: warning: the address of 'old_dir' will always evaluate as 'true' [-Waddress] 1191 | if (old_dir) | ^~~~~~~ select_box.c: In function 'read_dir': select_box.c:914:5: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 914 | chdir(dir_name); | ^~~~~~~~~~~~~~~ select_box.c:915:5: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 915 | getcwd(dir_name, MAX_FNAME); /* real name */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ select_box.c: In function 'select_file': select_box.c:1132:5: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 1132 | getcwd(cur_dir, sizeof(cur_dir)); /* preserve existing dir */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ select_box.c:1166:13: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 1166 | chdir(cur_dir); | ^~~~~~~~~~~~~~ select_box.c:1171:13: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 1171 | chdir(cur_dir); | ^~~~~~~~~~~~~~ select_box.c:1184:25: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 1184 | chdir(cur_dir); | ^~~~~~~~~~~~~~ select_box.c:1188:23: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 1188 | getcwd(dir_cur_dir, MAX_FNAME); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ select_box.c:1203:17: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 1203 | chdir(cur_dir); | ^~~~~~~~~~~~~~ select_box.c: In function 'print_dir_line': select_box.c:1001:20: warning: '%s' directive writing up to 254 bytes into a region of size between 0 and 255 [-Wformat-overflow=] 1001 | sprintf(s, "%s %s %12s", s, s3, s2); | ^~ ~~ In file included from /usr/include/stdio.h:970, from select_box.h:13, from select_box.c:15: In function 'sprintf', inlined from 'print_dir_line' at select_box.c:1001:5: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output 15 or more bytes (assuming 524) into a destination of size 256 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ /usr/include/bits/stdio2.h:30:10: warning: '__builtin___sprintf_chk' argument 5 overlaps destination object 's' [-Wrestrict] select_box.c: In function 'print_dir_line': select_box.c:984:16: note: destination object referenced by 'restrict'-qualified argument 1 was declared here 984 | char s[NAME_MAX+1], s2[MAX_FNAME], s3[MAX_FNAME]; | ^ make depend make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1' gcc -M -I/usr/include/ncurses vars.c common.c endianize.c tapeio.c rtapelib.c sel_backup.c backup.c sel_restore.c restore.c utils.c mkinfo.c taper.c bg_backup.c \ bg_restore.c memory.c common_bg.c select_box.c bg_vars.c mtree.c library.c fifo.c > .depend make -C compress depend make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' gcc -M -I/usr/include/ncurses zip.c unzip.c bits.c trees.c deflate.c inflate.c util.c lzrw3.c > .depend make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o taper.o -c taper.c taper.c: In function 'read_environment': taper.c:158:14: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 158 | strcpy(tape, getenv(TAPE_ENVIRON)); | ^~~~ | | | signed char * In file included from /usr/include/features.h:524, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdlib.h:26, from taper.h:14, from taper.c:22: /usr/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'signed char *' 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ taper.c:161:14: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 161 | strcpy(ntape, getenv(NTAPE_ENVIRON)); | ^~~~~ | | | signed char * /usr/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'signed char *' 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ taper.c: In function 'fill_in_defaults': taper.c:562:33: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 562 | if (*tape == -1) strcpy(tape, FTAPE_DEFAULT_TAPE); | ^~~~ | | | signed char * /usr/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'signed char *' 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ taper.c:563:34: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 563 | if (*ntape == -1) strcpy(ntape, FTAPE_DEFAULT_NTAPE); | ^~~~~ | | | signed char * /usr/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'signed char *' 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ taper.c:576:33: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 576 | if (*tape == -1) strcpy(tape, ZFTAPE_DEFAULT_TAPE); | ^~~~ | | | signed char * /usr/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'signed char *' 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ taper.c:577:34: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 577 | if (*ntape == -1) strcpy(ntape, ZFTAPE_DEFAULT_NTAPE); | ^~~~~ | | | signed char * /usr/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'signed char *' 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ taper.c:590:33: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 590 | if (*tape == -1) strcpy(tape, SCSI_DEFAULT_TAPE); | ^~~~ | | | signed char * /usr/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'signed char *' 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ taper.c:591:34: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 591 | if (*ntape == -1) strcpy(ntape, SCSI_DEFAULT_NTAPE); | ^~~~~ | | | signed char * /usr/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'signed char *' 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ taper.c:604:33: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 604 | if (*tape == -1) strcpy(tape, ""); | ^~~~ | | | signed char * /usr/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'signed char *' 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ taper.c:605:34: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 605 | if (*ntape == -1) strcpy(ntape, ""); | ^~~~~ | | | signed char * /usr/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'signed char *' 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ taper.c:618:33: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 618 | if (*tape == -1) strcpy(tape, REMOVABLE_DEFAULT_TAPE); | ^~~~ | | | signed char * /usr/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'signed char *' 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ taper.c:619:34: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 619 | if (*ntape == -1) strcpy(ntape, REMOVABLE_DEFAULT_NTAPE); | ^~~~~ | | | signed char * /usr/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'signed char *' 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ taper.c:632:33: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 632 | if (*tape == -1) strcpy(tape, IDE_DEFAULT_TAPE); | ^~~~ | | | signed char * /usr/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'signed char *' 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ taper.c:633:34: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 633 | if (*ntape == -1) strcpy(ntape, IDE_DEFAULT_NTAPE); | ^~~~~ | | | signed char * /usr/include/bits/string_fortified.h:77:16: note: expected 'char *' but argument is of type 'signed char *' 77 | __NTH (strcpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ taper.c: In function 'taper_change_prefs': taper.c:1038:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1038 | if (allab) | ^~ taper.c:1040:15: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1040 | centre(help,11, "Press any key...", COLOR_HELP); | ^~~~~~ taper.c: In function 'main': taper.c:1480:3: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 1480 | getcwd(cur_dir, sizeof(cur_dir)); /* save current directory for backup */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ taper.c:1481:3: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 1481 | getcwd(original_cur_dir, sizeof(original_cur_dir)); /* for restore */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ taper.c: In function 'taper_save_preference_file': taper.c:1093:9: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 1093 | getcwd(s, sizeof(s)); | ^~~~~~~~~~~~~~~~~~~~ taper.c: In function 'taper_save_command_line': taper.c:1161:9: warning: ignoring return value of 'getcwd' declared with attribute 'warn_unused_result' [-Wunused-result] 1161 | getcwd(s, sizeof(s)); | ^~~~~~~~~~~~~~~~~~~~ make -C compress comp_lib make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o unzip.o -c unzip.c unzip.c: In function 'unzip': unzip.c:84:5: warning: old-style function definition [-Wold-style-definition] 84 | int unzip(in, out) | ^~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o bits.o -c bits.c bits.c: In function 'bi_init': bits.c:127:6: warning: old-style function definition [-Wold-style-definition] 127 | void bi_init (zipfile) | ^~~~~~~ bits.c: In function 'send_bits': bits.c:149:6: warning: old-style function definition [-Wold-style-definition] 149 | void send_bits(value, length) | ^~~~~~~~~ bits.c: In function 'bi_reverse': bits.c:178:10: warning: old-style function definition [-Wold-style-definition] 178 | unsigned bi_reverse(code, len) | ^~~~~~~~~~ bits.c: In function 'copy_block': bits.c:211:6: warning: old-style function definition [-Wold-style-definition] 211 | void copy_block(buf, len, header) | ^~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o zip.o -c zip.c zip.c: In function 'zip': zip.c:126:5: warning: old-style function definition [-Wold-style-definition] 126 | int zip(in, out) | ^~~ zip.c: In function 'file_read': zip.c:169:5: warning: old-style function definition [-Wold-style-definition] 169 | int file_read(buf, size) | ^~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o lzrw3.o -c lzrw3.c lzrw3.c: In function 'compress_compress': lzrw3.c:343:12: warning: old-style function definition [-Wold-style-definition] 343 | LOCAL void compress_compress | ^~~~~~~~~~~~~~~~~ lzrw3.c: In function 'compress_decompress': lzrw3.c:592:12: warning: old-style function definition [-Wold-style-definition] 592 | LOCAL void compress_decompress | ^~~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o deflate.o -c deflate.c deflate.c: In function 'lm_init': deflate.c:316:6: warning: old-style function definition [-Wold-style-definition] 316 | void lm_init (pack_level, flags) | ^~~~~~~ deflate.c: In function 'longest_match': deflate.c:387:5: warning: old-style function definition [-Wold-style-definition] 387 | int longest_match(cur_match) | ^~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o util.o -c util.c util.c: In function 'copy': util.c:57:5: warning: old-style function definition [-Wold-style-definition] 57 | int copy(in, out) | ^~~~ util.c: In function 'updcrc': util.c:78:5: warning: old-style function definition [-Wold-style-definition] 78 | ulg updcrc(s, n) | ^~~~~~ util.c: In function 'fill_inbuf': util.c:111:5: warning: old-style function definition [-Wold-style-definition] 111 | int fill_inbuf(eof_ok) | ^~~~~~~~~~ util.c: In function 'write_buf': util.c:167:6: warning: old-style function definition [-Wold-style-definition] 167 | void write_buf(fd, buf, cnt) | ^~~~~~~~~ util.c: In function 'strlwr': util.c:186:7: warning: old-style function definition [-Wold-style-definition] 186 | char *strlwr(s) | ^~~~~~ util.c: In function 'make_simple_name': util.c:226:6: warning: old-style function definition [-Wold-style-definition] 226 | void make_simple_name(name) | ^~~~~~~~~~~~~~~~ util.c: In function 'add_envopt': util.c:297:7: warning: old-style function definition [-Wold-style-definition] 297 | char *add_envopt(argcp, argvp, env) | ^~~~~~~~~~ util.c: In function 'error': util.c:354:6: warning: old-style function definition [-Wold-style-definition] 354 | void error(m) | ^~~~~ util.c: In function 'warn': util.c:361:6: warning: old-style function definition [-Wold-style-definition] 361 | void warn(a, b) | ^~~~ util.c: In function 'display_ratio': util.c:388:6: warning: old-style function definition [-Wold-style-definition] 388 | void display_ratio(num, den, file) | ^~~~~~~~~~~~~ util.c: In function 'xmalloc': util.c:415:7: warning: old-style function definition [-Wold-style-definition] 415 | voidp xmalloc (size) | ^~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o trees.o -c trees.c trees.c: In function 'ct_init': trees.c:362:6: warning: old-style function definition [-Wold-style-definition] 362 | void ct_init(attr, methodp) | ^~~~~~~ trees.c: In function 'pqdownheap': trees.c:481:12: warning: old-style function definition [-Wold-style-definition] 481 | local void pqdownheap(tree, k) | ^~~~~~~~~~ trees.c: In function 'gen_bitlen': trees.c:513:12: warning: old-style function definition [-Wold-style-definition] 513 | local void gen_bitlen(desc) | ^~~~~~~~~~ trees.c: In function 'gen_codes': trees.c:598:12: warning: old-style function definition [-Wold-style-definition] 598 | local void gen_codes (tree, max_code) | ^~~~~~~~~ trees.c: In function 'build_tree': trees.c:639:12: warning: old-style function definition [-Wold-style-definition] 639 | local void build_tree(desc) | ^~~~~~~~~~ trees.c: In function 'scan_tree': trees.c:726:12: warning: old-style function definition [-Wold-style-definition] 726 | local void scan_tree (tree, max_code) | ^~~~~~~~~ trees.c: In function 'send_tree': trees.c:770:12: warning: old-style function definition [-Wold-style-definition] 770 | local void send_tree (tree, max_code) | ^~~~~~~~~ trees.c: In function 'send_all_trees': trees.c:853:12: warning: old-style function definition [-Wold-style-definition] 853 | local void send_all_trees(lcodes, dcodes, blcodes) | ^~~~~~~~~~~~~~ trees.c: In function 'flush_block': trees.c:883:5: warning: old-style function definition [-Wold-style-definition] 883 | ulg flush_block(buf, stored_len, eof) | ^~~~~~~~~~~ trees.c: In function 'ct_tally': trees.c:988:5: warning: old-style function definition [-Wold-style-definition] 988 | int ct_tally (dist, lc) | ^~~~~~~~ trees.c: In function 'compress_block': trees.c:1041:12: warning: old-style function definition [-Wold-style-definition] 1041 | local void compress_block(ltree, dtree) | ^~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' 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 -O3 -fno-strength-reduce -Wall -DLINUX -D_GNU_SOURCE -Dlint -DTRIPLE_BUFFER -D__USE_FILE_OFFSET64 -DGLIBC_2 -DBSD_SIGNALS -I/usr/include/ncurses -o inflate.o -c inflate.c inflate.c: In function 'huft_build': inflate.c:301:5: warning: old-style function definition [-Wold-style-definition] 301 | int huft_build(b, n, s, d, e, t, m) | ^~~~~~~~~~ inflate.c: In function 'huft_free': inflate.c:499:5: warning: old-style function definition [-Wold-style-definition] 499 | int huft_free(t) | ^~~~~~~~~ inflate.c: In function 'inflate_codes': inflate.c:520:5: warning: old-style function definition [-Wold-style-definition] 520 | int inflate_codes(tl, td, bl, bd) | ^~~~~~~~~~~~~ inflate.c: In function 'inflate_block': inflate.c:897:5: warning: old-style function definition [-Wold-style-definition] 897 | int inflate_block(e) | ^~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' ar rc comp_lib zip.o unzip.o bits.o trees.o deflate.o inflate.o util.o lzrw3.o ranlib comp_lib make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/taper-7.0-build/taper-7.0pre-1/compress' error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.rQu4Ft (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.rQu4Ft (%build) I: [iurt_root_command] ERROR: chroot