Skip to content

eliminate more compiler warnings on MacOS #3014

@simsong

Description

@simsong

c.f. #2911

see below

simsong@Simsons-MacBook-Pro sleuthkit % ./configure -q --enable-silent-rules
ld: warning: -single_module is obsolete
config.status: error: cannot find input file: 'tsk/tsk_config.h.in'
simsong@Simsons-MacBook-Pro sleuthkit % bash bootstrap
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
glibtoolize: copying file 'config/ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
glibtoolize: copying file 'm4/libtool.m4'
glibtoolize: copying file 'm4/ltoptions.m4'
glibtoolize: copying file 'm4/ltsugar.m4'
glibtoolize: copying file 'm4/ltversion.m4'
glibtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:12: installing 'config/compile'
configure.ac:11: installing 'config/missing'
Makefile.am: installing 'config/depcomp'
simsong@Simsons-MacBook-Pro sleuthkit % ./configure -q --enable-silent-rules
ld: warning: -single_module is obsolete
simsong@Simsons-MacBook-Pro sleuthkit % make
  CXX      tools/autotools/tsk_comparedir.o
  CXX      tsk/auto/libtskauto_la-auto.lo
  CXX      tsk/auto/libtskauto_la-auto_db.lo
  CXX      tsk/auto/libtskauto_la-case_db.lo
  CXX      tsk/auto/libtskauto_la-db_sqlite.lo
tsk/auto/db_sqlite.cpp:1312:13: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
            sprintf(&(md5Text[i * 2]), "%x%x", (md5[i] >> 4) & 0xf,
            ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
1 warning generated.
  CXX      tsk/auto/libtskauto_la-is_image_supported.lo
  CXX      tsk/auto/libtskauto_la-tsk_db.lo
tsk/auto/tsk_db.cpp:72:9: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
        sprintf(parent_path, "%s", "/");
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
tsk/auto/tsk_db.cpp:93:9: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
        sprintf(parent_name, "%s", chptr+1);  // copy everything after slash into parent_name
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:218:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
2 warnings generated.
  CXXLD    tsk/auto/libtskauto.la
  CC       tsk/base/crc.lo
tsk/base/crc.c:61:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
LOCAL ulong reflect (v,b)
            ^
tsk/base/crc.c:83:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
LOCAL ulong widmask (p_cm)
            ^
tsk/base/crc.c:93:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void cm_ini (p_cm)
     ^
tsk/base/crc.c:101:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void cm_nxt (p_cm,ch)
     ^
tsk/base/crc.c:124:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void cm_blk (p_cm,blk_adr,blk_len)
     ^
tsk/base/crc.c:134:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
ulong cm_crc (p_cm)
      ^
6 warnings generated.
  CC       tsk/base/md5c.lo
tsk/base/md5c.c:199:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
MD5Transform(state, block)
^
tsk/base/md5c.c:293:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
Encode(output, input, len)
^
tsk/base/md5c.c:312:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
Decode(output, input, len)
^
tsk/base/md5c.c:329:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
MD5_memcpy(output, input, len)
^
tsk/base/md5c.c:343:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
MD5_memset(output, value, len)
^
5 warnings generated.
  CC       tsk/base/sha1c.lo
tsk/base/sha1c.c:160:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
SHSTransform(digest, data)
^
1 warning generated.
  CC       tsk/base/tsk_base_i.lo
  CC       tsk/base/tsk_endian.lo
  CC       tsk/base/tsk_error.lo
  CXX      tsk/base/tsk_error_win32.lo
  CC       tsk/base/tsk_list.lo
  CC       tsk/base/tsk_stack.lo
  CC       tsk/base/tsk_unicode.lo
  CC       tsk/base/tsk_version.lo
  CC       tsk/base/XGetopt.lo
  CXXLD    tsk/base/libtskbase.la
  CXX      tsk/fs/apfs_compat.lo
  CXX      tsk/fs/apfs.lo
  CXX      tsk/fs/apfs_fs.lo
  CXX      tsk/fs/apfs_open.lo
  CC       tsk/fs/dcalc_lib.lo
  CC       tsk/fs/dcat_lib.lo
  CC       tsk/fs/decmpfs.lo
  CC       tsk/fs/dls_lib.lo
  CC       tsk/fs/dstat_lib.lo
  CXX      tsk/fs/encryptionHelper.lo
  CC       tsk/fs/exfatfs.lo
  CC       tsk/fs/exfatfs_dent.lo
  CC       tsk/fs/exfatfs_meta.lo
  CC       tsk/fs/ext2fs.lo
tsk/fs/ext2fs.c:561:17: warning: assigning to 'uint8_t *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        *ea_buf = (char*)dino_buf + EXT2_EA_INODE_OFFSET;
                ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tsk/fs/ext2fs.c:634:29: warning: passing 'uint8_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
                && (strncmp(&(ea_entry->name), "data", 4)) == 0) {
                            ^~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/string.h:84:26: note: passing argument to parameter '__s1' here
int      strncmp(const char *__s1, const char *__s2, size_t __n);
                             ^
tsk/fs/ext2fs.c:641:36: warning: assigning to 'const char *' from 'const uint8_t *' (aka 'const unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
                    ea_inline_data = &(ea_buf[4 + offset]);
                                   ^ ~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
  CC       tsk/fs/ext2fs_journal.lo
  CC       tsk/fs/fatfs.lo
  CXX      tsk/fs/fatfs_dent.lo
  CC       tsk/fs/fatfs_meta.lo
tsk/fs/fatfs_meta.c:554:19: warning: variable 'full_len_s' set but not used [-Wunused-but-set-variable]
        TSK_OFF_T full_len_s = 0;
                  ^
tsk/fs/fatfs_meta.c:736:19: warning: variable 'full_len_s' set but not used [-Wunused-but-set-variable]
        TSK_OFF_T full_len_s = 0;
                  ^
2 warnings generated.
  CC       tsk/fs/fatfs_utils.lo
  CC       tsk/fs/fatxxfs.lo
  CC       tsk/fs/fatxxfs_dent.lo
  CC       tsk/fs/fatxxfs_meta.lo
  CC       tsk/fs/ffs.lo
  CC       tsk/fs/fs_attr.lo
  CC       tsk/fs/fs_attrlist.lo
  CC       tsk/fs/fs_block.lo
  CC       tsk/fs/fs_dir.lo
tsk/fs/fs_dir.c:260:97: warning: format specifies type 'size_t' (aka 'unsigned long') but the argument has type 'TSK_INUM_T' (aka 'unsigned long long') [-Wformat]
                                tsk_error_set_errstr("tsk_fs_dir_add: Directory too large to process (addr: %" PRIuSIZE")", a_fs_dir->addr);
                                                                                                            ~~~~~~~~~~~     ^~~~~~~~~~~~~~
1 warning generated.
  CC       tsk/fs/fs_file.lo
  CC       tsk/fs/fs_inode.lo
  CC       tsk/fs/fs_io.lo
  CC       tsk/fs/fs_load.lo
  CC       tsk/fs/fs_name.lo
  CC       tsk/fs/fs_open.lo
  CC       tsk/fs/fs_parse.lo
  CC       tsk/fs/fs_types.lo
  CC       tsk/fs/hfs.lo
tsk/fs/hfs.c:598:25: warning: format specifies type 'unsigned short' but the argument has type 'unsigned long' [-Wformat]
                        sizeof(hfs_btree_key_ext));
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
tsk/fs/hfs.c:515:79: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
                    if ((nodesize < 4) || (keylen > nodesize - 4) || (rec_off >= nodesize - 4 - keylen)) {
                                                                      ~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~
tsk/fs/hfs.c:885:60: warning: format specifies type 'unsigned short' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
                        PRIu16 ")", rec, cur_node, keylen, (nodesize - rec_off));
                        ~~~~~~                             ^~~~~~~~~~~~~~~~~~~~
tsk/fs/hfs.c:881:45: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
                if ((keylen < 6) || (keylen > nodesize - rec_off)) {
                                     ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
tsk/fs/hfs.c:918:32: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
                    if (keylen > nodesize - rec_off) {
                        ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
tsk/fs/hfs.c:1004:45: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
                if ((keylen < 6) || (keylen > nodesize - rec_off)) {
                                     ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
tsk/fs/hfs.c:3141:1: warning: unused function 'hfs_attr_walk_zlib_rsrc' [-Wunused-function]
hfs_attr_walk_zlib_rsrc(const TSK_FS_ATTR * fs_attr,
^
tsk/fs/hfs.c:3163:1: warning: unused function 'hfs_attr_walk_lzvn_rsrc' [-Wunused-function]
hfs_attr_walk_lzvn_rsrc(const TSK_FS_ATTR * fs_attr,
^
tsk/fs/hfs.c:3395:1: warning: unused function 'hfs_file_read_zlib_rsrc' [-Wunused-function]
hfs_file_read_zlib_rsrc(const TSK_FS_ATTR * a_fs_attr,
^
tsk/fs/hfs.c:3418:1: warning: unused function 'hfs_file_read_lzvn_rsrc' [-Wunused-function]
hfs_file_read_lzvn_rsrc(const TSK_FS_ATTR * a_fs_attr,
^
tsk/fs/hfs.c:3678:12: warning: unused function 'hfs_file_read_zlib_attr' [-Wunused-function]
static int hfs_file_read_zlib_attr(TSK_FS_FILE* fs_file,
           ^
tsk/fs/hfs.c:3701:12: warning: unused function 'hfs_file_read_lzvn_attr' [-Wunused-function]
static int hfs_file_read_lzvn_attr(TSK_FS_FILE* fs_file,
           ^
12 warnings generated.
  CC       tsk/fs/hfs_dent.lo
  CC       tsk/fs/hfs_journal.lo
  CC       tsk/fs/hfs_unicompare.lo
  CC       tsk/fs/icat_lib.lo
  CC       tsk/fs/ils_lib.lo
  CC       tsk/fs/iso9660.lo
tsk/fs/iso9660.c:559:32: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
                    if (b_offs >= ISO9660_SSIZE_B - sizeof(iso9660_dentry)) {
                        ~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tsk/fs/iso9660.c:2328:9: warning: variable 'count' set but not used [-Wunused-but-set-variable]
    int count = 0;
        ^
2 warnings generated.
  CC       tsk/fs/iso9660_dent.lo
  CXX      tsk/fs/logical_fs.lo
tsk/fs/logical_fs.cpp:438:10: warning: variable 'matching_len' is uninitialized when used here [-Wuninitialized]
                                if ((matching_len > longest_match) &&
                                     ^~~~~~~~~~~~
tsk/fs/logical_fs.cpp:427:24: note: initialize the variable 'matching_len' to silence this warning
                                size_t matching_len;
                                                   ^
                                                    = 0
1 warning generated.
  CC       tsk/fs/lzvn.lo
  CC       tsk/fs/nofs_misc.lo
  CC       tsk/fs/ntfs.lo
tsk/fs/ntfs.c:3629:52: warning: more '%' conversions than data arguments [-Wformat-insufficient-args]
                tsk_error_set_errstr("ntfs_get_sds: SII entry %" PRIu32 " not found");
                                                              ~~~^~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/inttypes.h:57:26: note: expanded from macro 'PRIu32'
#  define PRIu32        "u"
                         ^
1 warning generated.
  CXX      tsk/fs/ntfs_dent.lo
tsk/fs/ntfs_dent.cpp:1094:31: warning: comparison of integers of different signs: 'TSK_OFF_T' (aka 'long long') and 'unsigned long' [-Wsign-compare]
            if ((idxalloc_len < sizeof(ntfs_idxrec)) || (off > idxalloc_len - sizeof(ntfs_idxrec))) {
                 ~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
1 warning generated.
  CC       tsk/fs/rawfs.lo
  CC       tsk/fs/swapfs.lo
  CC       tsk/fs/unix_misc.lo
  CXX      tsk/fs/walk_cpp.lo
  CXX      tsk/fs/yaffs.lo
  CXXLD    tsk/fs/libtskfs.la
  CXX      tsk/hashdb/binsrch_index.lo
tsk/hashdb/binsrch_index.cpp:114:28: warning: length modifier 'h' results in undefined behavior or no effect with 's' conversion specifier [-Wformat]
            _TSK_T("%s-%") PRIcTSK _TSK_T(".idx"),
            ~~~~~~~~~~~~~~~^~~~~~~
./tsk/base/tsk_os.h:205:25: note: expanded from macro 'PRIcTSK'
#define PRIcTSK _TSK_T("hs")     ///< sprintf macro to print a UTF-8 char string to TSK_TCHAR buffer
                        ^
./tsk/base/tsk_os.h:183:19: note: expanded from macro '_TSK_T'
#define _TSK_T(x)       x
                        ^
tsk/hashdb/binsrch_index.cpp:117:28: warning: length modifier 'h' results in undefined behavior or no effect with 's' conversion specifier [-Wformat]
            _TSK_T("%s-%") PRIcTSK _TSK_T(".idx2"),
            ~~~~~~~~~~~~~~~^~~~~~~
./tsk/base/tsk_os.h:205:25: note: expanded from macro 'PRIcTSK'
#define PRIcTSK _TSK_T("hs")     ///< sprintf macro to print a UTF-8 char string to TSK_TCHAR buffer
                        ^
./tsk/base/tsk_os.h:183:19: note: expanded from macro '_TSK_T'
#define _TSK_T(x)       x
                        ^
tsk/hashdb/binsrch_index.cpp:124:28: warning: length modifier 'h' results in undefined behavior or no effect with 's' conversion specifier [-Wformat]
            _TSK_T("%s-%") PRIcTSK _TSK_T(".idx"),
            ~~~~~~~~~~~~~~~^~~~~~~
./tsk/base/tsk_os.h:205:25: note: expanded from macro 'PRIcTSK'
#define PRIcTSK _TSK_T("hs")     ///< sprintf macro to print a UTF-8 char string to TSK_TCHAR buffer
                        ^
./tsk/base/tsk_os.h:183:19: note: expanded from macro '_TSK_T'
#define _TSK_T(x)       x
                        ^
tsk/hashdb/binsrch_index.cpp:127:28: warning: length modifier 'h' results in undefined behavior or no effect with 's' conversion specifier [-Wformat]
            _TSK_T("%s-%") PRIcTSK _TSK_T(".idx2"),
            ~~~~~~~~~~~~~~~^~~~~~~
./tsk/base/tsk_os.h:205:25: note: expanded from macro 'PRIcTSK'
#define PRIcTSK _TSK_T("hs")     ///< sprintf macro to print a UTF-8 char string to TSK_TCHAR buffer
                        ^
./tsk/base/tsk_os.h:183:19: note: expanded from macro '_TSK_T'
#define _TSK_T(x)       x
                        ^
tsk/hashdb/binsrch_index.cpp:705:24: warning: length modifier 'h' results in undefined behavior or no effect with 's' conversion specifier [-Wformat]
        _TSK_T("%s-%") PRIcTSK _TSK_T("-ns.idx"), hdb_binsrch_info->base.db_fname,
        ~~~~~~~~~~~~~~~^~~~~~~
./tsk/base/tsk_os.h:205:25: note: expanded from macro 'PRIcTSK'
#define PRIcTSK _TSK_T("hs")     ///< sprintf macro to print a UTF-8 char string to TSK_TCHAR buffer
                        ^
./tsk/base/tsk_os.h:183:19: note: expanded from macro '_TSK_T'
#define _TSK_T(x)       x
                        ^
tsk/hashdb/binsrch_index.cpp:1154:24: warning: data argument not used by format string [-Wformat-extra-args]
            func_name, hdb_binsrch_info->hash_len, strlen(hash));
                       ^
6 warnings generated.
  CC       tsk/hashdb/encase.lo
  CC       tsk/hashdb/hashkeeper.lo
  CC       tsk/hashdb/hdb_base.lo
  CC       tsk/hashdb/idxonly.lo
  CC       tsk/hashdb/md5sum.lo
  CC       tsk/hashdb/nsrl.lo
  CXX      tsk/hashdb/sqlite_hdb.lo
  CC       tsk/hashdb/tsk_hashdb.lo
  CXXLD    tsk/hashdb/libtskhashdb.la
  CC       tsk/img/aff4.lo
  CC       tsk/img/aff.lo
  CXX      tsk/img/ewf.lo
  CC       tsk/img/img_io.lo
  CXX      tsk/img/img_open.lo
  CC       tsk/img/img_types.lo
  CXX      tsk/img/img_writer.lo
  CC       tsk/img/logical_img.lo
  CXX      tsk/img/mult_files.lo
  CC       tsk/img/qcow.lo
  CC       tsk/img/raw.lo
  CC       tsk/img/unsupported_types.lo
  CC       tsk/img/vhd.lo
  CC       tsk/img/vmdk.lo
  CXXLD    tsk/img/libtskimg.la
  CXX      tsk/pool/libtskpool_la-apfs_pool_compat.lo
  CXX      tsk/pool/libtskpool_la-apfs_pool.lo
  CXX      tsk/pool/libtskpool_la-lvm_pool_compat.lo
  CXX      tsk/pool/libtskpool_la-lvm_pool.lo
  CXX      tsk/pool/libtskpool_la-pool_open.lo
  CXX      tsk/pool/libtskpool_la-pool_read.lo
  CXX      tsk/pool/libtskpool_la-pool_types.lo
  CXXLD    tsk/pool/libtskpool.la
  CXX      tsk/util/Bitlocker/libtskbitlocker_la-BitlockerParser.lo
  CXX      tsk/util/Bitlocker/libtskbitlocker_la-BitlockerUtils.lo
  CXX      tsk/util/Bitlocker/libtskbitlocker_la-DataTypes.lo
  CXX      tsk/util/Bitlocker/libtskbitlocker_la-MetadataEntry.lo
  CXX      tsk/util/Bitlocker/libtskbitlocker_la-MetadataUtils.lo
  CXX      tsk/util/Bitlocker/libtskbitlocker_la-MetadataValueAesCcmEncryptedKey.lo
  CXX      tsk/util/Bitlocker/libtskbitlocker_la-MetadataValueStretchKey.lo
  CXXLD    tsk/util/Bitlocker/libtskbitlocker.la
warning: /Library/Developer/CommandLineTools/usr/bin/ranlib: archive library: tsk/util/Bitlocker/.libs/libtskbitlocker.a the table of contents is empty (no object file members in the library define global symbols)
  CXX      tsk/util/libtskutil_la-crypto.lo
tsk/util/crypto.cpp:168:3: warning: 'AES_set_decrypt_key' is deprecated [-Wdeprecated-declarations]
  AES_set_decrypt_key(key, key_len * 8, &aes_key);
  ^
/opt/homebrew/include/openssl/aes.h:53:1: note: 'AES_set_decrypt_key' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/opt/homebrew/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/opt/homebrew/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
tsk/util/crypto.cpp:174:20: warning: 'AES_unwrap_key' is deprecated [-Wdeprecated-declarations]
  const auto ret = AES_unwrap_key(&aes_key, (const uint8_t *)iv, out.get(),
                   ^
/opt/homebrew/include/openssl/aes.h:100:1: note: 'AES_unwrap_key' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/opt/homebrew/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/opt/homebrew/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
tsk/util/crypto.cpp:187:3: warning: 'MD5_Init' is deprecated [-Wdeprecated-declarations]
  MD5_Init(&sha);
  ^
/opt/homebrew/include/openssl/md5.h:49:1: note: 'MD5_Init' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c);
^
/opt/homebrew/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/opt/homebrew/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
tsk/util/crypto.cpp:189:3: warning: 'MD5_Update' is deprecated [-Wdeprecated-declarations]
  MD5_Update(&sha, input, len);
  ^
/opt/homebrew/include/openssl/md5.h:50:1: note: 'MD5_Update' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len);
^
/opt/homebrew/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/opt/homebrew/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
tsk/util/crypto.cpp:193:3: warning: 'MD5_Final' is deprecated [-Wdeprecated-declarations]
  MD5_Final(hash.get(), &sha);
  ^
/opt/homebrew/include/openssl/md5.h:51:1: note: 'MD5_Final' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c);
^
/opt/homebrew/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/opt/homebrew/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
tsk/util/crypto.cpp:201:3: warning: 'SHA256_Init' is deprecated [-Wdeprecated-declarations]
  SHA256_Init(&sha);
  ^
/opt/homebrew/include/openssl/sha.h:73:1: note: 'SHA256_Init' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c);
^
/opt/homebrew/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/opt/homebrew/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
tsk/util/crypto.cpp:203:3: warning: 'SHA256_Update' is deprecated [-Wdeprecated-declarations]
  SHA256_Update(&sha, input, len);
  ^
/opt/homebrew/include/openssl/sha.h:74:1: note: 'SHA256_Update' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
^
/opt/homebrew/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/opt/homebrew/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
tsk/util/crypto.cpp:207:3: warning: 'SHA256_Final' is deprecated [-Wdeprecated-declarations]
  SHA256_Final(hash.get(), &sha);
  ^
/opt/homebrew/include/openssl/sha.h:76:1: note: 'SHA256_Final' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c);
^
/opt/homebrew/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/opt/homebrew/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
8 warnings generated.
  CC       tsk/util/libtskutil_la-detect_encryption.lo
  CC       tsk/util/libtskutil_la-file_system_utils.lo
  CXXLD    tsk/util/libtskutil.la
  CC       tsk/vs/dos.lo
  CC       tsk/vs/gpt.lo
  CC       tsk/vs/mac.lo
  CC       tsk/vs/mm_io.lo
  CC       tsk/vs/mm_open.lo
  CC       tsk/vs/mm_part.lo
  CC       tsk/vs/mm_types.lo
  CC       tsk/vs/sun.lo
  CCLD     tsk/vs/libtskvs.la
  CCLD     tsk/libtsk.la
  CXXLD    tools/autotools/tsk_comparedir
ld: warning: -bind_at_load is deprecated on macOS
ld: warning: ignoring duplicate libraries: '-lc++'
  CXX      tools/autotools/tsk_gettimes.o
  CXXLD    tools/autotools/tsk_gettimes
ld: warning: -bind_at_load is deprecated on macOS
ld: warning: ignoring duplicate libraries: '-lc++'
  CXX      tools/autotools/tsk_imageinfo.o
tools/autotools/tsk_imageinfo.cpp:46:7: warning: unused variable 'do_hash' [-Wunused-variable]
        bool do_hash = false;
             ^
tools/autotools/tsk_imageinfo.cpp:125:9: warning: variable 'findFilesResult' set but not used [-Wunused-but-set-variable]
    int findFilesResult;
        ^
2 warnings generated.
  CXXLD    tools/autotools/tsk_imageinfo
ld: warning: -bind_at_load is deprecated on macOS
ld: warning: ignoring duplicate libraries: '-lc++'
  CXX      tools/autotools/tsk_loaddb.o
  CXXLD    tools/autotools/tsk_loaddb
ld: warning: -bind_at_load is deprecated on macOS
ld: warning: ignoring duplicate libraries: '-lc++'
  CXX      tools/autotools/tsk_recover.o
  CXXLD    tools/autotools/tsk_recover
ld: warning: -bind_at_load is deprecated on macOS
ld: warning: ignoring duplicate libraries: '-lc++'
  CXX      tools/fiwalk/src/fiwalk_main.o
In file included from tools/fiwalk/src/fiwalk_main.cpp:38:
In file included from tools/fiwalk/src/fiwalk.h:91:
/opt/homebrew/include/afflib/utils.h:25:14: error: typedef redefinition with different types ('void' vs 'struct x509_st')
typedef void X509;
             ^
/opt/homebrew/include/openssl/types.h:160:24: note: previous definition is here
typedef struct x509_st X509;
                       ^
In file included from tools/fiwalk/src/fiwalk_main.cpp:38:
In file included from tools/fiwalk/src/fiwalk.h:91:
/opt/homebrew/include/afflib/utils.h:26:14: error: typedef redefinition with different types ('void' vs 'struct evp_pkey_st')
typedef void EVP_PKEY;
             ^
/opt/homebrew/include/openssl/types.h:110:28: note: previous definition is here
typedef struct evp_pkey_st EVP_PKEY;
                           ^
In file included from tools/fiwalk/src/fiwalk_main.cpp:38:
In file included from tools/fiwalk/src/fiwalk.h:91:
/opt/homebrew/include/afflib/utils.h:27:14: error: typedef redefinition with different types ('void' vs 'struct bio_st')
typedef void BIO;
             ^
/opt/homebrew/include/openssl/types.h:89:23: note: previous definition is here
typedef struct bio_st BIO;
                      ^
In file included from tools/fiwalk/src/fiwalk_main.cpp:38:
In file included from tools/fiwalk/src/fiwalk.h:103:
tools/fiwalk/src/hash_t.h:212:31: warning: 'SHA256_Init' is deprecated [-Wdeprecated-declarations]
                md_init         = (int(*)(void *))&SHA256_Init;
                                                   ^
/opt/homebrew/include/openssl/sha.h:73:1: note: 'SHA256_Init' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c);
^
/opt/homebrew/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/opt/homebrew/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
In file included from tools/fiwalk/src/fiwalk_main.cpp:38:
In file included from tools/fiwalk/src/fiwalk.h:103:
tools/fiwalk/src/hash_t.h:213:69: warning: 'SHA256_Update' is deprecated [-Wdeprecated-declarations]
                md_update       = (int (*)(void *, const void *, uint32_t))(void (*)())&SHA256_Update;
                                                                                        ^
/opt/homebrew/include/openssl/sha.h:74:1: note: 'SHA256_Update' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c,
^
/opt/homebrew/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/opt/homebrew/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
In file included from tools/fiwalk/src/fiwalk_main.cpp:38:
In file included from tools/fiwalk/src/fiwalk.h:103:
tools/fiwalk/src/hash_t.h:214:47: warning: 'SHA256_Final' is deprecated [-Wdeprecated-declarations]
                md_final        = (int (*)(unsigned char*, void*))&SHA256_Final;
                                                                   ^
/opt/homebrew/include/openssl/sha.h:76:1: note: 'SHA256_Final' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c);
^
/opt/homebrew/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/opt/homebrew/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
In file included from tools/fiwalk/src/fiwalk_main.cpp:38:
In file included from tools/fiwalk/src/fiwalk.h:103:
tools/fiwalk/src/hash_t.h:219:31: warning: 'SHA512_Init' is deprecated [-Wdeprecated-declarations]
                md_init         = (int(*)(void *))&SHA512_Init;
                                                   ^
/opt/homebrew/include/openssl/sha.h:124:1: note: 'SHA512_Init' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int SHA512_Init(SHA512_CTX *c);
^
/opt/homebrew/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/opt/homebrew/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
In file included from tools/fiwalk/src/fiwalk_main.cpp:38:
In file included from tools/fiwalk/src/fiwalk.h:103:
tools/fiwalk/src/hash_t.h:220:69: warning: 'SHA512_Update' is deprecated [-Wdeprecated-declarations]
                md_update       = (int (*)(void *, const void *, uint32_t))(void (*)())&SHA512_Update;
                                                                                        ^
/opt/homebrew/include/openssl/sha.h:125:1: note: 'SHA512_Update' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int SHA512_Update(SHA512_CTX *c,
^
/opt/homebrew/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/opt/homebrew/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
In file included from tools/fiwalk/src/fiwalk_main.cpp:38:
In file included from tools/fiwalk/src/fiwalk.h:103:
tools/fiwalk/src/hash_t.h:221:47: warning: 'SHA512_Final' is deprecated [-Wdeprecated-declarations]
                md_final        = (int (*)(unsigned char*, void*))&SHA512_Final;
                                                                   ^
/opt/homebrew/include/openssl/sha.h:127:1: note: 'SHA512_Final' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int SHA512_Final(unsigned char *md, SHA512_CTX *c);
^
/opt/homebrew/include/openssl/macros.h:194:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/opt/homebrew/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
6 warnings and 3 errors generated.
make: *** [tools/fiwalk/src/fiwalk_main.o] Error 1
simsong@Simsons-MacBook-Pro sleuthkit %

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions