I'm trying to compile Cyrus imapd from source because I want to enable jmap. <waves at jmappers> Having a couple problems doing this.
Using the procedure at http://www.cyrusimap.org/imap/developer/compiling.html on Debian Bookworm:
1. Running the command
autoreconf -i -s
, I keep getting warnings about a bunch of macros being obsolete, interspersed with messages telling me to run autoupdate. I have run autoupdate, but still get the warnings. Not sure whether these should be ignored or not.2. Get the following error:
configure: error: Unit tests explicitly requested, but CUnit library is not installed
I'm not familiar with CUnit, so I looked for a Debian package by that name. Closest thing was libcunit1, which I installed but didn't fix the error. Ended up working around this by removing --enable-unit-tests from the configure command, which was successful. Is there a reason for people just compiling imapd to enable unit tests?
3. The make command fails with an error:
imap/mbpath.c:119:13: error: ‘find_tier’ defined but not used [-Werror=unused-function] 119 | static void find_tier(const char *key, const char *val __attribute__((unused)), void *rock) | ^~~~~~~~~
This one is curious; both the definition and use of the function are inside a
#ifdef USE_XAPIAN
conditional. Any thoughts on what would be causing this?I'll probably be back with more questions once I get past this...
-Jim