mysql-4.0.1_alpha, when USE="berkdb", requires db-3.2.3h or db-3.2.9a, not db-3.* as stated in the ebuild.
thx for the tip... committed.