[sleuthkit-developers] [ sleuthkit-Bugs-3026994 ] mingw compile errors
Brought to you by:
carrier
From: SourceForge.net <no...@so...> - 2010-08-19 20:26:54
|
Bugs item #3026994, was opened at 2010-07-08 14:28 Message generated for change (Settings changed) made by carrier You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=477889&aid=3026994&group_id=55685 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Brian Carrier (carrier) >Assigned to: Brian Carrier (carrier) Summary: mingw compile errors Initial Comment: >From Simson Garfinkel: Version 3.1.3 generates these compilation errors with mingw running on Linux: fs_fname_apis.cpp: In function `int test_fat12()': fs_fname_apis.cpp:366: error: cannot convert `char*' to `const TSK_TCHAR*' for argument `1' to `TSK_IMG_INFO* tsk_img_open_sing(const TSK_TCHAR*, TSK_IMG_TYPE_ENUM, unsigned int)' fs_fname_apis.cpp: In function `int test_ntfs_fe()': fs_fname_apis.cpp:404: error: cannot convert `char*' to `const TSK_TCHAR*' for argument `1' to `TSK_IMG_INFO* tsk_img_open_sing(const TSK_TCHAR*, TSK_IMG_TYPE_ENUM, unsigned int)' read_apis.cpp: In function `int test_fat12()': read_apis.cpp:210: error: cannot convert `char*' to `const TSK_TCHAR*' for argument `1' to `TSK_IMG_INFO* tsk_img_open_sing(const TSK_TCHAR*, TSK_IMG_TYPE_ENUM, unsigned int)'fs_attrlist_apis.cpp: In function `int test_fat12()': fs_attrlist_apis.cpp:202: error: cannot convert `char*' to `const TSK_TCHAR*' for argument `1' to `TSK_IMG_INFO* tsk_img_open_sing(const TSK_TCHAR*, TSK_IMG_TYPE_ENUM, unsigned int)' read_apis.cpp: In function `int test_fat_slack()': read_apis.cpp:249: error: cannot convert `char*' to `const TSK_TCHAR*' for argument `1' to `TSK_IMG_INFO* tsk_img_open_sing(const TSK_TCHAR*, TSK_IMG_TYPE_ENUM, unsigned int)' fs_attrlist_apis.cpp: In function `int test_ntfs_fe()': fs_attrlist_apis.cpp:241: error: cannot convert `char*' to `const TSK_TCHAR*' for argument `1' to `TSK_IMG_INFO* tsk_img_open_sing(const TSK_TCHAR*, TSK_IMG_TYPE_ENUM, unsigned int)' read_apis.cpp: In function `int test_fat_recover()': read_apis.cpp:343: error: cannot convert `char*' to `const TSK_TCHAR*' for argument `1' to `TSK_IMG_INFO* tsk_img_open_sing(const TSK_TCHAR*, TSK_IMG_TYPE_ENUM, unsigned int)' read_apis.cpp: In function `int test_ntfs_slack_ads()': read_apis.cpp:483: error: cannot convert `char*' to `const TSK_TCHAR*' for argument `1' to `TSK_IMG_INFO* tsk_img_open_sing(const TSK_TCHAR*, TSK_IMG_TYPE_ENUM, unsigned int)' read_apis.cpp: In function `int test_ntfs_fe()': read_apis.cpp:644: error: cannot convert `char*' to `const TSK_TCHAR*' for argument `1' to `TSK_IMG_INFO* tsk_img_open_sing(const TSK_TCHAR*, TSK_IMG_TYPE_ENUM, unsigned int)' read_apis.cpp: In function `int test_ntfs_comp()': read_apis.cpp:682: error: cannot convert `char*' to `const TSK_TCHAR*' for argument `1' to `TSK_IMG_INFO* tsk_img_open_sing(const TSK_TCHAR*, TSK_IMG_TYPE_ENUM, unsigned int)' These are all trivially fixed by putting a (const TSK_TCHAR *) before the fname arguments. I am also seeing these errors which are not so trivial to fix: ewf.c: In function `ewf_open': ewf.c:147: warning: implicit declaration of function `libewf_check_file_signature_wide' ewf.c:163: warning: implicit declaration of function `libewf_open_wide' ewf.c:163: warning: assignment makes pointer from integer without a cast hfs_dent.c: In function `hfs_uni2ascii': hfs_dent.c:121: warning: dereferencing type-punned pointer will break strict-aliasing rules hfs_dent.c:122: warning: dereferencing type-punned pointer will break strict-aliasing rules ---------------------------------------------------------------------- Comment By: Brian Carrier (carrier) Date: 2010-08-19 15:26 Message: First part of patch is in: Sending trunk/tests/fs_attrlist_apis.cpp Sending trunk/tests/fs_fname_apis.cpp Sending trunk/tests/read_apis.cpp Transmitting file data ... Committed revision 238. Need to look at ewf_open warning. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=477889&aid=3026994&group_id=55685 |