I finally found out what was going on. I'm afraid I must claim a bout of stupidity interfered with my common sense 😀
Ykhwong's Windows build worked with three of my JF2 versions. That made me wonder about my build, particularly since the patch doesn't seem to contain any OS dependent code. I suddenly realised that when I applied your patch, I noticed it referenced two source directories, dosbox-cvs and dosbox-quickpatch. After copying the latest cvs to those two directories, I then patched the code and built it. But previously I assumed after viewing the diff that the patched version was dosbox-quickpatch. I just tried to build dosbox-cvs instead and that worked perfectly with JF2. Obviously dosbox-cvs was the one patched and not dosbox-quickpatch 😀
Sorry about missing that before, but at least we've found the problem now 😀
I could submit a Linux build with this patch if somebody wants it. I'm not sure where I'd store it though, any ideas? I suppose I could just attach it here on the forum.
Thanks for your help.