[Openswan dev] md5sum of binaries are different across compilation

hiren joshi joshihirenn at gmail.com
Mon Aug 25 06:50:25 EDT 2008

Thanks for your prompt replay!

Are the same sized binaries have same md5sums too?

I get the following:

make programs
cp programs/pluto/pluto .. -v
make clean
make programs
[hiren at kerneldev openswan-2.4.12]$ ls -l ../pluto programs/pluto/pluto
-rwxrwxr-x    1 hiren    hiren     1830842 Aug 25 16:03 ../pluto
-rwxrwxr-x    1 hiren    hiren     1830842 Aug 25 16:04 programs/pluto/pluto
[hiren at kerneldev openswan-2.4.12]$ md5sum ../pluto programs/pluto/pluto
a2448d5480a8bbcfd0674288fb69c373  ../pluto
4f985241a9cddd63fa7bb718c8513a95  programs/pluto/pluto

I am afraid of a small source change that can not be detected by looking at
the size of binaries.


On Wed, Aug 20, 2008 at 10:24 PM, Paul Wouters <paul at xelerance.com> wrote:

> On Wed, 20 Aug 2008, hiren joshi wrote:
>  I get different md5sum of openswan binaries (pluto for example) after
>> compilation even without any modification to source.
>> Is there any timestamp or random number input to source that changes the
>> md5sum?
>> I use md5sums to detect any change in source across builds.
>> Is there any way to get same md5sums for same source (or any other
>> method to detect the change in source)?
> No. It does not happen for me:
> make programs
> cp OBJ.linux.x86_64/programs/pluto/pluto .
> make clean
> make programs
> ls -l pluto OBJ.linux.x86_64/programs/pluto/pluto
> -rwxrwxr-x 1 paul paul 2617570 2008-08-20 13:12
> OBJ.linux.x86_64/programs/pluto/pluto
> -rwxrwxr-x 1 paul paul 2617570 2008-08-20 13:11 pluto
> Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/dev/attachments/20080825/4d6b0110/attachment.html 

More information about the Dev mailing list