FYI, I hit one of these diagnostics a couple of months ago,
so improved them:
>From cbd4dafd96be16e8e727663decb1002883813483 Mon Sep 17 00:00:00 2001
From: Jim Meyering
Date: Sun, 27 Jan 2013 09:54:55 -0800
Subject: [PATCH] prefix-gnulib-mk: give better diagnostics
* build-aux/prefix-gnulib-mk:
On 03/11/2013 01:35 AM, Gary V. Vaughan wrote:
> On all the AIX machines I have access to, with all compiler optimisations
> turned off, I get this:
>
> Referring to:
>
> 71 errno = 0;
> 72 ASSERT (lseek (fd2, 0, SEEK_CUR) == -1);
> 73 ASSERT (errno == EBADF);
I'm getting an error about rpl_gethostname undefined when compiling
Octave for MinGW. HAVE_GETHOSTNAME is 1, so the AC_LIBOBJ macro from
the module/gethostname file is not used, but unistd.in.h is checking
GNULIB_GETHOSTNAME, which is also defined to 1. So the macros there are
expanded and I