berkdb.m4 in the cyrus-imapd sources needs to be fixed to look for db 4.7. Otherwise, when it's built against current rawhide, it uses db 4.7 header files but links against older db libraries and won't run.