MD5SUM

AMIGASYSTEM · 577

AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3740
    • Karma: +69/-2
  • AROS One
    • AROS One
on: June 03, 2023, 03:15:59 AM
I have successfully compiled the MD5SUM program, a small utility that allows you to build checksums on text or binary files, using the "MD5 Message Digest Algorithm."

On AROS One x86 with Dopus4 it will also be possible to get MD5 values to a group of files with a single click, see screenshot

If in the compilation I run GCC with the parameter "Wall" (to check for errors) , i get an error, what is it? (see screenshot)


« Last Edit: June 03, 2023, 03:47:38 AM by AMIGASYSTEM »



Mazze

  • Junior Member
  • **
    • Posts: 88
    • Karma: +36/-0
Reply #1 on: June 03, 2023, 06:12:59 AM
Did you compile this: http://aminet.net/package/util/crypt/MD5SUM ?

Change

void
main(int argc, char **argv)

to

int
main(int argc, char **argv)

If the compiler complains about a missing return value add "return 0;" to the end of the main function.



AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3740
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #2 on: June 03, 2023, 07:20:09 AM
Did you compile this: http://aminet.net/package/util/crypt/MD5SUM ?

Change

void
main(int argc, char **argv)

to

int
main(int argc, char **argv)


Thanks Mazze, yes it was MD5SUM posted on Aminet, now with your advice, the compilation happened without errors with GCC installed on AROS One x86.


Posteṛ l'archivio MD5SUM e i sorgenti corretti su Aros Archive


AMIGASYSTEM

  • Global Moderator
  • Legendary Member
  • *****
    • Posts: 3740
    • Karma: +69/-2
  • AROS One
    • AROS One
Reply #3 on: June 03, 2023, 09:22:04 AM
Improved the command on Dopus4, now you can give a Name to the "Data" file that contains the "MD5" values of one or more files, the file is saved on the second window (any volume you choose)

There is also a "sub-button" to generate "MD5" values for "Binary" files (parameter -b)