D: [iurt_root_command] chroot Installing /home/iurt/rpmbuild/SRPMS/hfsplus-tools-332.14-12.mga8.src.rpm Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.vwg2Hc + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf diskdev_cmds-332.14 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /home/iurt/rpmbuild/SOURCES/diskdev_cmds-332.14.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd diskdev_cmds-332.14 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (diskdev_cmds-332.14.patch.bz2):' Patch #0 (diskdev_cmds-332.14.patch.bz2): + /usr/bin/bzip2 -dc /home/iurt/rpmbuild/SOURCES/diskdev_cmds-332.14.patch.bz2 + /usr/bin/patch --no-backup-if-mismatch -p1 --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/BTreeTreeOps.c patching file fsck_hfs.tproj/dfalib/BlockCache.c patching file fsck_hfs.tproj/dfalib/Makefile.lnx patching file fsck_hfs.tproj/dfalib/SBTree.c patching file fsck_hfs.tproj/dfalib/SControl.c patching file fsck_hfs.tproj/dfalib/SDevice.c patching file fsck_hfs.tproj/dfalib/SKeyCompare.c patching file fsck_hfs.tproj/dfalib/SRepair.c patching file fsck_hfs.tproj/dfalib/SRuntime.h patching file fsck_hfs.tproj/dfalib/SUtils.c patching file fsck_hfs.tproj/dfalib/SVerify2.c patching file fsck_hfs.tproj/dfalib/Scavenger.h 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/bitstring.h patching file include/hfs/hfs_format.h patching file include/hfs/hfs_mount.h patching file include/missing.h patching file include/sys/appleapiopts.h patching file newfs_hfs.tproj/Makefile.lnx patching file newfs_hfs.tproj/hfs_endian.c 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 + echo 'Patch #1 (hfsplus-tools-332.14-add-needed.patch):' Patch #1 (hfsplus-tools-332.14-add-needed.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .add-needed --fuzz=0 patching file newfs_hfs.tproj/Makefile.lnx + sed -i -e 's/^CFLAGS.*/CFLAGS := $(CFLAGS) -I$(PWD)\/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1/' Makefile.lnx + find . -type f -name '*.[ch]' -exec chmod -c -x '{}' + mode of './fsck_hfs.tproj/dfalib/hfs_endian.h' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './fsck_hfs.tproj/dfalib/BTreeScanner.h' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './fsck_hfs.tproj/dfalib/SRebuildCatalogBTree.c' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './fsck_hfs.tproj/dfalib/hfs_endian.c' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './fsck_hfs.tproj/dfalib/BTreeScanner.c' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './fsck_hfs.tproj/dfalib/HardLinkCheck.c' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './newfs.tproj/ufs_byte_order.h' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './fsck.tproj/ufs_byte_order.h' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './quotacheck.tproj/ufs_byte_order.h' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './clri.tproj/ufs_byte_order.h' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) + cp /home/iurt/rpmbuild/SOURCES/apsl-2.0.txt . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.OkKyvf + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd diskdev_cmds-332.14 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + export 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + make -j8 -f Makefile.lnx for d in newfs_hfs.tproj fsck_hfs.tproj; do make -C $d -f Makefile.lnx all; done make[1]: Entering directory '/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/newfs_hfs.tproj' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o hfs_endian.o hfs_endian.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o makehfs.o makehfs.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o newfs_hfs.o newfs_hfs.c In file included from makehfs.c:40: /usr/include/sys/sysctl.h:21:2: warning: #warning "The header is deprecated and will be removed." [-Wcpp] 21 | #warning "The header is deprecated and will be removed." | ^~~~~~~ makehfs.c: In function 'InitMDB': makehfs.c:604:37: warning: taking address of packed member of 'struct HFSMasterDirectoryBlock' may result in an unaligned pointer value [-Waddress-of-packed-member] 604 | finderInfoUUIDPtr = (VolumeUUID *)(&mdbp->drFndrInfo[6]); | ~^~~~~~~~~~~~~~~~~~~~~ makehfs.c: In function 'InitCatalogRoot_HFSPlus': makehfs.c:1145:83: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1145 | ConvertUTF8toUnicode(dp->volumeName, sizeof(ckp->nodeName.unicode), ckp->nodeName.unicode, &ckp->nodeName.length); | ~~~~~~~~~~~~~^~~~~~~~ makehfs.c:1145:93: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1145 | ConvertUTF8toUnicode(dp->volumeName, sizeof(ckp->nodeName.unicode), ckp->nodeName.unicode, &ckp->nodeName.length); | ^~~~~~~~~~~~~~~~~~~~~ makehfs.c:1216:44: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1216 | ckp->nodeName.unicode, &ckp->nodeName.length); | ~~~~~~~~~~~~~^~~~~~~~ makehfs.c:1216:54: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1216 | ckp->nodeName.unicode, &ckp->nodeName.length); | ^~~~~~~~~~~~~~~~~~~~~ makehfs.c:1249:44: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1249 | ckp->nodeName.unicode, &ckp->nodeName.length); | ~~~~~~~~~~~~~^~~~~~~~ makehfs.c:1249:54: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1249 | ckp->nodeName.unicode, &ckp->nodeName.length); | ^~~~~~~~~~~~~~~~~~~~~ makehfs.c: In function 'WriteBuffer': makehfs.c:1851:27: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'off_t' {aka 'long int'} [-Wformat=] 1851 | err(1, "seek (sector %lld)", sector); | ~~~^ ~~~~~~ | | | | | off_t {aka long int} | long long int | %ld makehfs.c:1854:28: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'off_t' {aka 'long int'} [-Wformat=] 1854 | err(1, "write (sector %lld, %i bytes)", sector, byteCount); | ~~~^ ~~~~~~ | | | | long long int off_t {aka long int} | %ld newfs_hfs.c: In function 'hfsplus_params': newfs_hfs.c:809:15: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 809 | printf("%lld sectors (%u bytes per sector)\n", sectorCount, sectorSize); | ~~~^ ~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -o newfs_hfs hfs_endian.o makehfs.o newfs_hfs.o -lssl -lcrypto make[1]: Leaving directory '/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/newfs_hfs.tproj' make[1]: Entering directory '/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/fsck_hfs.tproj' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o fsck_hfs.o fsck_hfs.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o strings.o strings.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o utilities.o utilities.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o cache.o cache.c make -C dfalib -f Makefile.lnx libdfa.a make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/fsck_hfs.tproj/dfalib' gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o hfs_endian.o hfs_endian.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o BlockCache.o BlockCache.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o BTree.o BTree.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o BTreeAllocate.o BTreeAllocate.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o BTreeMiscOps.o BTreeMiscOps.c hfs_endian.c: In function 'hfs_swap_HFSPlusBTInternalNode': hfs_endian.c:566:98: warning: format '%i' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] 566 | if (debug) printf("hfs_swap_HFSPlusBTInternalNode: catalog record #%d keyLength=%d expected=%i\n", | ~^ | | | int | %li 567 | srcDesc->numRecords-i, keyLength, sizeof(srcKey->parentID) + sizeof(srcKey->nodeName.length) + | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int 568 | srcKey->nodeName.length*sizeof(srcKey->nodeName.unicode[0])); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o BTreeNodeOps.o BTreeNodeOps.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o BTreeScanner.o BTreeScanner.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o BTreeTreeOps.o BTreeTreeOps.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o CatalogCheck.o CatalogCheck.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o HardLinkCheck.o HardLinkCheck.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o SBTree.o SBTree.c CatalogCheck.c: In function 'CheckDirectory': CatalogCheck.c:437:41: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 437 | CheckCatalogName(key->nodeName.length, &key->nodeName.unicode[0], key->parentID, false); | ^~~~~~~~~~~~~~~~~~~~~~~~~ CatalogCheck.c: In function 'CheckFile': CatalogCheck.c:459:36: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 459 | (void) utf_encodestr(key->nodeName.unicode, | ~~~~~~~~~~~~~^~~~~~~~ CatalogCheck.c:545:41: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 545 | CheckCatalogName(key->nodeName.length, &key->nodeName.unicode[0], key->parentID, false); | ^~~~~~~~~~~~~~~~~~~~~~~~~ CatalogCheck.c: In function 'CheckThread': CatalogCheck.c:565:53: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 565 | result = CheckCatalogName(thread->nodeName.length, &thread->nodeName.unicode[0], | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o SControl.o SControl.c CatalogCheck.c: In function 'RecordTruncation': CatalogCheck.c:1155:25: warning: format '%qd' expects argument of type 'long long int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1155 | sprintf(oldSizeStr, "%qd", oldSize); | ~~^ ~~~~~~~ | | | | | uint64_t {aka long unsigned int} | long long int | %ld CatalogCheck.c:1156:25: warning: format '%qd' expects argument of type 'long long int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1156 | sprintf(newSizeStr, "%qd", newSize); | ~~^ ~~~~~~~ | | | | | uint64_t {aka long unsigned int} | long long int | %ld CatalogCheck.c: In function 'FixDecomps': CatalogCheck.c:1294:29: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1294 | u_int16_t * outNamePtr = outFilename->unicode; | ^~~~~~~~~~~ CatalogCheck.c:1296:32: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1296 | u_int16_t * outNameLastPtr = &outFilename->unicode[kHFSPlusMaxFileNameChars - 1]; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o SVerify1.o SVerify1.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o SVerify2.o SVerify2.c HardLinkCheck.c: In function 'CheckHardLinks': HardLinkCheck.c:246:38: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 246 | (void) utf_encodestr(keyp->nodeName.unicode, | ~~~~~~~~~~~~~~^~~~~~~~ SControl.c: In function 'ScavSetUp': SControl.c:742:48: warning: format '%i' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] 742 | printf( "\t error %d - could not allocate %i bytes of memory \n", | ~^ | | | int | %li 743 | R_NoMem, sizeof(ScavStaticStructures) ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long unsigned int SControl.c: In function 'ScavTerm': SControl.c:984:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 984 | if( btcbP->refCon != (UInt32)nil ) | ^ SControl.c:986:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 986 | if(((BTreeExtensionsRec*)btcbP->refCon)->BTCBMPtr != nil) | ^ In file included from Scavenger.h:31, from SControl.c:43: SControl.c:988:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 988 | DisposeMemory(((BTreeExtensionsRec*)btcbP->refCon)->BTCBMPtr); | ^ SRuntime.h:401:43: note: in definition of macro 'DisposeMemory' 401 | #define DisposeMemory(ptr) free((void *)(ptr)) | ^~~ SControl.c:991:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 991 | DisposeMemory( (Ptr)btcbP->refCon ); | ^ SRuntime.h:401:43: note: in definition of macro 'DisposeMemory' 401 | #define DisposeMemory(ptr) free((void *)(ptr)) | ^~~ SControl.c:993:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 993 | btcbP->refCon = (UInt32)nil; | ^ SControl.c:999:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 999 | if( btcbP->refCon != (UInt32)nil ) | ^ SControl.c:1001:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1001 | if(((BTreeExtensionsRec*)btcbP->refCon)->BTCBMPtr != nil) | ^ In file included from Scavenger.h:31, from SControl.c:43: SControl.c:1003:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1003 | DisposeMemory(((BTreeExtensionsRec*)btcbP->refCon)->BTCBMPtr); | ^ SRuntime.h:401:43: note: in definition of macro 'DisposeMemory' 401 | #define DisposeMemory(ptr) free((void *)(ptr)) | ^~~ SControl.c:1006:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1006 | DisposeMemory( (Ptr)btcbP->refCon ); | ^ SRuntime.h:401:43: note: in definition of macro 'DisposeMemory' 401 | #define DisposeMemory(ptr) free((void *)(ptr)) | ^~~ SControl.c:1008:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1008 | btcbP->refCon = (UInt32)nil; | ^ SVerify1.c: In function 'CheckForClean': SVerify1.c:164:53: warning: format '%qd' expects argument of type 'long long int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 164 | printf( "\t%s - could not get VHB/MDB at block %qd \n", __FUNCTION__, blockNum ); | ~~^ ~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SVerify1.c: In function 'IVChk': SVerify1.c:266:72: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 266 | printf("\tinvalid device information for volume - total sectors = %qd sector size = %d \n", | ~~^ | | | long long int | %ld 267 | myVOPtr->totalDeviceSectors, myVOPtr->sectorSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} SVerify1.c: In function 'CreateExtentsBTreeControlBlock': SVerify1.c:780:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 780 | btcb->refCon = (UInt32) AllocateClearMemory( sizeof(BTreeExtensionsRec) ); // allocate space for our BTCB extensions | ^ SVerify1.c:781:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 781 | if ( btcb->refCon == (UInt32) nil ) { | ^ SVerify1.c:786:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 786 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr = AllocateClearMemory(size); // get precleared bitmap | ^ SVerify1.c:787:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 787 | if ( ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr == nil ) | ^ SVerify1.c:793:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 793 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMSize = size; // remember how long it is | ^ SVerify1.c:794:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 794 | ((BTreeExtensionsRec*)btcb->refCon)->realFreeNodeCount = header.freeNodes;// keep track of real free nodes for progress | ^ SVerify1.c: In function 'CreateCatalogBTreeControlBlock': SVerify1.c:1124:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1124 | btcb->refCon = (UInt32) AllocateClearMemory( sizeof(BTreeExtensionsRec) ); // allocate space for our BTCB extensions | ^ SVerify1.c:1125:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1125 | if ( btcb->refCon == (UInt32)nil ) { | ^ SVerify1.c:1130:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1130 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr = AllocateClearMemory(size); // get precleared bitmap | ^ SVerify1.c:1131:8: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1131 | if ( ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr == nil ) | ^ SVerify1.c:1137:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1137 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMSize = size; // remember how long it is | ^ SVerify1.c:1138:3: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1138 | ((BTreeExtensionsRec*)btcb->refCon)->realFreeNodeCount = header.freeNodes; // keep track of real free nodes for progress | ^ SVerify1.c:1153:55: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1153 | (void) utf_encodestr( recPtr->nodeName.unicode, | ~~~~~~~~~~~~~~~~^~~~~~~~ SVerify1.c: In function 'CreateAttributesBTreeControlBlock': SVerify1.c:1763:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1763 | btcb->refCon = (UInt32) AllocateClearMemory( sizeof(BTreeExtensionsRec) ); // allocate space for our BTCB extensions | ^ SVerify1.c:1764:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1764 | if ( btcb->refCon == (UInt32)nil ) { | ^ SVerify1.c:1771:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1771 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr = nil; | ^ SVerify1.c:1772:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1772 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMSize = 0; | ^ SVerify1.c:1773:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1773 | ((BTreeExtensionsRec*)btcb->refCon)->realFreeNodeCount = 0; | ^ SVerify1.c:1777:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1777 | if ( btcb->refCon == (UInt32)nil ) { | ^ SVerify1.c:1782:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1782 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr = AllocateClearMemory(size); // get precleared bitmap | ^ SVerify1.c:1783:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1783 | if ( ((BTreeExtensionsRec*)btcb->refCon)->BTCBMPtr == nil ) | ^ SVerify1.c:1789:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1789 | ((BTreeExtensionsRec*)btcb->refCon)->BTCBMSize = size; // remember how long it is | ^ SVerify1.c:1790:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1790 | ((BTreeExtensionsRec*)btcb->refCon)->realFreeNodeCount = header.freeNodes; // keep track of real free nodes for progress | ^ SVerify1.c: In function 'VInfoChk': SVerify1.c:2178:42: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 2178 | printf("\tinvalid alternate MDB at %qd result %d \n", GPtr->TarBlock, result); | ~~^ ~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SVerify1.c:2183:42: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 2183 | printf("\tinvalid alternate VHB at %qd result %d \n", GPtr->TarBlock, result); | ~~^ ~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SVerify1.c:2206:40: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 2206 | printf("\tinvalid primary MDB at %qd result %d \n", GPtr->TarBlock, result); | ~~^ ~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SVerify1.c:2211:40: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 2211 | printf("\tinvalid primary VHB at %qd result %d \n", GPtr->TarBlock, result); | ~~^ ~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SVerify2.c: In function 'CmpBTM': SVerify2.c:822:11: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 822 | sbtmP = ((BTreeExtensionsRec*)calculatedBTCB->refCon)->BTCBMPtr; | ^ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o SRepair.o SRepair.c SRepair.c: In function 'UpdBTM': SRepair.c:621:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 621 | mapSize = ((BTreeExtensionsRec*)calculatedBTCB->refCon)->BTCBMSize; | ^ SRepair.c:630:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 630 | sbtmP = ((BTreeExtensionsRec*)calculatedBTCB->refCon)->BTCBMPtr; | ^ SRepair.c: In function 'FixLinkCount': SRepair.c:1154:62: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1154 | (void) utf_decodestr(&p->name[1], p->name[0], keyp->nodeName.unicode, &len); | ~~~~~~~~~~~~~~^~~~~~~~ SRepair.c: In function 'FixBSDInfo': SRepair.c:1340:42: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1340 | utf_encodestr(((HFSUniStr255 *)&p->name)->unicode, | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ SRepair.c: In function 'DeleteUnlinkedFile': SRepair.c:1394:58: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1394 | (void) utf_decodestr(&p->name[1], p->name[0], name.ustr.unicode, &len); | ~~~~~~~~~^~~~~~~~ SRepair.c: In function 'FixFileSize': SRepair.c:1440:62: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 1440 | (void) utf_decodestr(&p->name[1], p->name[0], keyp->nodeName.unicode, &len); | ~~~~~~~~~~~~~~^~~~~~~~ SRepair.c: In function 'RepairReservedBTreeFields': SRepair.c:2055:26: warning: taking address of packed member of 'struct HFSCatalogThread' may result in an unaligned pointer value [-Waddress-of-packed-member] 2055 | reserved = (UInt32*) &(record.hfsThread.reserved); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ SRepair.c: In function 'GetFileNamePathByID': SRepair.c:3601:57: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 3601 | (void) utf_encodestr(catRecord.hfsPlusThread.nodeName.unicode, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ SRepair.c: In function 'CreateFileByName': SRepair.c:4173:59: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 4173 | (void) utf_decodestr (fileName, filenameLen, fName.ustr.unicode, &namelen); | ~~~~~~~~~~^~~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o SRebuildCatalogBTree.o SRebuildCatalogBTree.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o SUtils.o SUtils.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o SKeyCompare.o SKeyCompare.c SUtils.c: In function 'AllocBTN': SUtils.c:257:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 257 | byteP = ( (BTreeExtensionsRec*)calculatedBTCB->refCon)->BTCBMPtr + (nodeNumber / 8 ); // ptr to starting byte | ^ SUtils.c: In function 'InitializeVolumeObject': SUtils.c:1104:72: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1104 | printf("\tinvalid device information for volume - total sectors = %qd sector size = %d \n", | ~~^ | | | long long int | %ld 1105 | myVOPtr->totalDeviceSectors, myVOPtr->sectorSize); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} SUtils.c:1179:24: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1179 | printf( "\tBlock %qd is not an MDB or Volume Header \n", myVOPtr->totalDeviceSectors - 2 ); | ~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c:1187:58: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1187 | printf( "\tcould not get alternate volume header at %qd, err %d \n", | ~~^ | | | long long int | %ld 1188 | myVOPtr->totalDeviceSectors - 2, err ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} SUtils.c:1214:53: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1214 | printf( "\tcould not get primary MDB at block %qd, err %d \n", myVOPtr->primaryMDB, err ); | ~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c: In function 'PrintVolumeObject': SUtils.c:1264:39: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1264 | printf( "\tprimary MDB is at block %qd 0x%02qx \n", myVOPtr->primaryMDB, myVOPtr->primaryMDB ); | ~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c:1264:47: warning: format '%qx' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1264 | printf( "\tprimary MDB is at block %qd 0x%02qx \n", myVOPtr->primaryMDB, myVOPtr->primaryMDB ); | ~~~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long long unsigned int uint64_t {aka long unsigned int} | %02lx SUtils.c:1265:41: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1265 | printf( "\talternate MDB is at block %qd 0x%02qx \n", myVOPtr->alternateMDB, myVOPtr->alternateMDB ); | ~~^ ~~~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c:1265:49: warning: format '%qx' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1265 | printf( "\talternate MDB is at block %qd 0x%02qx \n", myVOPtr->alternateMDB, myVOPtr->alternateMDB ); | ~~~~^ ~~~~~~~~~~~~~~~~~~~~~ | | | | long long unsigned int uint64_t {aka long unsigned int} | %02lx SUtils.c:1266:39: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1266 | printf( "\tprimary VHB is at block %qd 0x%02qx \n", myVOPtr->primaryVHB, myVOPtr->primaryVHB ); | ~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c:1266:47: warning: format '%qx' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1266 | printf( "\tprimary VHB is at block %qd 0x%02qx \n", myVOPtr->primaryVHB, myVOPtr->primaryVHB ); | ~~~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long long unsigned int uint64_t {aka long unsigned int} | %02lx SUtils.c:1267:41: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1267 | printf( "\talternate VHB is at block %qd 0x%02qx \n", myVOPtr->alternateVHB, myVOPtr->alternateVHB ); | ~~^ ~~~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c:1267:49: warning: format '%qx' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1267 | printf( "\talternate VHB is at block %qd 0x%02qx \n", myVOPtr->alternateVHB, myVOPtr->alternateVHB ); | ~~~~^ ~~~~~~~~~~~~~~~~~~~~~ | | | | long long unsigned int uint64_t {aka long unsigned int} | %02lx SUtils.c:1270:42: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1270 | printf( "\ttotal sectors for volume = %qd 0x%02qx \n", | ~~^ | | | long long int | %ld 1271 | myVOPtr->totalDeviceSectors, myVOPtr->totalDeviceSectors ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} SUtils.c:1270:50: warning: format '%qx' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1270 | printf( "\ttotal sectors for volume = %qd 0x%02qx \n", | ~~~~^ | | | long long unsigned int | %02lx 1271 | myVOPtr->totalDeviceSectors, myVOPtr->totalDeviceSectors ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} SUtils.c:1272:51: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1272 | printf( "\ttotal sectors for embedded volume = %qd 0x%02qx \n", | ~~^ | | | long long int | %ld 1273 | myVOPtr->totalEmbeddedSectors, myVOPtr->totalEmbeddedSectors ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} SUtils.c:1272:59: warning: format '%qx' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1272 | printf( "\ttotal sectors for embedded volume = %qd 0x%02qx \n", | ~~~~^ | | | long long unsigned int | %02lx 1273 | myVOPtr->totalEmbeddedSectors, myVOPtr->totalEmbeddedSectors ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} SUtils.c: In function 'GetEmbeddedVolumeHeaders': SUtils.c:1353:69: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1353 | printf( "\tInvalid embedded alternate volume header at block %qd - error %d \n", myAlternateBlockNum, err ); | ~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c:1359:31: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1359 | printf( "\tBlock number %qd is not embedded alternate volume header \n", myAlternateBlockNum ); | ~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c:1366:67: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1366 | printf( "\tcould not get embedded alternate volume header at %qd, err %d \n", | ~~^ | | | long long int | %ld 1367 | myAlternateBlockNum, err ); | ~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} SUtils.c:1389:67: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1389 | printf( "\tInvalid embedded primary volume header at block %qd - error %d \n", myPrimaryBlockNum, err ); | ~~^ ~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c:1395:31: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1395 | printf( "\tBlock number %qd is not embedded primary volume header \n", myPrimaryBlockNum ); | ~~^ ~~~~~~~~~~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld SUtils.c:1402:65: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 1402 | printf( "\tcould not get embedded primary volume header at %qd, err %d \n", | ~~^ | | | long long int | %ld 1403 | myPrimaryBlockNum, err ); | ~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} SUtils.c: In function 'CalculateItemCount': SUtils.c:1897:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1897 | realFreeNodes = ((BTreeExtensionsRec*)btcb->refCon)->realFreeNodeCount; | ^ SUtils.c:1901:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1901 | realFreeNodes = ((BTreeExtensionsRec*)btcb->refCon)->realFreeNodeCount; | ^ SUtils.c:1907:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1907 | realFreeNodes = ((BTreeExtensionsRec*)btcb->refCon)->realFreeNodeCount; | ^ SKeyCompare.c: In function 'CompareExtendedCatalogKeys': SKeyCompare.c:258:32: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 258 | result = FastUnicodeCompare(&searchKey->nodeName.unicode[0], searchKey->nodeName.length, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SKeyCompare.c:259:11: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 259 | &trialKey->nodeName.unicode[0], trialKey->nodeName.length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SKeyCompare.c: In function 'CaseSensitiveCatalogKeyCompare': SKeyCompare.c:292:19: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 292 | UInt16 * str1 = &searchKey->nodeName.unicode[0]; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SKeyCompare.c:293:19: warning: taking address of packed member of 'struct HFSUniStr255' may result in an unaligned pointer value [-Waddress-of-packed-member] 293 | UInt16 * str2 = &trialKey->nodeName.unicode[0]; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SKeyCompare.c: In function 'CompareAttributeKeys': SKeyCompare.c:475:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 475 | UInt16 * str1 = searchKey->attrName; | ^~~~~~~~~ SKeyCompare.c:476:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 476 | UInt16 * str2 = trialKey->attrName; | ^~~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o SDevice.o SDevice.c In file included from /usr/include/strings.h:144, from /usr/include/string.h:432, from SRuntime.h:36, from Scavenger.h:31, from SVerify1.c:35: In function 'bcopy', inlined from 'VLockedChk' at SVerify1.c:2514:3: /usr/include/bits/strings_fortified.h:25:10: warning: '__builtin_memcpy' reading 28 bytes from a region of size 15 [-Wstringop-overflow=] 25 | (void) __builtin___memmove_chk (__dest, __src, __len, __bos0 (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o SExtents.o SExtents.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o SAllocate.o SAllocate.c SDevice.c: In function 'DeviceRead': SDevice.c:234:33: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'int64_t' {aka 'long int'} [-Wformat=] 234 | printf("# DeviceRead: lseek(%qd) failed with %d\n", offset, errno); | ~~^ ~~~~~~ | | | | long long int int64_t {aka long int} | %ld SDevice.c: In function 'DeviceWrite': SDevice.c:286:33: warning: format '%qd' expects argument of type 'long long int', but argument 2 has type 'int64_t' {aka 'long int'} [-Wformat=] 286 | printf("# DeviceRead: lseek(%qd) failed with %d\n", offset, errno); | ~~^ ~~~~~~ | | | | long long int int64_t {aka long int} | %ld gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o SCatalog.o SCatalog.c gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o SStubs.o SStubs.c In file included from /usr/include/strings.h:144, from /usr/include/string.h:432, from SRuntime.h:36, from BTree.h:37, from SExtents.c:37: In function 'bzero', inlined from 'DeallocateFile' at SExtents.c:701:3: /usr/include/bits/strings_fortified.h:31:10: warning: '__builtin___memset_chk' writing 52 bytes into a region of size 40 overflows the destination [-Wstringop-overflow=] 31 | (void) __builtin___memset_chk (__dest, '\0', __len, __bos0 (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'bzero', inlined from 'DeallocateFile' at SExtents.c:704:3: /usr/include/bits/strings_fortified.h:31:10: warning: '__builtin___memset_chk' writing 52 bytes into a region of size 40 overflows the destination [-Wstringop-overflow=] 31 | (void) __builtin___memset_chk (__dest, '\0', __len, __bos0 (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SStubs.c: In function 'WriteError': SStubs.c:202:19: warning: format '%qd' expects argument of type 'long long int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 202 | printf("(%ld, %qd)\n", (long)tarID, tarBlock); | ~~^ ~~~~~~~~ | | | | long long int uint64_t {aka long unsigned int} | %ld gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -I/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/include -D_FILE_OFFSET_BITS=64 -DDEBUG_BUILD=0 -D LINUX=1 -D BSD=1 -c -o VolumeBitmapCheck.o VolumeBitmapCheck.c ar rc libdfa.a hfs_endian.o BlockCache.o BTree.o BTreeAllocate.o BTreeMiscOps.o BTreeNodeOps.o BTreeScanner.o BTreeTreeOps.o CatalogCheck.o HardLinkCheck.o SBTree.o SControl.o SVerify1.o SVerify2.o SRepair.o SRebuildCatalogBTree.o SUtils.o SKeyCompare.o SDevice.o SExtents.o SAllocate.o SCatalog.o SStubs.o VolumeBitmapCheck.o make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/fsck_hfs.tproj/dfalib' gcc fsck_hfs.o strings.o utilities.o cache.o dfalib/libdfa.a -o fsck_hfs make[1]: Leaving directory '/home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14/fsck_hfs.tproj' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.VI8YId + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64 '!=' / ']' + rm -rf /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64 ++ dirname /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64 + mkdir -p /home/iurt/rpmbuild/BUILDROOT + mkdir /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64 + cd diskdev_cmds-332.14 + '[' 1 -eq 1 ']' + mkdir -p /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64//usr/sbin + cp newfs_hfs.tproj/newfs_hfs /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64//usr/sbin/mkfs.hfsplus + cp fsck_hfs.tproj/fsck_hfs /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64//usr/sbin/fsck.hfsplus + mkdir -p /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64/usr/share/misc + cp newfs_hfs.tproj/hfsbootdata.img /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64/usr/share/misc/hfsbootdata + chmod 0444 /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64/usr/share/misc/hfsbootdata + mkdir -p /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64//usr/share/man/man8 + cat fsck_hfs.tproj/fsck_hfs.8 + sed -e 's/[F|f]sck_hfs/fsck.hfsplus/g' + cat newfs_hfs.tproj/newfs_hfs.8 + sed -e 's/[N|n]ewfs_hfs/mkfs.hfsplus/g' + cd /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64//usr/sbin + ln -s mkfs.hfsplus mkfs.hfs + ln -s fsck.hfsplus fsck.hfs + cd /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64//usr/share/man/man8 + ln -s fsck.hfsplus.8 fsck.hfs.8 + ln -s mkfs.hfsplus.8 mkfs.hfs.8 + /usr/lib/rpm/find-debuginfo.sh -j32 --strict-build-id -m -i --build-id-seed 332.14-12.mga8 --unique-debug-suffix -332.14-12.mga8.aarch64 --unique-debug-src-base hfsplus-tools-332.14-12.mga8.aarch64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /home/iurt/rpmbuild/BUILD/diskdev_cmds-332.14 explicitly decompress any DWARF compressed ELF sections in /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64/usr/sbin/fsck.hfsplus explicitly decompress any DWARF compressed ELF sections in /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64/usr/sbin/mkfs.hfsplus extracting debug info from /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64/usr/sbin/fsck.hfsplus extracting debug info from /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64/usr/sbin/mkfs.hfsplus original debug info size: 1212kB, size after compression: 1032kB /usr/lib/rpm/sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. 2425 blocks + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python3 1 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: hfsplus-tools-332.14-12.mga8.aarch64 Executing(%doc): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.Uywbyd + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd diskdev_cmds-332.14 + DOCDIR=/home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64/usr/share/doc/hfsplus-tools + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64/usr/share/doc/hfsplus-tools + cp -pr apsl-2.0.txt /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64/usr/share/doc/hfsplus-tools + RPM_EC=0 ++ jobs -p + exit 0 Provides: hfsplus-tools = 332.14-12.mga8 hfsplus-tools(aarch-64) = 332.14-12.mga8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-aarch64.so.1()(64bit) ld-linux-aarch64.so.1(GLIBC_2.17)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.17)(64bit) libc.so.6(GLIBC_2.28)(64bit) libcrypto.so.1.1()(64bit) libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) libssl.so.1.1()(64bit) Conflicts: hfsplusutils Processing files: hfsplus-tools-debugsource-332.14-12.mga8.aarch64 Provides: hfsplus-tools-debugsource = 332.14-12.mga8 hfsplus-tools-debugsource(aarch-64) = 332.14-12.mga8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: hfsplus-tools-debuginfo-332.14-12.mga8.aarch64 Provides: debuginfo(build-id) = b36eb434a2f6f30da0869788398696e7c6ca980d debuginfo(build-id) = fe11e4c45de781b26f868b88955e535789b5b7b4 hfsplus-tools-debuginfo = 332.14-12.mga8 hfsplus-tools-debuginfo(aarch-64) = 332.14-12.mga8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: hfsplus-tools-debugsource(aarch-64) = 332.14-12.mga8 Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64 Wrote: /home/iurt/rpmbuild/RPMS/aarch64/hfsplus-tools-332.14-12.mga8.aarch64.rpm Wrote: /home/iurt/rpmbuild/RPMS/aarch64/hfsplus-tools-debuginfo-332.14-12.mga8.aarch64.rpm Wrote: /home/iurt/rpmbuild/RPMS/aarch64/hfsplus-tools-debugsource-332.14-12.mga8.aarch64.rpm Executing(%clean): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.pSOLdd + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd diskdev_cmds-332.14 + /usr/bin/rm -rf /home/iurt/rpmbuild/BUILDROOT/hfsplus-tools-332.14-12.mga8.aarch64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(--clean): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.inF4vg + umask 022 + cd /home/iurt/rpmbuild/BUILD + rm -rf diskdev_cmds-332.14 + RPM_EC=0 ++ jobs -p + exit 0 D: [iurt_root_command] Success!