D: [iurt_root_command] chroot warning: %patchN is deprecated (7 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/pdisk-0.8-23.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.o9qSY2 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf pdisk + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/pdisk.20000516.src.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd pdisk + rm -rf /home/pterjan/rpmbuild/BUILD/pdisk-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/pdisk-SPECPARTS + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/diskdev_cmds-208.11.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (pdisk-changetype.patch):' Patch #0 (pdisk-changetype.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file pdisk.c + pushd diskdev_cmds-208.11 ~/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11 ~/rpmbuild/BUILD/pdisk + echo 'Patch #1 (diskdev_cmds.diff):' Patch #1 (diskdev_cmds.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .hfsplus --fuzz=0 patching file Makefile.lnx patching file fsck_hfs.tproj/Makefile.lnx patching file fsck_hfs.tproj/cache.c patching file fsck_hfs.tproj/dfalib/BTree.c patching file fsck_hfs.tproj/dfalib/BTreeAllocate.c patching file fsck_hfs.tproj/dfalib/BTreeMiscOps.c patching file fsck_hfs.tproj/dfalib/BTreeNodeOps.c patching file fsck_hfs.tproj/dfalib/BTreePrivate.h patching file fsck_hfs.tproj/dfalib/BTreeTreeOps.c patching file fsck_hfs.tproj/dfalib/CatalogCheck.c patching file fsck_hfs.tproj/dfalib/HardLinkCheck.c patching file fsck_hfs.tproj/dfalib/Makefile.lnx patching file fsck_hfs.tproj/dfalib/SAllocate.c patching file fsck_hfs.tproj/dfalib/SBTree.c patching file fsck_hfs.tproj/dfalib/SCatalog.c patching file fsck_hfs.tproj/dfalib/SControl.c patching file fsck_hfs.tproj/dfalib/SDevice.c patching file fsck_hfs.tproj/dfalib/SExtents.c patching file fsck_hfs.tproj/dfalib/SKeyCompare.c patching file fsck_hfs.tproj/dfalib/SRebuildCatalogBTree.c patching file fsck_hfs.tproj/dfalib/SRepair.c patching file fsck_hfs.tproj/dfalib/SRuntime.h patching file fsck_hfs.tproj/dfalib/SStubs.c patching file fsck_hfs.tproj/dfalib/SUtils.c patching file fsck_hfs.tproj/dfalib/SVerify1.c patching file fsck_hfs.tproj/dfalib/SVerify2.c patching file fsck_hfs.tproj/dfalib/Scavenger.h patching file fsck_hfs.tproj/dfalib/VolumeBitmapCheck.c patching file fsck_hfs.tproj/dfalib/hfs_endian.c patching file fsck_hfs.tproj/dfalib/hfs_endian.h patching file fsck_hfs.tproj/fsck_hfs.c patching file fsck_hfs.tproj/utilities.c patching file include/architecture/byte_order.h patching file include/bitstring.h patching file include/hfs/hfs_format.h patching file include/sys/appleapiopts.h patching file newfs_hfs.tproj/Makefile.lnx patching file newfs_hfs.tproj/hfs_endian.h patching file newfs_hfs.tproj/makehfs.c patching file newfs_hfs.tproj/newfs_hfs.c patching file newfs_hfs.tproj/newfs_hfs.h + popd ~/rpmbuild/BUILD/pdisk + echo 'Patch #2 (pdisk-gcc-4.0.patch):' Patch #2 (pdisk-gcc-4.0.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .gcc40 --fuzz=0 patching file diskdev_cmds-208.11/fsck_hfs.tproj/dfalib/BTreeNodeOps.c patching file diskdev_cmds-208.11/fsck_hfs.tproj/dfalib/BTreeScanner.c + echo 'Patch #3 (pdisk-gcc44.patch):' Patch #3 (pdisk-gcc44.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .gcc44 --fuzz=0 patching file dump.c + echo 'Patch #4 (pdisk-fix-str-fmt.patch):' Patch #4 (pdisk-fix-str-fmt.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .str --fuzz=0 patching file io.c + echo 'Patch #5 (llseek.patch):' Patch #5 (llseek.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .llseek --fuzz=0 patching file file_media.c + echo 'Patch #6 (pdisk.sys_errlist.patch):' Patch #6 (pdisk.sys_errlist.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .glibc --fuzz=0 patching file errors.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.FAY0XG + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd pdisk + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j16 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' cc -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 -c -o bitfield.o bitfield.c cc -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 -c -o convert.o convert.c cc -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 -c -o hfs_misc.o hfs_misc.c cc -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 -c -o pathname.o pathname.c cc -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 -c -o errors.o errors.c cc -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 -c -o deblock_media.o deblock_media.c cc -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 -c -o media.o media.c cc -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 -c -o util.o util.c cc -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 -c -o dump.o dump.c cc -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 -c -o cvt_pt.o cvt_pt.c cc -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 -c -o io.o io.c cc -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 -c -o file_media.o file_media.c cc -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 -c -o validate.o validate.c cc -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 -c -o pdisk.o pdisk.c cc -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 -c -o partition_map.o partition_map.c cc -o pdisk pdisk.o dump.o partition_map.o bitfield.o convert.o deblock_media.o file_media.o errors.o hfs_misc.o io.o media.o pathname.o util.o validate.o cc -o cvt_pt cvt_pt.o partition_map.o bitfield.o convert.o deblock_media.o file_media.o errors.o hfs_misc.o io.o media.o pathname.o util.o + cd diskdev_cmds-208.11 + /usr/bin/make -O -j16 V=1 VERBOSE=1 -f Makefile.lnx for d in newfs_hfs.tproj fsck_hfs.tproj; do /usr/bin/make -C $d -f Makefile.lnx all; done make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/newfs_hfs.tproj' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o newfs_hfs.o newfs_hfs.c newfs_hfs.c: In function 'hfsplus_params': newfs_hfs.c:573:33: warning: pointer targets in assignment from 'char *' to 'UInt8 *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 573 | defaults->journalDevice = gJournalDevice; | ^ newfs_hfs.c:576:25: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] 576 | strncpy(defaults->volumeName, gVolumeName, sizeof(defaults->volumeName) - 1); | ~~~~~~~~^~~~~~~~~~~~ | | | UInt8 * {aka unsigned char *} In file included from newfs_hfs.c:39: /usr/include/string.h:144:40: note: expected 'char * restrict' but argument is of type 'UInt8 *' {aka 'unsigned char *'} 144 | extern char *strncpy (char *__restrict __dest, | ~~~~~~~~~~~~~~~~~^~~~~~ newfs_hfs.c:674:35: warning: format '%Lu' expects argument of type 'long long unsigned int', but argument 2 has type 'UInt64' {aka 'long unsigned int'} [-Wformat=] 674 | printf("%Lu sectors (%u bytes per sector)\n", sectorCount, sectorSize); | ~~^ ~~~~~~~~~~~ | | | | long long unsigned int UInt64 {aka long unsigned int} | %lu newfs_hfs.c: In function 'hfs_params': newfs_hfs.c:709:25: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] 709 | strncpy(defaults->volumeName, gVolumeName, sizeof(defaults->volumeName) - 1); | ~~~~~~~~^~~~~~~~~~~~ | | | UInt8 * {aka unsigned char *} /usr/include/string.h:144:40: note: expected 'char * restrict' but argument is of type 'UInt8 *' {aka 'unsigned char *'} 144 | extern char *strncpy (char *__restrict __dest, | ~~~~~~~~~~~~~~~~~^~~~~~ In function 'hfs_params', inlined from 'hfs_newfs.constprop' at newfs_hfs.c:497:3: newfs_hfs.c:709:9: warning: 'strncpy' output may be truncated copying 63 bytes from a string of length 254 [-Wstringop-truncation] 709 | strncpy(defaults->volumeName, gVolumeName, sizeof(defaults->volumeName) - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'hfsplus_params', inlined from 'hfs_newfs.constprop' at newfs_hfs.c:531:3: newfs_hfs.c:576:9: warning: 'strncpy' output may be truncated copying 63 bytes from a string of length 254 [-Wstringop-truncation] 576 | strncpy(defaults->volumeName, gVolumeName, sizeof(defaults->volumeName) - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/newfs_hfs.tproj' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/newfs_hfs.tproj' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o makehfs.o makehfs.c makehfs.c: In function 'make_hfs': makehfs.c:219:52: warning: pointer targets in passing argument 3 of 'WriteReadMeFile' differ in signedness [-Wpointer-sign] 219 | WriteReadMeFile(driveInfo, sector, &gReadMeFork.logicalSize); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | SInt32 * {aka int *} In file included from /usr/include/features.h:503, from /usr/include/unistd.h:25, from makehfs.c:33: makehfs.c:117:25: note: expected 'UInt32 *' {aka 'unsigned int *'} but argument is of type 'SInt32 *' {aka 'int *'} 117 | UInt32 *filesize)); | ~~~~~~~~^~~~~~~~ makehfs.c:226:52: warning: pointer targets in passing argument 3 of 'WriteSystemFile' differ in signedness [-Wpointer-sign] 226 | WriteSystemFile(driveInfo, sector, &gSystemFork.logicalSize); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | SInt32 * {aka int *} makehfs.c:115:25: note: expected 'UInt32 *' {aka 'unsigned int *'} but argument is of type 'SInt32 *' {aka 'int *'} 115 | UInt32 *filesize)); | ~~~~~~~~^~~~~~~~ makehfs.c: In function 'make_hfsplus': makehfs.c:302:33: warning: variable 'sectorsPerNode' set but not used [-Wunused-but-set-variable] 302 | UInt32 sectorsPerNode; | ^~~~~~~~~~~~~~ makehfs.c: In function 'InitMDB': makehfs.c:534:40: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 534 | mdbp->drVN[0] = strlen(defaults->volumeName); | ~~~~~~~~^~~~~~~~~~~~ | | | UInt8 * {aka unsigned char *} In file included from makehfs.c:46: /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'UInt8 *' {aka 'unsigned char *'} 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ makehfs.c: In function 'InitCatalogRoot_HFSPlus': makehfs.c:1099:54: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1099 | ckp->nodeName.unicode, &ckp->nodeName.length); | ~~~~~~~~~~~~~^~~~~~~~ makehfs.c:1099:64: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1099 | ckp->nodeName.unicode, &ckp->nodeName.length); | ^~~~~~~~~~~~~~~~~~~~~ makehfs.c:63:33: warning: pointer targets in passing argument 1 of 'ConvertUTF8toUnicode' differ in signedness [-Wpointer-sign] 63 | #define HFS_JOURNAL_FILE ".journal" | ^~~~~~~~~~ | | | char * makehfs.c:1146:45: note: in expansion of macro 'HFS_JOURNAL_FILE' 1146 | (void) ConvertUTF8toUnicode(HFS_JOURNAL_FILE, sizeof(ckp->nodeName.unicode), | ^~~~~~~~~~~~~~~~ makehfs.c:133:51: note: expected 'const UInt8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 133 | static int ConvertUTF8toUnicode __P((const UInt8* source, UInt32 bufsize, | ~~~~~~~~~~~~~^~~~~~ makehfs.c:1147:58: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1147 | ckp->nodeName.unicode, &ckp->nodeName.length); | ~~~~~~~~~~~~~^~~~~~~~ makehfs.c:1147:68: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1147 | ckp->nodeName.unicode, &ckp->nodeName.length); | ^~~~~~~~~~~~~~~~~~~~~ makehfs.c:64:33: warning: pointer targets in passing argument 1 of 'ConvertUTF8toUnicode' differ in signedness [-Wpointer-sign] 64 | #define HFS_JOURNAL_INFO ".journal_info_block" | ^~~~~~~~~~~~~~~~~~~~~ | | | char * makehfs.c:1177:45: note: in expansion of macro 'HFS_JOURNAL_INFO' 1177 | (void) ConvertUTF8toUnicode(HFS_JOURNAL_INFO, sizeof(ckp->nodeName.unicode), | ^~~~~~~~~~~~~~~~ makehfs.c:133:51: note: expected 'const UInt8 *' {aka 'const unsigned char *'} but argument is of type 'char *' 133 | static int ConvertUTF8toUnicode __P((const UInt8* source, UInt32 bufsize, | ~~~~~~~~~~~~~^~~~~~ makehfs.c:1178:58: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1178 | ckp->nodeName.unicode, &ckp->nodeName.length); | ~~~~~~~~~~~~~^~~~~~~~ makehfs.c:1178:68: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1178 | ckp->nodeName.unicode, &ckp->nodeName.length); | ^~~~~~~~~~~~~~~~~~~~~ makehfs.c: In function 'InitFirstCatalogLeaf': makehfs.c:1271:44: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 1271 | ckp->nodeName[0] = strlen(dp->volumeName); | ~~^~~~~~~~~~~~ | | | const UInt8 * {aka const unsigned char *} /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'const UInt8 *' {aka 'const unsigned char *'} 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ makehfs.c: In function 'InitCatalogRoot_HFS': makehfs.c:1494:44: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 1494 | ckp->nodeName[0] = strlen(dp->volumeName); | ~~^~~~~~~~~~~~ | | | const UInt8 * {aka const unsigned char *} /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'const UInt8 *' {aka 'const unsigned char *'} 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ makehfs.c: In function 'WriteBuffer': makehfs.c:1779:40: warning: format '%qd' expects argument of type 'long long int', but argument 3 has type 'off_t' {aka 'long int'} [-Wformat=] 1779 | err(1, "seek (sector %qd)", sector); | ~~^ ~~~~~~ | | | | | off_t {aka long int} | long long int | %ld makehfs.c:1782:41: warning: format '%qd' expects argument of type 'long long int', but argument 3 has type 'off_t' {aka 'long int'} [-Wformat=] 1782 | err(1, "write (sector %qd, %u bytes)", sector, byteCount); | ~~^ ~~~~~~ | | | | long long int off_t {aka long int} | %ld make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/newfs_hfs.tproj' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/newfs_hfs.tproj' gcc newfs_hfs.o makehfs.o -o newfs_hfs make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/newfs_hfs.tproj' /usr/bin/make -C dfalib -f Makefile.lnx libdfa.a make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o strings.o strings.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o BTreeScanner.o BTreeScanner.c BTreeScanner.c: In function 'FindNextLeafNode': BTreeScanner.c:158:51: error: assignment to 'BTNodeDescriptor *' from incompatible pointer type 'u_int8_t *' {aka 'unsigned char *'} [-Wincompatible-pointer-types] 158 | scanState->currentNodePtr = (u_int8_t *) scanState->currentNodePtr + scanState->btcb->nodeSize; | ^ make[2]: *** [: BTreeScanner.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' make[2]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o utilities.o utilities.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o BTreeNodeOps.o BTreeNodeOps.c BTreeNodeOps.c: In function 'PrintNode': BTreeNodeOps.c:474:55: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 474 | printf("%04X: %08X %08X %08X %08X\n", (u_int)offset++, lp[0], lp[1], lp[2], lp[3]); | ^ BTreeNodeOps.c: In function 'InsertKeyRecord': BTreeNodeOps.c:646:21: error: assignment to 'UInt8 *' {aka 'unsigned char *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] 646 | dst = *((u_big_int16_t *) dst) + 1; | ^ make[2]: *** [: BTreeNodeOps.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o BTreeAllocate.o BTreeAllocate.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o fsck_hfs.o fsck_hfs.c fsck_hfs.c: In function 'checkfilesys': fsck_hfs.c:155:13: warning: variable 'flags' set but not used [-Wunused-but-set-variable] 155 | int flags; | ^~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o BlockCache.o BlockCache.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o BTreeMiscOps.o BTreeMiscOps.c BTreeMiscOps.c: In function 'TrySimpleReplace': BTreeMiscOps.c:499:41: warning: variable 'didItFit' set but not used [-Wunused-but-set-variable] 499 | Boolean didItFit; | ^~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o HardLinkCheck.o HardLinkCheck.c HardLinkCheck.c: In function 'CheckHardLinks': HardLinkCheck.c:260:52: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 260 | (void) utf_encodestr(keyp->nodeName.unicode, | ~~~~~~~~~~~~~~^~~~~~~~ HardLinkCheck.c:262:41: warning: pointer targets in passing argument 3 of 'utf_encodestr' differ in signedness [-Wpointer-sign] 262 | filename, &len); | ^~~~~~~~ | | | char * In file included from HardLinkCheck.c:23: Scavenger.h:1280:57: note: expected 'u_int8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 1280 | extern int utf_encodestr(const u_big_int16_t *, size_t, u_int8_t *, size_t *); | ^~~~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o cache.o cache.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o BTreeTreeOps.o BTreeTreeOps.c BTreeTreeOps.c: In function 'InsertLevel': BTreeTreeOps.c:386:34: warning: pointer targets in passing argument 1 of 'DebugStr' differ in signedness [-Wpointer-sign] 386 | DebugStr(" InsertLevel: New root from primary key, update from secondary key..."); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from BTree.h:37, from BTreePrivate.h:39, from BTreeTreeOps.c:36: SRuntime.h:137:27: note: expected 'ConstStr255Param' {aka 'const unsigned char *'} but argument is of type 'char *' 137 | DebugStr(ConstStr255Param debuggerMsg); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ BTreeTreeOps.c: In function 'InsertNode': BTreeTreeOps.c:512:42: warning: variable 'rightNodeNum' set but not used [-Wunused-but-set-variable] 512 | UInt32 rightNodeNum; | ^~~~~~~~~~~~ BTreeTreeOps.c: In function 'AddNewRootNode': BTreeTreeOps.c:1190:41: warning: variable 'didItFit' set but not used [-Wunused-but-set-variable] 1190 | Boolean didItFit; | ^~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o BTree.o BTree.c make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o SControl.o SControl.c SControl.c: In function 'ScavSetUp': SControl.c:719:16: warning: variable 'err' set but not used [-Wunused-but-set-variable] 719 | OSErr err; | ^~~ SControl.c: In function 'ScavTerm': SControl.c:955:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 955 | if( btcbP->refCon != (UInt32)nil ) | ^ SControl.c:957:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 957 | if(((BTreeExtensionsRec*)btcbP->refCon)->BTCBMPtr != nil) | ^ In file included from Scavenger.h:31, from SControl.c:43: SControl.c:959:56: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 959 | DisposeMemory(((BTreeExtensionsRec*)btcbP->refCon)->BTCBMPtr); | ^ SRuntime.h:393:55: note: in definition of macro 'DisposeMemory' 393 | #define DisposeMemory(ptr) free((void *)(ptr)) | ^~~ SControl.c:962:48: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 962 | DisposeMemory( (Ptr)btcbP->refCon ); | ^ SRuntime.h:393:55: note: in definition of macro 'DisposeMemory' 393 | #define DisposeMemory(ptr) free((void *)(ptr)) | ^~~ SControl.c:964:49: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 964 | btcbP->refCon = (UInt32)nil; | ^ SControl.c:970:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 970 | if( btcbP->refCon != (UInt32)nil ) | ^ SControl.c:972:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 972 | if(((BTreeExtensionsRec*)btcbP->refCon)->BTCBMPtr != nil) | ^ SControl.c:974:56: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 974 | DisposeMemory(((BTreeExtensionsRec*)btcbP->refCon)->BTCBMPtr); | ^ SRuntime.h:393:55: note: in definition of macro 'DisposeMemory' 393 | #define DisposeMemory(ptr) free((void *)(ptr)) | ^~~ SControl.c:977:48: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 977 | DisposeMemory( (Ptr)btcbP->refCon ); | ^ SRuntime.h:393:55: note: in definition of macro 'DisposeMemory' 393 | #define DisposeMemory(ptr) free((void *)(ptr)) | ^~~ SControl.c:979:49: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 979 | btcbP->refCon = (UInt32)nil; | ^ SControl.c:925:33: warning: variable 'err' set but not used [-Wunused-but-set-variable] 925 | OSErr err; | ^~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o SVerify2.o SVerify2.c SVerify2.c: In function 'CmpBTM': SVerify2.c:736:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 736 | sbtmP = ((BTreeExtensionsRec*)calculatedBTCB->refCon)->BTCBMPtr; | ^ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o SBTree.o SBTree.c SBTree.c: In function 'SearchBTreeRecord': SBTree.c:96:34: warning: pointer targets in passing argument 1 of 'DebugStr' differ in signedness [-Wpointer-sign] 96 | DebugStr("SearchBTreeRecord: bad record?"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * In file included from BTree.h:37, from SBTree.c:36: SRuntime.h:137:27: note: expected 'ConstStr255Param' {aka 'const unsigned char *'} but argument is of type 'char *' 137 | DebugStr(ConstStr255Param debuggerMsg); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ SBTree.c: In function 'GetBTreeRecord': SBTree.c:193:34: warning: pointer targets in passing argument 1 of 'DebugStr' differ in signedness [-Wpointer-sign] 193 | DebugStr("GetBTreeRecord: bad record?"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * SRuntime.h:137:27: note: expected 'ConstStr255Param' {aka 'const unsigned char *'} but argument is of type 'char *' 137 | DebugStr(ConstStr255Param debuggerMsg); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ SBTree.c: In function 'InsertBTreeRecord': SBTree.c:225:26: warning: pointer targets in passing argument 1 of 'DebugStr' differ in signedness [-Wpointer-sign] 225 | DebugStr("InsertBTreeRecord: bad record?"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * SRuntime.h:137:27: note: expected 'ConstStr255Param' {aka 'const unsigned char *'} but argument is of type 'char *' 137 | DebugStr(ConstStr255Param debuggerMsg); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ SBTree.c: In function 'ReplaceBTreeRecord': SBTree.c:287:26: warning: pointer targets in passing argument 1 of 'DebugStr' differ in signedness [-Wpointer-sign] 287 | DebugStr("ReplaceBTreeRecord: bad record?"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * SRuntime.h:137:27: note: expected 'ConstStr255Param' {aka 'const unsigned char *'} but argument is of type 'char *' 137 | DebugStr(ConstStr255Param debuggerMsg); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ SBTree.c: In function 'SetEndOfForkProc': SBTree.c:325:34: warning: pointer targets in passing argument 1 of 'DebugStr' differ in signedness [-Wpointer-sign] 325 | DebugStr("SetEndOfForkProc: minEOF is smaller than current size!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * SRuntime.h:137:27: note: expected 'ConstStr255Param' {aka 'const unsigned char *'} but argument is of type 'char *' 137 | DebugStr(ConstStr255Param debuggerMsg); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ SBTree.c: In function 'CheckBTreeKey': SBTree.c:423:34: warning: pointer targets in passing argument 1 of 'DebugStr' differ in signedness [-Wpointer-sign] 423 | DebugStr("CheckBTreeKey: bad key length!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | char * SRuntime.h:137:27: note: expected 'ConstStr255Param' {aka 'const unsigned char *'} but argument is of type 'char *' 137 | DebugStr(ConstStr255Param debuggerMsg); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o SVerify1.o SVerify1.c SVerify1.c: In function 'CreateExtentsBTreeControlBlock': SVerify1.c:811:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 811 | btcb->refCon = (UInt32) AllocateClearMemory( sizeof(BTreeExtensionsRec) ); // allocate space for our BTCB extensions | ^ SVerify1.c:812:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 812 | if ( btcb->refCon == (UInt32) nil ) { | ^ SVerify1.c:817:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 817 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr = AllocateClearMemory(size); // get precleared bitmap | ^ SVerify1.c:818:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 818 | if ( ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr == nil ) | ^ SVerify1.c:824:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 824 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMSize = size; // remember how long it is | ^ SVerify1.c:825:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 825 | ((BTreeExtensionsRec*)btcb->refCon)->realFreeNodeCount = SWAP_BE32(header.freeNodes);// keep track of real free nodes for progress | ^ SVerify1.c: In function 'CreateCatalogBTreeControlBlock': SVerify1.c:1129:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1129 | btcb->refCon = (UInt32) AllocateClearMemory( sizeof(BTreeExtensionsRec) ); // allocate space for our BTCB extensions | ^ SVerify1.c:1130:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1130 | if ( btcb->refCon == (UInt32)nil ) { | ^ SVerify1.c:1135:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1135 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr = AllocateClearMemory(size); // get precleared bitmap | ^ SVerify1.c:1136:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1136 | if ( ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr == nil ) | ^ SVerify1.c:1142:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1142 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMSize = size; // remember how long it is | ^ SVerify1.c:1143:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1143 | ((BTreeExtensionsRec*)btcb->refCon)->realFreeNodeCount = SWAP_BE32(header.freeNodes); // keep track of real free nodes for progress | ^ SVerify1.c: In function 'CatHChk': SVerify1.c:1553:25: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1553 | if ( valence != dprP->offspringIndex -1 ) /* check its valence */ | ^~ SVerify1.c:1555:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1555 | if ( result ) | ^~ SVerify1.c:1573:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1573 | if (!isHFSPlus && (rtdirCnt != calculatedVCB->vcbNmRtDirs)) /* check count of dirs in root */ | ^~ SVerify1.c:1575:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1575 | if ( result ) | ^~ SVerify1.c:1578:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1578 | if (!isHFSPlus && (rtfilCnt != calculatedVCB->vcbNmFls)) /* check count of files in root */ | ^~ SVerify1.c:1580:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1580 | if ( result ) | ^~ SVerify1.c:1583:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1583 | if (dirCnt != calculatedVCB->vcbFolderCount) /* check count of dirs in volume */ | ^~ SVerify1.c:1585:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1585 | if ( result ) | ^~ SVerify1.c:1588:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 1588 | if (filCnt != calculatedVCB->vcbFileCount) /* check count of files in volume */ | ^~ SVerify1.c:1590:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 1590 | if ( result ) | ^~ SVerify1.c: In function 'CreateAttributesBTreeControlBlock': SVerify1.c:1726:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1726 | btcb->refCon = (UInt32) AllocateClearMemory( sizeof(BTreeExtensionsRec) ); // allocate space for our BTCB extensions | ^ SVerify1.c:1727:30: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1727 | if ( btcb->refCon == (UInt32)nil ) { | ^ SVerify1.c:1734:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1734 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr = nil; | ^ SVerify1.c:1735:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1735 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMSize = 0; | ^ SVerify1.c:1736:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1736 | ((BTreeExtensionsRec*)btcb->refCon)->realFreeNodeCount = 0; | ^ SVerify1.c:1740:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1740 | if ( btcb->refCon == (UInt32)nil ) { | ^ SVerify1.c:1745:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1745 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr = AllocateClearMemory(size); // get precleared bitmap | ^ SVerify1.c:1746:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1746 | if ( ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr == nil ) | ^ SVerify1.c:1752:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1752 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMSize = size; // remember how long it is | ^ SVerify1.c:1753:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1753 | ((BTreeExtensionsRec*)btcb->refCon)->realFreeNodeCount = SWAP_BE32(header.freeNodes); // keep track of real free nodes for progress | ^ In file included from Scavenger.h:31, from SVerify1.c:38: SVerify1.c: In function 'VLockedChk': SRuntime.h:394:41: warning: '__builtin_memcpy' forming offset [15, 27] is out of the bounds [0, 15] [-Warray-bounds=] 394 | #define CopyMemory(src,dst,len) bcopy((void*)(src),(void*)(dst),(size_t)(len)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SVerify1.c:2389:17: note: in expansion of macro 'CopyMemory' 2389 | CopyMemory( "\x0dPure HFS Plus", calculatedVCB->vcbVN, sizeof(Str27) ); | ^~~~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' gcc -g -O2 -Wall -I/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -c -o CatalogCheck.o CatalogCheck.c CatalogCheck.c: In function 'CheckDirectory': CatalogCheck.c:330:51: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 330 | (void) utf_encodestr(key->nodeName.unicode, | ~~~~~~~~~~~~~^~~~~~~~ CatalogCheck.c:332:53: warning: pointer targets in passing argument 3 of 'utf_encodestr' differ in signedness [-Wpointer-sign] 332 | gScavGlobals->volumeName, &len); | ~~~~~~~~~~~~^~~~~~~~~~~~ | | | char * In file included from CatalogCheck.c:23: Scavenger.h:1280:57: note: expected 'u_int8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 1280 | extern int utf_encodestr(const u_big_int16_t *, size_t, u_int8_t *, size_t *); | ^~~~~~~~~~ CatalogCheck.c:353:72: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 353 | CheckCatalogName(SWAP_BE16(key->nodeName.length), key->nodeName.unicode, SWAP_BE32(key->parentID), false); | ~~~~~~~~~~~~~^~~~~~~~ CatalogCheck.c: In function 'CheckFile': CatalogCheck.c:375:43: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 375 | (void) utf_encodestr(key->nodeName.unicode, | ~~~~~~~~~~~~~^~~~~~~~ CatalogCheck.c:377:33: warning: pointer targets in passing argument 3 of 'utf_encodestr' differ in signedness [-Wpointer-sign] 377 | filename, &len); | ^~~~~~~~ | | | char * Scavenger.h:1280:57: note: expected 'u_int8_t *' {aka 'unsigned char *'} but argument is of type 'char *' 1280 | extern int utf_encodestr(const u_big_int16_t *, size_t, u_int8_t *, size_t *); | ^~~~~~~~~~ CatalogCheck.c:450:72: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 450 | CheckCatalogName(SWAP_BE16(key->nodeName.length), key->nodeName.unicode, SWAP_BE32(key->parentID), false); | ~~~~~~~~~~~~~^~~~~~~~ CatalogCheck.c: In function 'CheckThread': CatalogCheck.c:470:87: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 470 | result = CheckCatalogName(SWAP_BE16(thread->nodeName.length), thread->nodeName.unicode, | ~~~~~~~~~~~~~~~~^~~~~~~~ CatalogCheck.c: In function 'UniqueDotName': CatalogCheck.c:976:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 976 | else | ^~~~ CatalogCheck.c:979:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 979 | nameLen = strlen( myPtr ); | ^~~~~~~ CatalogCheck.c:979:27: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 979 | nameLen = strlen( myPtr ); | ^~~~~ | | | u_char * {aka unsigned char *} In file included from SRuntime.h:33, from Scavenger.h:31: /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'u_char *' {aka 'unsigned char *'} 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ CatalogCheck.c: In function 'RecordTruncation': CatalogCheck.c:1079:32: warning: format '%qd' expects argument of type 'long long int', but argument 3 has type 'UInt64' {aka 'long unsigned int'} [-Wformat=] 1079 | sprintf(oldSizeStr, "%qd", oldSize); | ~~^ ~~~~~~~ | | | | | UInt64 {aka long unsigned int} | long long int | %ld CatalogCheck.c:1080:32: warning: format '%qd' expects argument of type 'long long int', but argument 3 has type 'UInt64' {aka 'long unsigned int'} [-Wformat=] 1080 | sprintf(newSizeStr, "%qd", newSize); | ~~^ ~~~~~~~ | | | | | UInt64 {aka long unsigned int} | long long int | %ld CatalogCheck.c: In function 'FixDecomps': CatalogCheck.c:1215:59: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1215 | u_big_int16_t * outNamePtr = outFilename->unicode; | ^~~~~~~~~~~ CatalogCheck.c:1217:51: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1217 | u_big_int16_t * outNameLastPtr = &outFilename->unicode[kHFSPlusMaxFileNameChars - 1]; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/pdisk/diskdev_cmds-208.11/fsck_hfs.tproj/dfalib' make[1]: *** [Makefile.lnx:9: dfalib/libdfa.a] Error 2 make: *** [Makefile.lnx:7: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.FAY0XG (%build) RPM build warnings: %patchN is deprecated (7 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.FAY0XG (%build) I: [iurt_root_command] ERROR: chroot