tags 625985 +pending thanks On Tue, Nov 20, 2012 at 10:45:51PM +0000, Steven Chamberlain wrote: > 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. > > I wonder if this has to do with compiler version that was used, and > resulting availability/use of the kd symbol.
I can't reproduce it on asdfasdf right now, but as the code is in some freebsd specific file and it clearly FTBFS on the buildds, I don't see how it would hurt to apply this patch. I have uploaded an NMU for this to DELAYED/3-day, the debdiff is attached. Cheers, Michael
diff -Nru net-snmp-5.4.3~dfsg/debian/changelog net-snmp-5.4.3~dfsg/debian/changelog --- net-snmp-5.4.3~dfsg/debian/changelog 2012-11-18 14:24:32.000000000 +0100 +++ net-snmp-5.4.3~dfsg/debian/changelog 2012-11-24 13:31:09.000000000 +0100 @@ -1,3 +1,11 @@ +net-snmp (5.4.3~dfsg-2.7) unstable; urgency=low + + * Non-maintainer upload. + * debian/patches/27_kfreebsd_bug625985.patch: New patch, fix build error on + kfreebsd-*, by Steven Chamberlain. + + -- Michael Banck <mba...@debian.org> Sat, 24 Nov 2012 13:30:51 +0100 + net-snmp (5.4.3~dfsg-2.6) unstable; urgency=low * Non-maintainer upload. diff -Nru net-snmp-5.4.3~dfsg/debian/patches/27_kfreebsd_bug625985.patch net-snmp-5.4.3~dfsg/debian/patches/27_kfreebsd_bug625985.patch --- net-snmp-5.4.3~dfsg/debian/patches/27_kfreebsd_bug625985.patch 1970-01-01 01:00:00.000000000 +0100 +++ net-snmp-5.4.3~dfsg/debian/patches/27_kfreebsd_bug625985.patch 2012-11-24 13:29:36.000000000 +0100 @@ -0,0 +1,18 @@ +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]; diff -Nru net-snmp-5.4.3~dfsg/debian/patches/series net-snmp-5.4.3~dfsg/debian/patches/series --- net-snmp-5.4.3~dfsg/debian/patches/series 2012-05-27 17:29:54.000000000 +0200 +++ net-snmp-5.4.3~dfsg/debian/patches/series 2012-11-24 13:30:03.000000000 +0100 @@ -6,6 +6,7 @@ 08_defaultconfig.patch 25_duplicate_iftable.patch 26_kfreebsd.patch +27_kfreebsd_bug625985.patch 32_mnttab_path.patch 44_nlist_kvm.patch 56_manpage.patch