Re: [sleuthkit-users] statically compiling sleuthkit
Brought to you by:
carrier
From: farmer d. <far...@ya...> - 2013-12-21 03:44:14
|
Kalin, Been a while since I've statically linked The Sleuth Kit. But years back you could do it by setting your environment correctly, via; 1) untar the archive 2) change into The Sleuth Kit directory 3) issue: make CC='gcc -static' Depending upon your Linux environment prior to executing the above you may end up having to tweak any number of settings, including: CFLAGS=-static LDFLAGS=-static ./configure --enable-static --disable shared --disable-nls etc. make LDFLAGS=-all-static make CC='gcc -static' ETC. But remember, even if you cannot get it statically linked you can set your load path to be your trusted libraries so that your known good libraries are used. Cheers! farmerdude -------------------------------------------- On Fri, 12/20/13, Kalin KOZHUHAROV <me....@gm...> wrote: Subject: Re: [sleuthkit-users] statically compiling sleuthkit To: "Simson Garfinkel" <si...@ac...> Cc: "Brian Carrier" <ca...@sl...>, sle...@li... Date: Friday, December 20, 2013, 8:53 PM Hello Simson, On Dec 21, 2013 12:06 AM, "Simson Garfinkel" <si...@ac...> wrote: > You sent us the commands that you sent but not the output after they ran. > Yes, I intentionally did that, will post more later. > My guess is that the configure script won’t make a static linked executable unless you have all of the necessary static libraries installed on your system. > I am almost certain I don't have all those statically linked, great guess! I am willing to spend some time on fixing this, but is there a simple fix of the Makefiles so that build fails if one of them is missing? Then I can rinse-n-repeat until I have all deps cleared. > Can you verify that you have libz.a, libdl.a, libstdc++.a, libgcc_s.a, libc.a, and the others? There may be version number issues and 32/64 bit issues as well. > Alternatively, is there a programmatic way to list all those dependencies? Kalin. -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk -----Inline Attachment Follows----- _______________________________________________ sleuthkit-users mailing list https://lists.sourceforge.net/lists/listinfo/sleuthkit-users http://www.sleuthkit.org |