I noticed some recent messages about problems with NetBSD and this same error (Cannot find function res_query).
I just tried to compile 3.0.0 of imapd on FreeBSD 4.9. While trying to configure authlib, I got the error. To fix it, I had to change the configure script to include <sys/types.h> before <netinet/in.h>.
I didn't see a bug database on the sourceforge site, but I figured someone might want to know.
Someone now knows. Someone would've knows this sooner had people tried any one of the numerous development builds that lead up to the 3.0.0 release.
pgp00000.pgp
Description: PGP signature