Gmime recently moved from 2.0 to 2.4 and broke a couple things in its wake. Namely pan and dbmail. Just hacking their configure scripts to find and use gmime-2.4 didn't work, compile errors. Anybody want to give a go at porting these to gmime-2.4?
pan will need some extra work to build, namely pan/general/log.cc and pan/general/progress.cc need an #include <stdio.h> at the top.