when you got gamin instead of fam in your system, which is 100% library compatible with fam and you compile courier-imap with fam it tries to link against the fam lib libfam.so instead of libgamin-1.so. Files that need to be changed: ./maildir/configure.in and ./maildir/configure. replace -lfam with -lgamin-1. if you change those files before configure: 1 courier-imap starts and 2 the gamin service is run and working as it should. Reproducible: Always
I might have been a bit quick there.. I had both fam and gamin in my system, and so I thought that when it linked against fam that was wrong... in my case it was, but usually libfam libs are from the gamin package. so this is probably a non issue. however the init script tries to start the famd daemon.
Closing INVALID; this has worked just fine out-of-the-box for ages. Plus it's plain impossible to install fam *and* gamin at the same time via portage, they block each other.