Thread: [sleuthkit-developers] [ sleuthkit-Bugs-3026994 ] mingw compile errors
Brought to you by:
carrier
From: SourceForge.net <no...@so...> - 2010-07-08 19:28:49
|
Bugs item #3026994, was opened at 2010-07-08 14:28 Message generated for change (Tracker Item Submitted) 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: Nobody/Anonymous (nobody) 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 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=477889&aid=3026994&group_id=55685 |
From: SourceForge.net <no...@so...> - 2010-08-13 16:18:53
|
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: anthony lawrence (anthonylawrence) 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 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=477889&aid=3026994&group_id=55685 |
From: SourceForge.net <no...@so...> - 2010-08-19 20:26:43
|
Bugs item #3026994, was opened at 2010-07-08 14:28 Message generated for change (Comment added) 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: anthony lawrence (anthonylawrence) 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 |
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 |
From: SourceForge.net <no...@so...> - 2010-09-11 04:03:34
|
Bugs item #3026994, was opened at 2010-07-08 14:28 Message generated for change (Comment added) 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-09-10 23:03 Message: Addressed hfs_dent issues (I think): Sending trunk/tsk3/fs/hfs_dent.c Transmitting file data . Committed revision 250. The libewf warnings could be because of how mingw defines wide characters and such... Need to try this setup. ---------------------------------------------------------------------- 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 |
From: SourceForge.net <no...@so...> - 2011-02-17 03:22:34
|
Bugs item #3184419, was opened at 2011-02-16 22:22 Message generated for change (Tracker Item Submitted) made by carrier You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=477889&aid=3184419&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: File System Tools Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Brian Carrier (carrier) Assigned to: Nobody/Anonymous (nobody) Summary: mingw compile errors Initial Comment: Simson G sent the following to the list: Using SleuthKit with libewf under mingw results in the error below in the configure.ac script because zlib isn't included natively in mingw; the solution is to add this line before the libewf test: My winning configure.ac script is attached. Unfortunately, this causes another problem with ewf.h: #if defined(TSK_WIN32) #include <config_msc.h> #endif It turns out that you don't have config_msc.h when compiling under mingw, because WIN32 and MSC are not synonyms. There really needs to be an explicit check to see if config_msc.h is present. So this needs to be added to configure.ac: AC_CHECK_HEADERS([config_msc.h]) And the line in ewf.h needs to be changed to read: #ifdef HAVE_CONFIG_MSC_H #include <config_msc.h> #endif Another problem shows up in ewf.c: #if defined (TSK_WIN32) if (libewf_check_file_signature_wide(images[0]) == 0) { #else if (libewf_check_file_signature(images[0],0) == 0) { #endif which generates this error: ewf.c:147: error: too few arguments to function `libewf_check_file_signature_wide' Which can be fixed with: if (libewf_check_file_signature_wide(images[0],0) == 0) { Another problem is auto.cpp: libtool: compile: /opt/local/bin//i386-mingw32-g++ -DHAVE_CONFIG_H -I. -I../../tsk3 -I../.. -Wall -mwin32 -mconsole -march=pentium4 -Wall -MT auto.lo -MD -MP -MF .deps/auto.Tpo -c auto.cpp -o auto.o In file included from /opt/local/i386-mingw32/include/c++/3.4.5/bits/stl_algobase.h:67, from /opt/local/i386-mingw32/include/c++/3.4.5/bits/stl_tree.h:66, from /opt/local/i386-mingw32/include/c++/3.4.5/map:66, from tsk_auto.h:32, from tsk_auto_i.h:29, from auto.cpp:16: /opt/local/i386-mingw32/include/c++/3.4.5/cstdlib:111: error: `::realloc' has not been declared This seems to happening when tsk_auto.h executes the #include <map> or the #include<string> The interesting thing is, neither of those includes are actually necessary to compile the auto class. I commented them out and the compile proceeded but linking failed with this: libtool: link: /opt/local/bin//i386-mingw32-g++ -mwin32 -mconsole -march=pentium4 -Wall -o img_cat.exe img_cat.o ../../tsk3/.libs/libtsk3.a -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/work/build/i386-mingw32/libstdc++-v3/src -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/work/build/i386-mingw32/libstdc++-v3/src/.libs -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/work/build/gcc -L/opt/local/i386-mingw32/bin -L/opt/local/i386-mingw32/lib -L/opt/local/lib/../i386-mingw32/lib /opt/local/i386-mingw32/lib/libstdc++.a -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -lm /opt/local/i386-mingw32/lib/libewf.a -lz -lws2_32 -lgdi32 ../../tsk3/.libs/libtsk3.a(mymalloc.o):mymalloc.c:(.text+0x8d): undefined reference to `_rpl_realloc' Now that's weird, but it turns out that in tsk3/tsk_config.h, you'll find this: /* Define to rpl_realloc if the replacement function should be used. */ #define realloc rpl_realloc Which is just the wrong thing to be doing. We have realloc on this platform, but for some reason AC_FUNC_REALLOC things that we don't. So I commented out AC_FUNC_REALLOC in configure.ac Apparently the failure of AC_FUNC_REALLOC has been discovered in the past: http://www.opensubscriber.com/message/aut...@gn.../8275001.html http://www.opensubscriber.com/message/aut...@gn.../8275242.html AND THEN YOU CAN COMPILE SLEUTHKIT 3.2.0 on MINGW! HURRAY! ============== configure:19255: result: no configure:19324: checking libewf.h usability configure:19341: /opt/local/bin//i386-mingw32-gcc -c -mwin32 -mconsole -march=pentium4 -Wall conftest.c >&5 configure:19347: $? = 0 configure:19361: result: yes configure:19365: checking libewf.h presence configure:19380: /opt/local/bin//i386-mingw32-gcc -E conftest.c configure:19386: $? = 0 configure:19400: result: yes configure:19428: checking for libewf.h configure:19436: result: yes configure:19445: checking for libewf_open in -lewf configure:19480: /opt/local/bin//i386-mingw32-gcc -o conftest.exe -mwin32 -mconsole -march=pentium4 -Wall -lws2_32 conftest.c -lewf -lws2_32 -lgdi32 >&5 /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_write_io_handle.o):libewf_write_io_handle.c:(.text+0x2901): undefined reference to `_adler32' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_write_io_handle.o):libewf_write_io_handle.c:(.text+0x541e): undefined reference to `_adler32' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_read_io_handle.o):libewf_read_io_handle.c:(.text+0x569): undefined reference to `_adler32' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_compression.o):libewf_compression.c:(.text+0x1ba): undefined reference to `_compress2' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_compression.o):libewf_compression.c:(.text+0x1e8): undefined reference to `_compressBound' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_compression.o):libewf_compression.c:(.text+0x3b0): undefined reference to `_uncompress' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_section.o):libewf_section.c:(.text+0x5c3): undefined reference to `_adler32' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_section.o):libewf_section.c:(.text+0xa98): undefined reference to `_adler32' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_section.o):libewf_section.c:(.text+0x1be8): undefined reference to `_adler32' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_section.o):libewf_section.c:(.text+0x21c0): undefined reference to `_adler32' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_section.o):libewf_section.c:(.text+0x2557): undefined reference to `_adler32' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_section.o):libewf_section.c:(.text+0x2e6a): more undefined references to `_adler32' follow collect2: ld returned 1 exit status ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d_______________________________________________ sleuthkit-users mailing list https://lists.sourceforge.net/lists/listinfo/sleuthkit-users http://www.sleuthkit.org ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=477889&aid=3184419&group_id=55685 |
From: SourceForge.net <no...@so...> - 2011-02-17 03:27:57
|
Bugs item #3184419, was opened at 2011-02-16 22:22 Message generated for change (Comment added) made by carrier You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=477889&aid=3184419&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: File System Tools Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Brian Carrier (carrier) Assigned to: Nobody/Anonymous (nobody) Summary: mingw compile errors Initial Comment: Simson G sent the following to the list: Using SleuthKit with libewf under mingw results in the error below in the configure.ac script because zlib isn't included natively in mingw; the solution is to add this line before the libewf test: My winning configure.ac script is attached. Unfortunately, this causes another problem with ewf.h: #if defined(TSK_WIN32) #include <config_msc.h> #endif It turns out that you don't have config_msc.h when compiling under mingw, because WIN32 and MSC are not synonyms. There really needs to be an explicit check to see if config_msc.h is present. So this needs to be added to configure.ac: AC_CHECK_HEADERS([config_msc.h]) And the line in ewf.h needs to be changed to read: #ifdef HAVE_CONFIG_MSC_H #include <config_msc.h> #endif Another problem shows up in ewf.c: #if defined (TSK_WIN32) if (libewf_check_file_signature_wide(images[0]) == 0) { #else if (libewf_check_file_signature(images[0],0) == 0) { #endif which generates this error: ewf.c:147: error: too few arguments to function `libewf_check_file_signature_wide' Which can be fixed with: if (libewf_check_file_signature_wide(images[0],0) == 0) { Another problem is auto.cpp: libtool: compile: /opt/local/bin//i386-mingw32-g++ -DHAVE_CONFIG_H -I. -I../../tsk3 -I../.. -Wall -mwin32 -mconsole -march=pentium4 -Wall -MT auto.lo -MD -MP -MF .deps/auto.Tpo -c auto.cpp -o auto.o In file included from /opt/local/i386-mingw32/include/c++/3.4.5/bits/stl_algobase.h:67, from /opt/local/i386-mingw32/include/c++/3.4.5/bits/stl_tree.h:66, from /opt/local/i386-mingw32/include/c++/3.4.5/map:66, from tsk_auto.h:32, from tsk_auto_i.h:29, from auto.cpp:16: /opt/local/i386-mingw32/include/c++/3.4.5/cstdlib:111: error: `::realloc' has not been declared This seems to happening when tsk_auto.h executes the #include <map> or the #include<string> The interesting thing is, neither of those includes are actually necessary to compile the auto class. I commented them out and the compile proceeded but linking failed with this: libtool: link: /opt/local/bin//i386-mingw32-g++ -mwin32 -mconsole -march=pentium4 -Wall -o img_cat.exe img_cat.o ../../tsk3/.libs/libtsk3.a -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/work/build/i386-mingw32/libstdc++-v3/src -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/work/build/i386-mingw32/libstdc++-v3/src/.libs -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_cross_i386-mingw32-gcc/work/build/gcc -L/opt/local/i386-mingw32/bin -L/opt/local/i386-mingw32/lib -L/opt/local/lib/../i386-mingw32/lib /opt/local/i386-mingw32/lib/libstdc++.a -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -lm /opt/local/i386-mingw32/lib/libewf.a -lz -lws2_32 -lgdi32 ../../tsk3/.libs/libtsk3.a(mymalloc.o):mymalloc.c:(.text+0x8d): undefined reference to `_rpl_realloc' Now that's weird, but it turns out that in tsk3/tsk_config.h, you'll find this: /* Define to rpl_realloc if the replacement function should be used. */ #define realloc rpl_realloc Which is just the wrong thing to be doing. We have realloc on this platform, but for some reason AC_FUNC_REALLOC things that we don't. So I commented out AC_FUNC_REALLOC in configure.ac Apparently the failure of AC_FUNC_REALLOC has been discovered in the past: http://www.opensubscriber.com/message/aut...@gn.../8275001.html http://www.opensubscriber.com/message/aut...@gn.../8275242.html AND THEN YOU CAN COMPILE SLEUTHKIT 3.2.0 on MINGW! HURRAY! ============== configure:19255: result: no configure:19324: checking libewf.h usability configure:19341: /opt/local/bin//i386-mingw32-gcc -c -mwin32 -mconsole -march=pentium4 -Wall conftest.c >&5 configure:19347: $? = 0 configure:19361: result: yes configure:19365: checking libewf.h presence configure:19380: /opt/local/bin//i386-mingw32-gcc -E conftest.c configure:19386: $? = 0 configure:19400: result: yes configure:19428: checking for libewf.h configure:19436: result: yes configure:19445: checking for libewf_open in -lewf configure:19480: /opt/local/bin//i386-mingw32-gcc -o conftest.exe -mwin32 -mconsole -march=pentium4 -Wall -lws2_32 conftest.c -lewf -lws2_32 -lgdi32 >&5 /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_write_io_handle.o):libewf_write_io_handle.c:(.text+0x2901): undefined reference to `_adler32' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_write_io_handle.o):libewf_write_io_handle.c:(.text+0x541e): undefined reference to `_adler32' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_read_io_handle.o):libewf_read_io_handle.c:(.text+0x569): undefined reference to `_adler32' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_compression.o):libewf_compression.c:(.text+0x1ba): undefined reference to `_compress2' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_compression.o):libewf_compression.c:(.text+0x1e8): undefined reference to `_compressBound' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_compression.o):libewf_compression.c:(.text+0x3b0): undefined reference to `_uncompress' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_section.o):libewf_section.c:(.text+0x5c3): undefined reference to `_adler32' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_section.o):libewf_section.c:(.text+0xa98): undefined reference to `_adler32' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_section.o):libewf_section.c:(.text+0x1be8): undefined reference to `_adler32' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_section.o):libewf_section.c:(.text+0x21c0): undefined reference to `_adler32' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_section.o):libewf_section.c:(.text+0x2557): undefined reference to `_adler32' /opt/local/lib/gcc/i386-mingw32/3.4.5/../../../../i386-mingw32/lib/libewf.a(libewf_section.o):libewf_section.c:(.text+0x2e6a): more undefined references to `_adler32' follow collect2: ld returned 1 exit status ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d_______________________________________________ sleuthkit-users mailing list https://lists.sourceforge.net/lists/listinfo/sleuthkit-users http://www.sleuthkit.org ---------------------------------------------------------------------- >Comment By: Brian Carrier (carrier) Date: 2011-02-16 22:27 Message: Checked in some of the changes: Sending branches/sleuthkit-3.2/NEWS.txt Sending branches/sleuthkit-3.2/configure.ac Sending branches/sleuthkit-3.2/tsk3/auto/tsk_auto.h Sending branches/sleuthkit-3.2/tsk3/img/ewf.h Sending trunk/NEWS.txt Sending trunk/configure.ac Sending trunk/tsk3/auto/tsk_auto.h Sending trunk/tsk3/img/ewf.h Transmitting file data ........ Committed revision 316. Open issues include: - why does TSK need to check for zlib if that is a libewf dependency? The attached configure.ac makes zlib a requirement for TSK. - Does changing the wide arguments work on Visual Studio? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=477889&aid=3184419&group_id=55685 |