The makefile builds several source files in the numlib directory (including atotimet.c), but when ar goes to combine the object files into a library, it complains that atotimet.o is missing. Reproducible: Always Steps to Reproduce: 1. emerge courier-imap At first, I figured maybe ccache and/or distcc were interfering, but disabling them doesn't fix the problem. Actual Results: Making all in numlib make[2]: Entering directory `/var/tmp/portage/courier-imap-4.0.1-r1/work/courier-imap-4.0.1/numlib' make all-am make[3]: Entering directory `/var/tmp/portage/courier-imap-4.0.1-r1/work/courier-imap-4.0.1/numlib' Compiling atotimet.c Compiling atouidt.c Compiling changeuidgid.c Compiling strdevt.c Compiling strgidt.c Compiling strhdevt.c Compiling strhinot.c Compiling strhpidt.c Compiling strhtimet.c Compiling strinot.c Compiling strofft.c Compiling strpidt.c Compiling strsize.c Compiling strsizet.c Compiling strtimet.c Compiling struidt.c Linking libnumlib.la Linking libnumlibs.la rm -f libshnumlib.a cd .libs && ar rv ../libshnumlib.a atotimet.o atouidt.o changeuidgid.o strdevt.o strgidt.o strhdevt.o strhinot.o strhpidt.o strhtimet.o strinot.o strofft.o strpidt.o strsize.o strsizet.o strtimet.o struidt.o ar: creating ../libshnumlib.a ar: atotimet.o: No such file or directory make[3]: *** [libshnumlib.a] Error 1 Expected Results: built a newer version of courier-imap (currently using 2.1.2-r1)
I upgraded to courier-imap 3.0.8 yesterday (all this was part of an emerge world on a fairly old system). I decided this morning to give v4.0.1 another shot, and this time it built without any problems. I still don't know why it wouldn't build yesterday, but it appears to be fixed now. Maybe it needed 3.0.8 installed as an intermediate version first. Maybe there were other packages installed by emerge world that needed to be upgraded first (though looking at the list, I can't see anything that should affect courier-imap).
I had exactly the same problem, and it solved exactly the same way (first upgraded to 3.0.8 and then to 4.0.1). It could have also been that it depended on other packages to be upgraded first too.