There must be some earlier error in build log. Could you put whole build log somewhere on the web?
Just few things to check: 1. Is /usr/include/c-client/rfc822.h present on your system? 2. Does /usr/include/c-client/rfc822.h contains declaration of RFC822BUFFER? 3. Is there some other version of libc-client-dev installed in /usr/local or somewhere else? Current php5 builds imap module just fine in unstable pbuilder. Ondrej -- Ondřej Surý <[EMAIL PROTECTED]>

