the db-4.0.14 ebuild has --enable-posixmutexes passed to configure.That kill the config.The db docs say this option is rarely needed (mostly on solaris) with that line taken out it builds just fine.