Thread: [sleuthkit-users] afflib problems
Brought to you by:
carrier
|
From: DePriest, J. R. <jrd...@gm...> - 2007-01-11 00:29:09
|
I know this isn't a newsgroup for afflib, but I figured someone here
would have an answer.
I run Sleuthkit on Cygwin on a Windows 2003 Server.
The afflib bits that are included with TSK compiled after I changed a
valloc reference to malloc.
I downloaded the source code for afflib separately because I wanted to
get at the tools to convert dd images to aff images.
I cannot get the thing to finish compiling.
I had to make the same valloc to malloc change (I am using the 2.0a15 release).
The configure script runs fine, but make fails when it gets to
afconvert with this:
USER@hostname ~/afflib-2.0a15
$ make
make all-recursive
make[1]: Entering directory `/cygdrive/c/Documents and
Settings/USER/afflib-2.0a15'
Making all in lib
make[2]: Entering directory `/cygdrive/c/Documents and
Settings/USER/afflib-2.0a15/lib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/cygdrive/c/Documents and
Settings/USER/afflib-2.0a15/lib'
Making all in tools
make[2]: Entering directory `/cygdrive/c/Documents and
Settings/USER/afflib-2.0a15/tools'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib/ -g -O2 -MT
afconvert.o -MD -MP -MF ".deps/afconvert.Tpo" -c -o afconvert.o
afconvert.cpp; \
then mv -f ".deps/afconvert.Tpo" ".deps/afconvert.Po"; else rm
-f ".deps/afconvert.Tpo"; exit 1; fi
afconvert.cpp: In function `int convert(const char*, char*)':
afconvert.cpp:386: error: `warn' undeclared (first use this function)
afconvert.cpp:386: error: (Each undeclared identifier is reported only
once for each function it appears in.)
make[2]: *** [afconvert.o] Error 1
make[2]: Leaving directory `/cygdrive/c/Documents and
Settings/USER/afflib-2.0a15/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/Documents and
Settings/USER/afflib-2.0a15'
make: *** [all] Error 2
Any fantastic ideas?
-Jason
|
|
From: Simson G. <si...@ac...> - 2007-01-11 00:35:01
Attachments:
smime.p7s
|
Hi, Jason. The newest version of AFFLIB handles this problem. The problem, of course, is that warn() isn't present in Cygwin because they are modeling the Linux environment, rather than the FreeBSD environment on which AFFLIB was developed. You can simply add this define: #define warn printf Alternatively, you should just comment out the offending lines, since the warnings are just error messages for afconvert, which you won't be using. The Configure script should have picked this up. I'm sorry that it didn't. I'll need to set up a Cygwin machine to do better validation on that platform for the next release. -Simson On Jan 10, 2007, at 7:29 PM, DePriest, Jason R. wrote: > I know this isn't a newsgroup for afflib, but I figured someone here > would have an answer. > > I run Sleuthkit on Cygwin on a Windows 2003 Server. > > The afflib bits that are included with TSK compiled after I changed a > valloc reference to malloc. > > I downloaded the source code for afflib separately because I wanted to > get at the tools to convert dd images to aff images. > > I cannot get the thing to finish compiling. > > I had to make the same valloc to malloc change (I am using the > 2.0a15 release). > > The configure script runs fine, but make fails when it gets to > afconvert with this: > > USER@hostname ~/afflib-2.0a15 > $ make > make all-recursive > make[1]: Entering directory `/cygdrive/c/Documents and > Settings/USER/afflib-2.0a15' > Making all in lib > make[2]: Entering directory `/cygdrive/c/Documents and > Settings/USER/afflib-2.0a15/lib' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/cygdrive/c/Documents and > Settings/USER/afflib-2.0a15/lib' > Making all in tools > make[2]: Entering directory `/cygdrive/c/Documents and > Settings/USER/afflib-2.0a15/tools' > if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib/ -g -O2 -MT > afconvert.o -MD -MP -MF ".deps/afconvert.Tpo" -c -o afconvert.o > afconvert.cpp; \ > then mv -f ".deps/afconvert.Tpo" ".deps/afconvert.Po"; else rm > -f ".deps/afconvert.Tpo"; exit 1; fi > afconvert.cpp: In function `int convert(const char*, char*)': > afconvert.cpp:386: error: `warn' undeclared (first use this function) > afconvert.cpp:386: error: (Each undeclared identifier is reported only > once for each function it appears in.) > make[2]: *** [afconvert.o] Error 1 > make[2]: Leaving directory `/cygdrive/c/Documents and > Settings/USER/afflib-2.0a15/tools' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/cygdrive/c/Documents and > Settings/USER/afflib-2.0a15' > make: *** [all] Error 2 > > Any fantastic ideas? > > -Jason > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > sleuthkit-users mailing list > https://lists.sourceforge.net/lists/listinfo/sleuthkit-users > http://www.sleuthkit.org > |
|
From: DePriest, J. R. <jrd...@gm...> - 2007-01-11 16:41:05
|
On 1/11/07, Simson Garfinkel wrote:
> Hi, Jason.
>
> The newest version of AFFLIB handles this problem. The problem, of
> course, is that warn() isn't present in Cygwin because they are
> modeling the Linux environment, rather than the FreeBSD environment
> on which AFFLIB was developed.
>
> You can simply add this define:
>
> #define warn printf
>
> Alternatively, you should just comment out the offending lines, since
> the warnings are just error messages for afconvert, which you won't
> be using.
>
> The Configure script should have picked this up. I'm sorry that it
> didn't. I'll need to set up a Cygwin machine to do better validation
> on that platform for the next release.
>
> -Simson
>
>
Thanks! That worked for those errors, but now I get this:
$ make all
make all-recursive
make[1]: Entering directory `/cygdrive/c/Documents and
Settings/USER/afflib-2.0a15'
Making all in lib
make[2]: Entering directory `/cygdrive/c/Documents and
Settings/USER/afflib-2.0a15/lib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/cygdrive/c/Documents and
Settings/USER/afflib-2.0a15/lib'
Making all in tools
make[2]: Entering directory `/cygdrive/c/Documents and
Settings/USER/afflib-2.0a15/tools'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib/ -g -O2 -MT afinfo.o
-MD -MP -MF ".deps/afinfo.Tpo" -c -o afinfo.o afinfo.cpp; \
then mv -f ".deps/afinfo.Tpo" ".deps/afinfo.Po"; else rm -f
".deps/afinfo.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib/ -g -O2 -MT quads.o
-MD -MP -MF ".deps/quads.Tpo" -c -o quads.o quads.cpp; \
then mv -f ".deps/quads.Tpo" ".deps/quads.Po"; else rm -f
".deps/quads.Tpo"; exit 1; fi
g++ -g -O2 -L/usr/lib -lcurl -L/usr/lib -lssl -lcrypto -lz -o
afinfo.exe afinfo.o quads.o ../lib/libafflib.a -lexpat -lcurl
-lcrypto -lssl -lz -lncurses -lreadline
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib/ -g -O2 -MT
afsegment.o -MD -MP -MF ".deps/afsegment.Tpo" -c -o afsegment.o
afsegment.cpp; \
then mv -f ".deps/afsegment.Tpo" ".deps/afsegment.Po"; else rm
-f ".deps/afsegment.Tpo"; exit 1; fi
In file included from afsegment.cpp:55:
../lib/afflib_i.h:137: error: previous declaration of `void err(int,
const char*, ...)' with C++ linkage
/usr/include/err.h:22: error: conflicts with new declaration with C linkage
../lib/afflib_i.h:138: error: previous declaration of `void errx(int,
const char*, ...)' with C++ linkage
/usr/include/err.h:23: error: conflicts with new declaration with C linkage
make[2]: *** [afsegment.o] Error 1
make[2]: Leaving directory `/cygdrive/c/Documents and
Settings/USER/afflib-2.0a15/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/Documents and
Settings/USER/afflib-2.0a15'
make: *** [all] Error 2
|
|
From: Simson G. <si...@ac...> - 2007-01-11 16:51:19
|
Hi, Jason. Sorry that you are continuing to have problems. Maintaining software that compiles on the 1000-or-so different versions of Linux out there, including the versions of Linux that are hosted under Windows, is proving to be quite a challenge. It appears that your Cygwin installation includes a definition for err.h, even though many versions do not. It is a flaw in the configuration script that we are not picking this up. In the meantime, you might try commenting out the definition of errx and err on line 137 and 138 of afflib_i.h. Please send your response to me directly and not to the list. In the meantime, I will prepare a new version of afflib that deals with this. -Simson On Jan 11, 2007, at 11:41 AM, DePriest, Jason R. wrote: > On 1/11/07, Simson Garfinkel wrote: >> Hi, Jason. >> >> The newest version of AFFLIB handles this problem. The problem, of >> course, is that warn() isn't present in Cygwin because they are >> modeling the Linux environment, rather than the FreeBSD environment >> on which AFFLIB was developed. >> >> You can simply add this define: >> >> #define warn printf >> >> Alternatively, you should just comment out the offending lines, since >> the warnings are just error messages for afconvert, which you won't >> be using. >> >> The Configure script should have picked this up. I'm sorry that it >> didn't. I'll need to set up a Cygwin machine to do better validation >> on that platform for the next release. >> >> -Simson >> >> > > Thanks! That worked for those errors, but now I get this: > > $ make all > make all-recursive > make[1]: Entering directory `/cygdrive/c/Documents and > Settings/USER/afflib-2.0a15' > Making all in lib > make[2]: Entering directory `/cygdrive/c/Documents and > Settings/USER/afflib-2.0a15/lib' > make[2]: Nothing to be done for `all'. > make[2]: Leaving directory `/cygdrive/c/Documents and > Settings/USER/afflib-2.0a15/lib' > Making all in tools > make[2]: Entering directory `/cygdrive/c/Documents and > Settings/USER/afflib-2.0a15/tools' > if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib/ -g -O2 -MT afinfo.o > -MD -MP -MF ".deps/afinfo.Tpo" -c -o afinfo.o afinfo.cpp; \ > then mv -f ".deps/afinfo.Tpo" ".deps/afinfo.Po"; else rm -f > ".deps/afinfo.Tpo"; exit 1; fi > if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib/ -g -O2 -MT quads.o > -MD -MP -MF ".deps/quads.Tpo" -c -o quads.o quads.cpp; \ > then mv -f ".deps/quads.Tpo" ".deps/quads.Po"; else rm -f > ".deps/quads.Tpo"; exit 1; fi > g++ -g -O2 -L/usr/lib -lcurl -L/usr/lib -lssl -lcrypto -lz -o > afinfo.exe afinfo.o quads.o ../lib/libafflib.a -lexpat -lcurl > -lcrypto -lssl -lz -lncurses -lreadline > if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib/ -g -O2 -MT > afsegment.o -MD -MP -MF ".deps/afsegment.Tpo" -c -o afsegment.o > afsegment.cpp; \ > then mv -f ".deps/afsegment.Tpo" ".deps/afsegment.Po"; else rm > -f ".deps/afsegment.Tpo"; exit 1; fi > In file included from afsegment.cpp:55: > ../lib/afflib_i.h:137: error: previous declaration of `void err(int, > const char*, ...)' with C++ linkage > /usr/include/err.h:22: error: conflicts with new declaration with C > linkage > ../lib/afflib_i.h:138: error: previous declaration of `void errx(int, > const char*, ...)' with C++ linkage > /usr/include/err.h:23: error: conflicts with new declaration with C > linkage > make[2]: *** [afsegment.o] Error 1 > make[2]: Leaving directory `/cygdrive/c/Documents and > Settings/USER/afflib-2.0a15/tools' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/cygdrive/c/Documents and > Settings/USER/afflib-2.0a15' > make: *** [all] Error 2 > |