Hello i got some question about kali and a from source compiled Programm.

on MacOS it?s fine the Programm ? but on kali make this source a lot of problems.

once a char defined 5 on macOS needs in kali 6 (char test[5] / char test[6])
and the output is difference from macOS ? this Programm (an enigma)
can under macOS crypt and decrypt but under kali it made ?FOOBAR?.

what?s the difference in kali that make this foobar?