RE: [sleuthkit-users] Sleuthkit on Cygwin? (make fails: magic.c:192: error: storage size of `uts
Brought to you by:
carrier
From: <sle...@sh...> - 2004-07-21 19:32:13
|
On Tue, 20 Jul 2004 00:14:43 -0700, "Charles Lucas" <ch...@lu...> said: > You're not the first one to run across this... I found a fix for this > error at > http://archive.netbsd.se/?list=tech-toolchain&a=2004-05&mid=225006. Ian > Lance was kind enough to provide a patch. Aside from that, it was a > relatively painless installation. > > I recently created a tutorial on the subject: "Running Sleuthkit and > Autopsy Under Windows", at > http://www.memophage.net/Running_Sleuthkit_and_Autopsy_Under_Windows.pdf > > -Charles > > ch...@lu... Seeing as no one else is reporting trouble I'm sure it's me doing something silly, but I can't get it to patch. I get: Ben@mungo /usr/local/sleuthkit-1.70/src/file/src $ patch --verbose magic.c patch.txt Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: magic.c |=================================================================== |RCS file: /cvsroot/wasabisrc/src/dist/file/src/magic.c,v |retrieving revision 1.1.1.5 |diff -p -u -r1.1.1.5 magic.c |--- magic.c 10 May 2004 04:18:24 -0000 1.1.1.5 |+++ magic.c 21 May 2004 04:36:05 -0000 -------------------------- Patching file magic.c using Plan A... patch: **** unexpected end of file in patch My patch.txt file looks like: Index: magic.c =================================================================== RCS file: /cvsroot/wasabisrc/src/dist/file/src/magic.c,v retrieving revision 1.1.1.5 diff -p -u -r1.1.1.5 magic.c --- magic.c 10 May 2004 04:18:24 -0000 1.1.1.5 +++ magic.c 21 May 2004 04:36:05 -0000 @@ -44,14 +44,14 @@ #include <sys/mman.h> #endif -#if defined(HAVE_UTIME) +#if defined(HAVE_UTIMES) +# include <sys/time.h> +#elif defined(HAVE_UTIME) # if defined(HAVE_SYS_UTIME_H) # include <sys/utime.h> # elif defined(HAVE_UTIME_H) # include <utime.h> # endif -#elif defined(HAVE_UTIMES) -# include <sys/time.h> #endif #ifdef HAVE_UNISTD_H Can you tell me where I'm going wrong? Thanks, Ben |