When compiled with gcc >=10, dosemu 1.4 segfaults on startup, when it tries to write to a couple of "const" global variables by casting away the const. I've attached a patch that fixes it.
This is also reported and discussed in at least two other places:
https://bugs.gentoo.org/show_bug.cgi?id=890302
https://bugzilla.redhat.com/show_bug.cgi?id=1866474
New Release?
I'm aware that a "dosemu2" is under active development ( https://github.com/dosemu2/dosemu2 ), but it isn't clear when it will finally be released. While waiting in the meantime, it might be nice to have a 1.4.1 or 1.4.2 release that just fixes compatibility with modern compilers and related build tools, to tide over users. Any chance that could happen?
In addition to my patch, I've noticed that Gentoo already has over half a dozen short patches that look like build fixes, although I wasn't involved and don't know much about them: See https://gitweb.gentoo.org/repo/gentoo.git/tree/app-emulation/dosemu/files . I expect other distributions probably have similar growing lists. A new release that just included a curated collection of such build fixes would be nice.