[Pkg-net-snmp-devel] Bug#753144: net-snmp: FTBFS on kfreebsd-amd64 - 'struct kinfo_proc' has no member named 'kp_eproc'

Niels Thykier niels at thykier.net
Sun Jun 29 15:40:40 UTC 2014


Source: net-snmp
Version: 5.7.2.1~dfsg-6
Severity: serious

Hi,

Your package FTBFS on kfreebsd-amd64 (but not kfreebsd-i386) with the following errors (see [LOG]):

"""
libtool: compile:  gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DNETSNMP_USE_INLINE -Ukfreebsd -Dkfreebsd=kfreebsd -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.18/CORE -c host/data_access/swrun_kinfo.c  -fPIC -DPIC -o host/data_access/.libs/swrun_kinfo.o
In file included from ../../include/net-snmp/net-snmp-config.h:2085:0,
                 from host/data_access/swrun_kinfo.c:8:
../../include/net-snmp/system/kfreebsd.h:5:0: warning: "__FreeBSD_version" redefined
 #define __FreeBSD_version __FreeBSD_kernel_version
 ^
In file included from /usr/include/sys/kern/param.h:1:0,
                 from /usr/include/osreldate.h:1,
                 from ../../include/net-snmp/system/kfreebsd.h:4,
                 from ../../include/net-snmp/net-snmp-config.h:2085,
                 from host/data_access/swrun_kinfo.c:8:
/usr/include/sys/kglue/sys/param.h:67:0: note: this is the location of the previous definition
 #define __FreeBSD_version 1000510 /* Master, propagated to newvers */
 ^
host/data_access/swrun_kinfo.c: In function 'netsnmp_arch_swrun_container_load':
host/data_access/swrun_kinfo.c:168:32: error: 'struct kinfo_proc' has no member named 'kp_proc'
         if ( 0 == proc_table[i].SWRUN_K_STAT )
                                ^
host/data_access/swrun_kinfo.c:170:57: error: 'struct kinfo_proc' has no member named 'kp_proc'
         entry = netsnmp_swrun_entry_create(proc_table[i].SWRUN_K_PID);
                                                         ^
host/data_access/swrun_kinfo.c:194:62: error: 'struct kinfo_proc' has no member named 'kp_proc'
                                           "%s", proc_table[i].SWRUN_K_COMM);
                                                              ^
host/data_access/swrun_kinfo.c:230:55: error: 'struct kinfo_proc' has no member named 'kp_proc'
         entry->hrSWRunType = (P_SYSTEM & proc_table[i].SWRUN_K_FLAG) 
                                                       ^
host/data_access/swrun_kinfo.c:263:30: error: 'struct kinfo_proc' has no member named 'kp_proc'
         switch (proc_table[i].SWRUN_K_STAT & 0xFF) {
                              ^
host/data_access/swrun_kinfo.c:280:74: error: 'struct kinfo_proc' has no member named 'kp_proc'
         snmp_log(LOG_ERR, "Bad process status %c (0x%x)\n", proc_table[i].SWRUN_K_STAT, proc_table[i].SWRUN_K_STAT);
                                                                          ^
host/data_access/swrun_kinfo.c:280:102: error: 'struct kinfo_proc' has no member named 'kp_proc'
         snmp_log(LOG_ERR, "Bad process status %c (0x%x)\n", proc_table[i].SWRUN_K_STAT, proc_table[i].SWRUN_K_STAT);
                                                                                                      ^
host/data_access/swrun_kinfo.c:315:47: error: 'struct kinfo_proc' has no member named 'kp_proc'
         entry->hrSWRunPerfCPU  = proc_table[i].kp_proc.p_uticks;
                                               ^
host/data_access/swrun_kinfo.c:316:47: error: 'struct kinfo_proc' has no member named 'kp_proc'
         entry->hrSWRunPerfCPU += proc_table[i].kp_proc.p_sticks;
                                               ^
host/data_access/swrun_kinfo.c:317:47: error: 'struct kinfo_proc' has no member named 'kp_proc'
         entry->hrSWRunPerfCPU += proc_table[i].kp_proc.p_iticks;
                                               ^
host/data_access/swrun_kinfo.c:318:47: error: 'struct kinfo_proc' has no member named 'kp_eproc'
         entry->hrSWRunPerfMem  = proc_table[i].kp_eproc.e_vm.vm_rssize;
                                               ^
Makefile:98: recipe for target 'host/data_access/swrun_kinfo.lo' failed
make[3]: *** [host/data_access/swrun_kinfo.lo] Error 1
"""

This FTBFS makes net-snmp unable to migrate to testing.

~Niels

[LOG] https://buildd.debian.org/status/fetch.php?pkg=net-snmp&arch=kfreebsd-amd64&ver=5.7.2.1~dfsg-6&stamp=1404029025



More information about the Pkg-net-snmp-devel mailing list