On 31/05/12 00:21, Debian Bug Tracking System wrote: > #671064: nmap: FTBFS[kfreebsd]: error: 'CLOCK_MONOTONIC' undeclared > It has been closed by Hilko Bengen <ben...@debian.org>.
Ah, I'm too late! I just came up with a patch to fix the testcase that caused both these issues. I've attached it anyway in case this problem comes back. Requires an autoconf rebuild of nping/configure nmap 5.51.6-0.3 built fine anyway when I tested on kfreebsd-i386. Thanks a lot for fixing it! Regards, -- Steven Chamberlain ste...@pyro.eu.org
--- nmap-5.51.6.orig/acinclude.m4 2010-04-21 00:22:48.000000000 +0100 +++ nmap-5.51.6/acinclude.m4 2012-05-31 00:58:02.882792114 +0100 @@ -32,7 +32,7 @@ dnl around in libpcap 1.1.0 and later; but before that we must use our own copy. AC_DEFUN([PCAP_IS_SUITABLE], [ - AC_CHECK_HEADERS(sys/ioccom.h sys/time.h net/bpf.h) + AC_CHECK_HEADERS(sys/ioccom.h sys/time.h sys/types.h net/bpf.h) AC_MSG_CHECKING(if libpcap is suitable) AC_TRY_RUN([ #include <stdio.h> @@ -57,6 +57,9 @@ #ifdef HAVE_SYS_TIME_H #include <sys/time.h> #endif +#ifdef HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif #ifdef HAVE_NET_BPF_H #include <net/bpf.h> #endif