Created attachment 885038 [details] build.log Fails to build with USE='-server' but builds ok with USE='server'. [...] make[1]: Entering directory '/var/tmp/portage/net-mail/cyrus-imapd-3.4.5-r1/work/cyrus-imapd-3.4.5' Making all in . make[2]: Entering directory '/var/tmp/portage/net-mail/cyrus-imapd-3.4.5-r1/work/cyrus-imapd-3.4.5' powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/net-mail/cyrus-imapd-3.4.5-r1/work/cyrus-imapd-3.4.5/com_err/et -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/libexec\" -DSBIN_DIR=\"/usr/sbin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -fvisibility=hidden -O2 -mcpu=970 -mtune=970 -pipe -fno-toplevel-reorder -c -o imtest/imtest-imtest.o `test -f 'imtest/imtest.c' || echo './'`imtest/imtest.c /bin/sh ./libtool --tag=CC --mode=compile powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/net-mail/cyrus-imapd-3.4.5-r1/work/cyrus-imapd-3.4.5/com_err/et -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/libexec\" -DSBIN_DIR=\"/usr/sbin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -fvisibility=hidden -O2 -mcpu=970 -mtune=970 -pipe -fno-toplevel-reorder -c -o lib/lib_libcyrus_la-acl.lo `test -f 'lib/acl.c' || echo './'`lib/acl.c libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/net-mail/cyrus-imapd-3.4.5-r1/work/cyrus-imapd-3.4.5/com_err/et -I. -I./lib -I. -I./lib -DLIBEXEC_DIR=\"/usr/libexec\" -DSBIN_DIR=\"/usr/sbin\" -DSYSCONF_DIR=\"/etc\" -DHAVE_CONFIG_H -fvisibility=hidden -O2 -mcpu=970 -mtune=970 -pipe -fno-toplevel-reorder -c lib/acl.c -fPIC -DPIC -o lib/.libs/lib_libcyrus_la-acl.o lib/acl.c:54:10: fatal error: imap/imap_err.h: No such file or directory 54 | #include "imap/imap_err.h" | ^~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [Makefile:5795: lib/lib_libcyrus_la-acl.lo] Error 1 make[2]: Leaving directory '/var/tmp/portage/net-mail/cyrus-imapd-3.4.5-r1/work/cyrus-imapd-3.4.5' make[1]: *** [Makefile:6966: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-mail/cyrus-imapd-3.4.5-r1/work/cyrus-imapd-3.4.5' make: *** [Makefile:3239: all] Error 2 * ERROR: net-mail/cyrus-imapd-3.4.5-r1::gentoo failed (compile phase): * emake failed
Created attachment 885039 [details] emerge --info
I have the same on AMD64 As I always use it as "server", I never noticed this. I also see the issue with 3.8.1-r1.
Got a possible fix, but won't be able to test this today anymore. If you're in a hurry, you can try the following (in short, I move the "imap/imap_err.h" line from the " if SERVER " section to the generic one. Compile works, but will need to add this to the ebuild properly to test fully. diff --git a/Makefile.am b/Makefile.am index 9f60a92f1..1009bc47f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -85,7 +85,8 @@ AM_DISTCHECK_CONFIGURE_FLAGS = \ BUILT_SOURCES = \ lib/imapopts.c \ - lib/imapopts.h + lib/imapopts.h \ + imap/imap_err.h CLEANFILES = \ lib/chartable.c \ @@ -149,7 +150,6 @@ BUILT_SOURCES += \ imap/http_err.c \ imap/http_err.h \ imap/imap_err.c \ - imap/imap_err.h \ imap/lmtp_err.c \ imap/lmtp_err.h \ imap/mupdate_err.c \