Compiling PHP –with-cyrus
I’ve been struggling with a compilation error for a few days trying to compile PHP on a new server. The error I had been getting was ” undefined reference to `assertionfailed’” and I had not had much luck tracking down an answer.
Until just now. I found this post on a mailing list that said PHP hasn’t upgraded their module for the 2.2 libcyrus. The message was from back in May 2003, but it was in a thread regarding a similar problem to mine. I figured I’d give it a go as there wasn’t really anything to lose if it didnt work. And just because I was compiling PHP linked to an older version of Cyrus-IMAP didnt mean that I couldn’t use the updated version for the IMAP server.
I downloaded cyrus-imap-2.1.18 and installed it to a different location to where I have my main Cyrus-IMAP install. Then adjusted my PHP configure line to point to that version. Reran configure for php with my options and then compiled it. It all compiled and installed cleanly.
I still find it a little annoying that to compile a PHP release that is only 1 month old with IMAP support I need to revert to a version of Cyrus-IMAP that is over a year old. There have been 9 releases ahead of the one that I needed to use. I mean come on guys, how long is it going to take before PHP is upgraded to a newer version of Cyrus-IMAP??