El 10 de febrer de 2012 20:45, Christoph Egger <christ...@debian.org> ha escrit: > Robert Millan <r...@debian.org> writes: >> 2012/2/9, Christoph Egger <christ...@debian.org>: >>> In file included from /usr/include/net-snmp/system/kfreebsd.h:56:0, >>> from /usr/include/net-snmp/net-snmp-config.h:1766, >>> from snmp.cpp:25: >> >> Might be a bug in net-snmp-config.h. Which package provides this >> file? For some reason http://www.debian.org/distrib/packages can't >> find it. > > libsnmp-dev: /usr/include/net-snmp/net-snmp-config.h
A pair of #includes are missing. machine/param.h is required by in_pcb.h and sys/socket.h is needed by if_arp.h. See attached patch (untested). -- Robert Millan
--- a/include/net-snmp/system/kfreebsd.h +++ b/include/net-snmp/system/kfreebsd.h @@ -6,6 +6,8 @@ #include <sys/queue.h> #include <sys/_types.h> +#include <sys/socket.h> +#include <machine/param.h> typedef unsigned int tcp_seq; typedef unsigned int tcp_cc;