Hi,
Hm. I have a patch to the db4 package for sparc where I ran into the same problem, years back before my second pair of SM71s went belly-up, and I moved the installation to a B/W G3 Macintosh. db4's test routines were fine with these patches, but as nobody else appeared to run into the issue, and/or care, they still reside on my harddrive. Why you would run into the issue for m68k netbsd-7, and not earlier, though, is funny - it's not like the db4 sources have changed much recently, is it?
It seems it doesn't work on netbsd-6, either, right now, since I get the same issue on NetBSD 6.1 (netbsd-6 built at the end of 2013). But apparently it worked at some point on m68k:
http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/databases/db4/README.htmlI wonder what changed. It seems that SPARC, VAX, SH3, Alpha, and possibly others currently don't build. So sure, let's try out those patches of yours.
Thanks, John