reopen 625985 = found 625985 5.4.3~dfsg-2.6 tags 625985 + patch thanks On 20/11/12 21:35, David Prévot wrote: > net-snmp FTBFS on kfreebsd-*. Seems like #625985 is back, reporter of > that bug, who fixed it via an NMU, in CC too. Thanks in advance if > someone could fix it or put me in the right track to do it myself.
Hi, I wonder if this has to do with compiler version that was used, and resulting availability/use of the kd symbol. The kFreeBSD code defines it as static within a function, whereas other code uses it as an extern (since 2000-03-04 according to upstream's changelog entry...) With the attached patch it builds again on kfreebsd-amd64, snmpd at least seems to be working and I can query it with snmpwalk. Regards, -- Steven Chamberlain ste...@pyro.eu.org
Index: net-snmp-5.4.3~dfsg/agent/mibgroup/hardware/memory/memory_freebsd.c =================================================================== --- net-snmp-5.4.3~dfsg.orig/agent/mibgroup/hardware/memory/memory_freebsd.c 2008-05-28 12:48:46.000000000 +0100 +++ net-snmp-5.4.3~dfsg/agent/mibgroup/hardware/memory/memory_freebsd.c 2012-11-20 22:23:34.693203872 +0000 @@ -205,11 +205,12 @@ #include <sys/conf.h> +kvm_t *kd = NULL; + int swapmode(long pagesize) { int i, n; - static kvm_t *kd = NULL; struct kvm_swap kswap[16]; netsnmp_memory_info *mem; char buf[1024];
signature.asc
Description: OpenPGP digital signature