Re: [sleuthkit-users] AFFLIB 3.3.6 compile error in Cygwin
Brought to you by:
carrier
|
From: Kevin H. <kd...@gm...> - 2011-08-30 00:43:32
|
On Mon, Aug 29, 2011 at 11:59 AM, Michael Cohen <scu...@gm...> wrote: > Hi Kervin, > Again you will want to disable qemu support in the configure options. > > BTW, why are you not using the latest AFFLIB as can be found here > > http://afflib.org/ > > Where are you getting such an old version from? > > Michael. > > > On 29 August 2011 17:55, Kevin Holleran <kd...@gm...> wrote: > > On Mon, Aug 29, 2011 at 11:35 AM, Michael Cohen <scu...@gm...> > wrote: > >> > >> Kevin, > >> It is likely that the version of libewf that this AFFLIB is > >> expecting is not correct. You do not need libewf support in AFFLIB > >> because that is already included in TSK anyway, so you could just > >> force AFFLIB to not compile with libewf support. Try typing > >> > >> ./configure --help > >> > >> When building AFFLIB and issue --disbale-ewflib or something like that. > >> > >> Michael. > >> > >> On 29 August 2011 17:08, Kevin Holleran <kd...@gm...> wrote: > >> > Hello, > >> > I am trying to install TSK in Cygwin and am first installing AFFLIB > >> > 3.3.6. > >> > When I try to compile AFFLIB, I receive the following error: > >> > > >> > ****BEGIN ERROR MESSAGE**** > >> > kevin /cygdrive/d/SANS/TSK/afflib-3.3.6 > >> > $ make > >> > make all-recursive > >> > make[1]: Entering directory `/cygdrive/d/SANS/TSK/afflib-3.3.6' > >> > Making all in lib > >> > make[2]: Entering directory `/cygdrive/d/SANS/TSK/afflib-3.3.6/lib' > >> > /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > >> > -I.. > >> > -I../lzma443/C -I../lzma443/C/7zip/Compress/LZMA_Alone > >> > -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 -I/usr/local/include > -g > >> > -O2 > >> > -MT vnode_ewf.lo -MD -MP -MF .deps/vnode_ewf.Tpo -c -o vnode_ewf.lo > >> > vnode_ewf.cpp > >> > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../lzma443/C > >> > -I../lzma443/C/7zip/Compress/LZMA_Alone -D_FILE_OFFSET_BITS=64 > >> > -DFUSE_USE_VERSION=26 -I/usr/local/include -g -O2 -MT vnode_ewf.lo -MD > >> > -MP > >> > -MF .deps/vnode_ewf.Tpo -c vnode_ewf.cpp -DDLL_EXPORT -DPIC -o > >> > .libs/vnode_ewf.o > >> > /usr/local/include/libewf.h: In function ‘int > ewf_identify_file(const > >> > char*, int)’: > >> > /usr/local/include/libewf.h:100: error: too few arguments to function > >> > ‘int > >> > libewf_check_file_signature(const char*, libewf_error_t**)’ > >> > vnode_ewf.cpp:61: error: at this point in file > >> > vnode_ewf.cpp: In function ‘int ewf_open(AFFILE*)’: > >> > vnode_ewf.cpp:99: error: ‘LIBEWF_HANDLE’ was not declared in this > >> > scope > >> > vnode_ewf.cpp:99: error: ‘handle’ was not declared in this scope > >> > vnode_ewf.cpp:99: warning: ‘libewf_handle_t* libewf_open(char* > const*, > >> > int, uint8_t)’ is deprecated (declared at > >> > /usr/local/include/libewf.h:2374) > >> > vnode_ewf.cpp:99: warning: ‘libewf_handle_t* libewf_open(char* > const*, > >> > int, uint8_t)’ is deprecated (declared at > >> > /usr/local/include/libewf.h:2374) > >> > vnode_ewf.cpp:108: warning: ‘int > >> > libewf_get_media_size(libewf_handle_t*, > >> > size64_t*)’ is deprecated (declared at > >> > /usr/local/include/libewf.h:2801) > >> > vnode_ewf.cpp:128: warning: ‘int > >> > libewf_get_chunk_size(libewf_handle_t*, > >> > size32_t*)’ is deprecated (declared at > >> > /usr/local/include/libewf.h:2749) > >> > vnode_ewf.cpp: In function ‘int ewf_vstat(AFFILE*, > af_vnode_info*)’: > >> > vnode_ewf.cpp:140: error: ‘LIBEWF_HANDLE’ was not declared in this > >> > scope > >> > vnode_ewf.cpp:140: error: ‘handle’ was not declared in this scope > >> > vnode_ewf.cpp:142: warning: ‘int > >> > libewf_get_media_size(libewf_handle_t*, > >> > size64_t*)’ is deprecated (declared at > >> > /usr/local/include/libewf.h:2801) > >> > vnode_ewf.cpp:149: warning: ‘int > >> > libewf_get_chunk_size(libewf_handle_t*, > >> > size32_t*)’ is deprecated (declared at > >> > /usr/local/include/libewf.h:2749) > >> > vnode_ewf.cpp: In function ‘int ewf_read(AFFILE*, unsigned char*, > >> > uint64_t, size_t)’: > >> > vnode_ewf.cpp:163: error: ‘LIBEWF_HANDLE’ was not declared in this > >> > scope > >> > vnode_ewf.cpp:163: error: ‘handle’ was not declared in this scope > >> > vnode_ewf.cpp:164: warning: ‘ssize_t > >> > libewf_read_random(libewf_handle_t*, > >> > void*, size_t, off64_t)’ is deprecated (declared at > >> > /usr/local/include/libewf.h:2474) > >> > vnode_ewf.cpp: In function ‘int ewf_write(AFFILE*, unsigned char*, > >> > uint64_t, size_t)’: > >> > vnode_ewf.cpp:169: error: ‘LIBEWF_HANDLE’ was not declared in this > >> > scope > >> > vnode_ewf.cpp:169: error: ‘handle’ was not declared in this scope > >> > vnode_ewf.cpp:170: warning: ‘ssize_t > >> > libewf_write_random(libewf_handle_t*, > >> > void*, size_t, off64_t)’ is deprecated (declared at > >> > /usr/local/include/libewf.h:2539) > >> > vnode_ewf.cpp: In function ‘int ewf_close(AFFILE*)’: > >> > vnode_ewf.cpp:175: error: ‘LIBEWF_HANDLE’ was not declared in this > >> > scope > >> > vnode_ewf.cpp:175: error: ‘handle’ was not declared in this scope > >> > vnode_ewf.cpp:176: warning: ‘int libewf_close(libewf_handle_t*)’ > is > >> > deprecated (declared at /usr/local/include/libewf.h:2398) > >> > vnode_ewf.cpp: At global scope: > >> > vnode_ewf.cpp:197: error: ‘LIBEWF_HANDLE’ was not declared in this > >> > scope > >> > vnode_ewf.cpp:197: error: ‘handle’ was not declared in this scope > >> > vnode_ewf.cpp:198: error: expected ‘,’ or ‘;’ before ‘{’ > >> > token > >> > vnode_ewf.cpp: In function ‘int ewf_get_seg(AFFILE*, const char*, > long > >> > unsigned int*, unsigned char*, size_t*)’: > >> > vnode_ewf.cpp:211: error: ‘LIBEWF_HANDLE’ was not declared in this > >> > scope > >> > vnode_ewf.cpp:211: error: ‘handle’ was not declared in this scope > >> > vnode_ewf.cpp:216: warning: ‘int > >> > libewf_get_chunk_size(libewf_handle_t*, > >> > size32_t*)’ is deprecated (declared at > >> > /usr/local/include/libewf.h:2749) > >> > vnode_ewf.cpp:231: warning: ‘ssize_t > >> > libewf_read_random(libewf_handle_t*, > >> > void*, size_t, off64_t)’ is deprecated (declared at > >> > /usr/local/include/libewf.h:2474) > >> > vnode_ewf.cpp:252: error: ‘ewf_bytes_per_sector’ cannot be used as > a > >> > function > >> > vnode_ewf.cpp:259: error: ‘ewf_bytes_per_sector’ cannot be used as > a > >> > function > >> > vnode_ewf.cpp:275: warning: ‘int > >> > libewf_get_header_value(libewf_handle_t*, > >> > const char*, char*, size_t)’ is deprecated (declared at > >> > /usr/local/include/libewf.h:3169) > >> > vnode_ewf.cpp:283: warning: ‘int libewf_get_guid(libewf_handle_t*, > >> > uint8_t*, size_t)’ is deprecated (declared at > >> > /usr/local/include/libewf.h:2902) > >> > vnode_ewf.cpp:290: warning: ‘int > >> > libewf_get_header_value(libewf_handle_t*, > >> > const char*, char*, size_t)’ is deprecated (declared at > >> > /usr/local/include/libewf.h:3169) > >> > vnode_ewf.cpp:298: warning: ‘int > >> > libewf_get_header_value(libewf_handle_t*, > >> > const char*, char*, size_t)’ is deprecated (declared at > >> > /usr/local/include/libewf.h:3169) > >> > make[2]: *** [vnode_ewf.lo] Error 1 > >> > make[2]: Leaving directory `/cygdrive/d/SANS/TSK/afflib-3.3.6/lib' > >> > make[1]: *** [all-recursive] Error 1 > >> > make[1]: Leaving directory `/cygdrive/d/SANS/TSK/afflib-3.3.6' > >> > make: *** [all] Error 2 > >> > kevin /cygdrive/d/SANS/TSK/afflib-3.3.6 > >> > $ > >> > ****END ERROR MESSAGE**** > >> > > >> > I have followed the AFFLIB readme and tried to do some searching but I > >> > am > >> > new to AFFLIB & TSK. I was able to get LIBEWF installed and LIBEWF, > >> > AFFLIB, > >> > & TSK on a linux machine but it is failing in Cygwin. > >> > I am running Cygwin in a Win 7 x64 environment. Any help is greatly > >> > appreciated. > >> > Kevin > >> > > >> > > >> > > >> > > ------------------------------------------------------------------------------ > >> > EMC VNX: the world's simplest storage, starting under $10K > >> > The only unified storage solution that offers unified management > >> > Up to 160% more powerful than alternatives and 25% more efficient. > >> > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > >> > _______________________________________________ > >> > sleuthkit-users mailing list > >> > https://lists.sourceforge.net/lists/listinfo/sleuthkit-users > >> > http://www.sleuthkit.org > >> > > >> > > > > > > > Thanks for your help. I am now receiving the following error: > > qemu/block-raw-posix.c:31:17: error: aio.h: No such file or directory > > qemu/block-raw-posix.c:238: error: field ‘aiocb’ has incomplete type > > qemu/block-raw-posix.c: In function ‘raw_aio_cancel’: > > qemu/block-raw-posix.c:439: error: ‘AIO_NOTCANCELED’ undeclared > (first > > use in this function) > > qemu/block-raw-posix.c:439: error: (Each undeclared identifier is > reported > > only once > > qemu/block-raw-posix.c:439: error: for each function it appears in.) > > make[2]: *** [libafflib_la-block-raw-posix.lo] Error 1 > > make[2]: Leaving directory `/cygdrive/d/SANS/TSK/afflib-3.3.6/lib' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory `/cygdrive/d/SANS/TSK/afflib-3.3.6' > > make: *** [all] Error 2 > > Thanks again for any help. The only thing I was able to find is some old > > posts saying asynchronous I/O was not supported in cygwin.... > > Kevin > > > Thanks for your help. I grabbed the version that was mentioned as fully tested with TSK on the TSK website. It specifically listed 3.3.6 so, as someone new to this, I was hoping to make everything as easy as possible until I reached a comfort level.... so much for that! :) Now I am getting: make[2]: Entering directory `/cygdrive/d/SANS/TSK/afflib-3.3.6/tools' g++ -DHAVE_CONFIG_H -I. -I.. -I../lib/ -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSIO N=26 -I/usr/local/include -g -O2 -MT afinfo.o -MD -MP -MF .deps/afinfo.Tpo -c -o afinfo.o afinfo.cpp afinfo.cpp: In function ‘int main(int, char**)’: afinfo.cpp:779: error: ‘start_color’ was not declared in this scope afinfo.cpp:780: warning: deprecated conversion from string constant to ‘char*’ make[2]: *** [afinfo.o] Error 1 make[2]: Leaving directory `/cygdrive/d/SANS/TSK/afflib-3.3.6/tools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/cygdrive/d/SANS/TSK/afflib-3.3.6' make: *** [all] Error 2 I haven't had time to look into it any further, but I'll be back to attacking this tomorrow. If a newer version of AFFLIB works fine, then I will grab a newer version. Thanks for your patience and help. Kevin |