Chris Weiss
2004-Jul-29 16:51 UTC
[Dovecot] Problems compiling PHP --with-imap - can't find rfc822.h
I'm trying to add webmail (IMP/HORDE) to my OpenBSD 3.5 mail server (Procmail/Amavid/SA/DCC/Razor/Dovecot 0.99.10.7), which means adding PHP and several other libraries. I'm building PHP 4.3 from the ports tree and, as per the IMP/HORDE readme files, added --with-imap to the makefile. Makeing PHP barfs with a "Cannot find rfc822.h. Please check your IMAP installation." error. I did some digging around and this seems to be part of Courier-IMAP and Mutt, but not part of Dovecot. Can this header file just be grabbed from Courier or Mutt and dropped into /usr/include? Is there something else that's got to be done here?
Jethro R Binks
2004-Jul-29 17:09 UTC
[Dovecot] Problems compiling PHP --with-imap - can't find rfc822.h
On Thu, 29 Jul 2004, Chris Weiss wrote: [...]> I'm building PHP 4.3 from the ports tree and, as per the IMP/HORDE > readme files, added --with-imap to the makefile. Makeing PHP barfs > with a "Cannot find rfc822.h. Please check your IMAP installation." > error. I did some digging around and this seems to be part of > Courier-IMAP and Mutt, but not part of Dovecot. Can this header file > just be grabbed from Courier or Mutt and dropped into /usr/include? Is > there something else that's got to be done here?You usually need UW c-client installed for the PHP IMAP functions; part of my instructions for that include: cp c-client/c-client.a /usr/local/lib/libc-client.a chmod 644 /usr/local/lib/libc-client.a cp c-client/c-client.h c-client/rfc822.hc-client/mail.h \ c-client/linkage.h /usr/local/include/ chmod 644 /usr/local/include/c-client.h /usr/local/include/rfc822.h \ /usr/local/include/linkage.h /usr/local/include/mail.h which suggests c-client install itself doesn't copy this header file somewhere useful (at the time I last did this install anyway, which was some years probably); although perhaps your port will handle this step for you. Jethro. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Jethro R Binks Computing Officer, IT Services University Of Strathclyde, Glasgow, UK
Juergen Daubert
2004-Jul-29 17:21 UTC
[Dovecot] Problems compiling PHP --with-imap - can't find rfc822.h
On Thu, Jul 29, 2004 at 09:51:12AM -0700, Chris Weiss wrote:> I'm trying to add webmail (IMP/HORDE) to my OpenBSD 3.5 mail server > (Procmail/Amavid/SA/DCC/Razor/Dovecot 0.99.10.7), which means adding > PHP and several other libraries. > > I'm building PHP 4.3 from the ports tree and, as per the IMP/HORDE > readme files, added --with-imap to the makefile. Makeing PHP barfs > with a "Cannot find rfc822.h. Please check your IMAP installation." > error. I did some digging around and this seems to be part of > Courier-IMAP and Mutt, but not part of Dovecot. Can this header file > just be grabbed from Courier or Mutt and dropped into /usr/include? Is > there something else that's got to be done here?No, you must build uw-imap and copy linkage.h, rfc822.h and mail.h to /usr/include and the static c-client.a library to /usr/lib/libc-client.a Greetings Juergen -- juergen.daubert at t-online.de