this bug was masked by local experimental CFLAGS in my config.mak.
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <langinfo.h>
#include <locale.h>
#include <time.h>