Linking BlackBox

Post Reply
Zinn
Posts: 476
Joined: Tue Mar 25, 2014 5:56 pm
Location: Frankfurt am Main
Contact:

Linking BlackBox

Post by Zinn »

When I link Blackbox the second time without any change in the source, the second BlackBox.exe file has a different checksum to the first BlackBox.exe file.
Is it a future or is it a bug?
This question arise because we still have a lot of trouble with false positive detection of some virus scanner.
- Helmut
Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: Linking BlackBox

Post by Ivan Denisov »

I have just made an experiment. I have built BlackBox several times and each exe gave different md5sum.

Code: Select all

ivan@dell:~/desktop/blackbox-1.7.1-b1.940$ md5sum BlackBox4.exe
f8a33bc10e54824489c8c829321a885d  BlackBox4.exe
ivan@dell:~/desktop/blackbox-1.7.1-b1.940$ md5sum BlackBox5.exe
582de638e0b09615d5a8e0ad0fc01dc1  BlackBox5.exe
ivan@dell:~/desktop/blackbox-1.7.1-b1.940$ md5sum BlackBox6.exe
81a6ae5aa1bbff993aedaa0b3b990584  BlackBox6.exe
DevLinker uses timestamp during the compilation process:

Code: Select all

Dialog.ShowStatus("linking");
timeStamp := TimeStamp();
...
Write4(timeStamp); (* time/date *)
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

Re: Linking BlackBox

Post by Josef Templ »

Zinn wrote:When I link Blackbox the second time without any change in the source, the second BlackBox.exe file has a different checksum to the first BlackBox.exe file.
Is it a future or is it a bug?
This question arise because we still have a lot of trouble with false positive detection of some virus scanner.
- Helmut
This results from putting a timestamp into the exe file.
You can see it in the context menu (click mouse right on an exe file) -> Properties -> Details: Change Date

- Josef
Zinn
Posts: 476
Joined: Tue Mar 25, 2014 5:56 pm
Location: Frankfurt am Main
Contact:

Re: Linking BlackBox

Post by Zinn »

Iwan & Josef thanks for the answer. Now I know why it is different.

We have the date and the version number in System/Rsrc/Strings.odc and the version number in Win/Rsrc/BlackBox.rc.

Do we need a third place?

Should be the exe file equal when nothing has changed?

- Helmut
Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: Linking BlackBox

Post by Ivan Denisov »

That is the requirement of PE (exe) format. I think, that Center should follow that rules.
https://en.wikipedia.org/wiki/Portable_Executable
Post Reply