Encountered this issue when using the code available here on a PiDP-11 using a Raspberry Pi 3B+ running the 64bit version of Raspberry Pi OS Bookworm.
There was a discussion about this in the google group some years ago, and a patch was posted there to fix this issue:
https://groups.google.com/g/pidp-11/c/xqBhnLktDsk/m/QG1u-8QzBwAJ
But unfortunately it looks like the patch isn't included in the version of the source that is provided in this repo.
Would it be possible to add the patch from the google group to avoid that people have to apply it themselves?