Re: [sleuthkit-users] afflib problems
Brought to you by:
carrier
|
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 > |