Re: [sleuthkit-developers] fiwalk build failure on Windows MingW
Brought to you by:
carrier
From: Eamonn S. <ea...@ya...> - 2013-04-24 17:09:23
|
Hi Rob, I ran into similar issues last week. I've just pushed changes to master that should allow you to get past the compilation issues you are seeing. Note that you will still probably run into a problem when the build process attempts to link fiwalk. To get around that I had to install libregex and add -lregex to the LIBS in tools/fiwalk\src\Makefile. Let me know if you need more details. Eamonn ________________________________ From: Rob Joyce <rj...@at...> To: sle...@li... Sent: Wednesday, April 24, 2013 11:27 AM Subject: [sleuthkit-developers] fiwalk build failure on Windows MingW I'm building TSK on Windows using mingw/msys. It works just fine until it gets to fiwalk. (I’m not actually planning to use fiwalk, but that stops the TSK build in its tracks.) It looks like the fiwalk source code is Windows-aware; any ideas? This is g++ v4.5.2 and the current Github master (as of this morning, 407bfa754f). configure finds pthreads just fine. Thanks, _Rob […] make[2]: Entering directory `/tmp/sleuthkit-master/tools/fiwalk' Making all in src make[3]: Entering directory `/tmp/sleuthkit-master/tools/fiwalk/src' g++ -DHAVE_CONFIG_H -I. -I../../../tsk3 -I../../.. -Wall -g -O2 -MT fiwalk.o -MD -MP -MF .deps/fiwalk.Tpo -c -o fiwalk.o fiwalk.cpp In file included from fiwalk.cpp:39:0: fiwalk.h:164:0: warning: "F_OK" redefined c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/io.h:322:0: note: this is the location of the previous definition fiwalk.h:165:0: warning: "W_OK" redefined c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/io.h:326:0: note: this is the location of the previous definition fiwalk.h:166:0: warning: "R_OK" redefined c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/io.h:327:0: note: this is the location of the previous definition In file included from fiwalk.h:99:0, from fiwalk.cpp:39: dfxml.h:96:5: error: 'pthread_mutex_t' does not name a type dfxml.h: In copy constructor 'xml::xml(const xml&)': dfxml.h:87:2: error: class 'xml' does not have any field named 'M' fiwalk.cpp: In function 'int main(int, char* const*)': fiwalk.cpp:500:13: error: cannot convert 'TSK_TCHAR*' to 'const char*' in assignment fiwalk.cpp:523:13: error: cannot convert 'TSK_TCHAR*' to 'const char*' in assignment fiwalk.cpp:532:29: error: no matching function for call to 'std::basic_string<char>::basic_string(TSK_TCHAR*&)' c:\mingw\bin\../lib/gcc/mingw32/4.5.2/include/c++/bits/basic_string.tcc:219:5: note: candidates are: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::basic_string<_CharT, _Traits, _Alloc>::size_type, _CharT, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>, std::basic_string<_CharT, _Traits, _Alloc>::size_type = unsigned int] c:\mingw\bin\../lib/gcc/mingw32/4.5.2/include/c++/bits/basic_string.tcc:212:5: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>] c:\mingw\bin\../lib/gcc/mingw32/4.5.2/include/c++/bits/basic_string.tcc:205:5: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>, std::basic_string<_CharT, _Traits, _Alloc>::size_type = unsigned int] c:\mingw\bin\../lib/gcc/mingw32/4.5.2/include/c++/bits/basic_string.tcc:193:5: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::basic_string<_CharT, _Traits, _Alloc>&, std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>, std::basic_string<_CharT, _Traits, _Alloc> = std::basic_string<char>, std::basic_string<_CharT, _Traits, _Alloc>::size_type = unsigned int] c:\mingw\bin\../lib/gcc/mingw32/4.5.2/include/c++/bits/basic_string.tcc:183:5: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::basic_string<_CharT, _Traits, _Alloc>&, std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>, std::basic_string<_CharT, _Traits, _Alloc> = std::basic_string<char>, std::basic_string<_CharT, _Traits, _Alloc>::size_type = unsigned int] c:\mingw\bin\../lib/gcc/mingw32/4.5.2/include/c++/bits/basic_string.tcc:169:5: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>, std::basic_string<_CharT, _Traits, _Alloc> = std::basic_string<char>] c:\mingw\bin\../lib/gcc/mingw32/4.5.2/include/c++/bits/basic_string.tcc:177:5: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>] c:\mingw\bin\../lib/gcc/mingw32/4.5.2/include/c++/bits/basic_string.h:423:7: note: std::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>] fiwalk.cpp:542:16: error: cannot convert 'TSK_TCHAR*' to 'const char*' in assignment fiwalk.cpp:550:17: error: cannot convert 'TSK_TCHAR*' to 'const char*' in assignment fiwalk.cpp:556:27: error: 'convert' was not declared in this scope fiwalk.cpp:567:60: warning: format '%s' expects type 'char*', but argument 3 has type 'TSK_TCHAR*' fiwalk.cpp:581:31: error: cannot convert 'TSK_TCHAR* const' to 'const char*' in initialization fiwalk.cpp:724:68: error: cannot convert 'TSK_TCHAR* const*' to 'char* const*' for argument '2' to 'int process_image_file(int, char* const*, const char*, u_int)' fiwalk.cpp:727:53: error: cannot convert 'TSK_TCHAR* const*' to 'char* const*' for argument '2' to 'int process_image_file(int, char* const*, const char*, u_int)' fiwalk.cpp:474:8: warning: unused variable 'argv_0' make[3]: *** [fiwalk.o] Error 1 make[3]: Leaving directory `/tmp/sleuthkit-master/tools/fiwalk/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/sleuthkit-master/tools/fiwalk' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/sleuthkit-master/tools' make: *** [all-recursive] Error 1 ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr _______________________________________________ sleuthkit-developers mailing list sle...@li... https://lists.sourceforge.net/lists/listinfo/sleuthkit-developers |