Are you saying that the error message, "BerkeleyDB needs compatible versions of libdb & db.h" comes from pm_berkeleydb itself, NOT amavis? In which case, the bug is actually a misfile?