Hello, in working on GNU Inetutils I have been forced to observe that the autoconfiguration fails for OpenBSD or FreeBSD in two instances (for which I see a solution), and that these ought to be mended by Gnulib.
Tests related to utmp and openpty/forkpty, which are activated by the configure script, fail primarily due to the missing inclusion of "<sys/types.h>" in the generated test sources "conftest.c". This header file is not automatically included in BSD, like it would be in GNU/Linux, thus the failure. 1. m4/readutmp.m4 This concerns OpenBSD and FreeBSD. The test must be reformulated using #ifdef HAVE_UTMP_H # if [...] # endif # include <sys/types.h> # include <utmp.h> #endif 2. m4/pty.m4 Here only FreeBSD is relevant. Four times the proper header file inclusion must read #ifdef HAVE_LIBUTIL_H # include <sys/types.h> # include <libutil.h> #endif Best regards, Mats Erik Andersson, fil. dr