Adding #include <vis.h> to includes.h fixed the problem. The lack of the included file broke log.c during the build.
Double entry of same issue *** This bug has been marked as a duplicate of 671 ***
Mass change of RESOLVED bugs to CLOSED