Thread: [sleuthkit-users] problem compiling sleuthkit 2.07 on cygwin
Brought to you by:
carrier
|
From: DePriest, J. R. <jrd...@gm...> - 2006-12-17 08:08:33
|
I have been successfully running 2.06 on cygwin.
I downloaded the source code for 2.07 and it will not compile.
The errors I receive are:
make[1]: Entering directory `/incoming/sleuthkit-2.07/src/afflib/lib'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lzma443/C
-I../lzma443/C/7zip/Compress/LZMA_Alone -g -O2
-MT aff_db.o -MD -MP -MF ".deps/aff_db.Tpo" -c -o aff_db.o aff_db.cpp;
\
then mv -f ".deps/aff_db.Tpo" ".deps/aff_db.Po"; else rm -f
".deps/aff_db.Tpo"; ex it 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lzma443/C
-I../lzma443/C/7zip/Compress/LZMA_Alone -g -O2
-MT aff_toc.o -MD -MP -MF ".deps/aff_toc.Tpo" -c -o aff_toc.o
aff_toc.cpp; \
then mv -f ".deps/aff_toc.Tpo" ".deps/aff_toc.Po"; else rm -f
".deps/aff_toc.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lzma443/C
-I../lzma443/C/7zip/Compress/LZMA_Alone -g -O2
-MT afflib.o -MD -MP -MF ".deps/afflib.Tpo" -c -o afflib.o afflib.cpp;
\
then mv -f ".deps/afflib.Tpo" ".deps/afflib.Po"; else rm -f
".deps/afflib.Tpo"; ex it 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lzma443/C
-I../lzma443/C/7zip/Compress/LZMA_Alone -g -O2
-MT afflib_os.o -MD -MP -MF ".deps/afflib_os.Tpo" -c -o afflib_os.o
afflib_os. cpp; \
then mv -f ".deps/afflib_os.Tpo" ".deps/afflib_os.Po"; else rm
-f ".deps/afflib_os .Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lzma443/C
-I../lzma443/C/7zip/Compress/LZMA_Alone -g -O2
-MT afflib_pages.o -MD -MP -MF ".deps/afflib_pages.Tpo" -c -o
afflib_pages.o a fflib_pages.cpp; \
then mv -f ".deps/afflib_pages.Tpo" ".deps/afflib_pages.Po";
else rm -f ".deps/aff lib_pages.Tpo"; exit 1; fi
afflib_pages.cpp: In function `aff_pagebuf* af_cache_alloc(AFFILE*, int64)':
afflib_pages.cpp:542: error: `valloc' undeclared (first use this function)
afflib_pages.cpp:542: error: (Each undeclared identifier is reported
only once for each fu nction it appears in.)
make[1]: *** [afflib_pages.o] Error 1
make[1]: Leaving directory `/incoming/sleuthkit-2.07/src/afflib/lib'
Error: Missing lib/libafflib.a file
make: *** [no-perl] Error 1
The file it says it not there really is not there.
What else can I provide that would be helpful?
I have tried this on two different systems, both running Windows 2003
Enterprise Server and cygwin 1.5.22(0.156/4/2)
Thanks!
-Jason
|
|
From: DePriest, J. R. <jrd...@gm...> - 2006-12-17 09:17:23
|
On 12/17/06, DePriest, Jason R. wrote: > I have been successfully running 2.06 on cygwin. > > I downloaded the source code for 2.07 and it will not compile. > Source code compiles just fine on a Debian GNU/Linux system. Just breaks on cygwin. Any other cygwin users having the same problem? -Jason |
|
From: Simson G. <si...@ac...> - 2006-12-17 14:54:29
|
Hi. Cygwin is sometimes a problem. Here, in particular, the problem is that valloc() is not part of cygwin, but it is part of most modern Unix distributions. You can simply change "valloc" to "malloc" in line 542 of afflib_pages.cpp to fix the problem. The new release of AFFLIB also fixes this problem. You can download that from afflib.org. -Simson -Simson On Dec 17, 2006, at 4:17 AM, DePriest, Jason R. wrote: > On 12/17/06, DePriest, Jason R. wrote: >> I have been successfully running 2.06 on cygwin. >> >> I downloaded the source code for 2.07 and it will not compile. >> > > Source code compiles just fine on a Debian GNU/Linux system. Just > breaks on cygwin. > > Any other cygwin users having the same problem? > > -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: Brian C. <ca...@sl...> - 2006-12-18 16:09:11
|
This was my fault. The system I built the release file from did not have the afflib directory synced up with the lastest version. You can download the latest AFFLIB, open it, rename the directory to 'afflib', replace the existing src/afflib directory with it, and compile again. I'll do a new release at the end of the week. brian Simson Garfinkel wrote: > Hi. Cygwin is sometimes a problem. Here, in particular, the problem > is that valloc() is not part of cygwin, but it is part of most modern > Unix distributions. > > You can simply change "valloc" to "malloc" in line 542 of > afflib_pages.cpp to fix the problem. > > The new release of AFFLIB also fixes this problem. You can download > that from afflib.org. > > -Simson > > > > -Simson > On Dec 17, 2006, at 4:17 AM, DePriest, Jason R. wrote: > >> On 12/17/06, DePriest, Jason R. wrote: >>> I have been successfully running 2.06 on cygwin. >>> >>> I downloaded the source code for 2.07 and it will not compile. >>> >> Source code compiles just fine on a Debian GNU/Linux system. Just >> breaks on cygwin. >> >> Any other cygwin users having the same problem? >> >> -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 >> > > > ------------------------------------------------------------------------- > 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...> - 2006-12-18 22:14:11
|
On 12/18/06, Brian Carrier wrote: > This was my fault. The system I built the release file from did not > have the afflib directory synced up with the lastest version. > > You can download the latest AFFLIB, open it, rename the directory to > 'afflib', replace the existing src/afflib directory with it, and compile > again. > > I'll do a new release at the end of the week. > > brian > > Simson Garfinkel wrote: > > Hi. Cygwin is sometimes a problem. Here, in particular, the problem > > is that valloc() is not part of cygwin, but it is part of most modern > > Unix distributions. > > > > You can simply change "valloc" to "malloc" in line 542 of > > afflib_pages.cpp to fix the problem. > > > > The new release of AFFLIB also fixes this problem. You can download > > that from afflib.org. > > > > -Simson > > I did both. I downloaded the new release and changed valloc to malloc. It worked fine after that. Thanks! -Jason |