[Pkg-net-snmp-devel] Bug#882676: Bug#882676: Missing modules?

Laurent Bigonville bigon at debian.org
Mon Sep 10 10:49:24 BST 2018


Le 25/11/17 à 16:34, Vincent Bernat a écrit :
>   ❦ 25 novembre 2017 16:12 +0100, Laurent Bigonville <bigon at debian.org> :
>
>> If I'm installing snmp-mibs-downloader, the messages are going away
> Dunno what xsane is trying to do, but MIBs are non-free, so it's not
> possible to add a dependency.

sane in itself is not doing anything specific, I can reproduce this with 
this trivial test case:

bigon at valinor:/tmp$ cat snmp.c
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/library/snmp_api.h>

int main(void) {
     init_snmp("foo");


     return 0;
}
bigon at valinor:/tmp$ gcc -g -O0 snmp.c -o snmp -lnetsnmp

Running the "snmp" executable show the same output as my initial bug.

Quickly looking at the code shows that net-snmp itself will load a 
default set of MIB, at configure time, I can see the following in the 
build output:

checking default mib files to read... :SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:HOST-RESOURCES-MIB:NOTIFICATION-LOG-MIB:DISMAN-EVENT-MIB:DISMAN-SCHEDULE-MIB:HOST-RESOURCES-TYPES:MTA-MIB:NETWORK-SERVICES-MIB:UCD-DISKIO-MIB:UCD-DLMOD-MIB:LM-SENSORS-MIB:UCD-SNMP-MIB:UCD-DEMO-MIB:SNMP-TARGET-MIB:NET-SNMP-AGENT-MIB:SNMP-MPD-MIB:SNMP-USER-BASED-SM-MIB:SNMP-FRAMEWORK-MIB:SNMP-VIEW-BASED-ACM-MIB:SNMP-COMMUNITY-MIB:IPV6-ICMP-MIB:IPV6-MIB:IPV6-TCP-MIB:IPV6-UDP-MIB:IP-FORWARD-MIB:NET-SNMP-PASS-MIB:NET-SNMP-EXTEND-MIB:SNMP-NOTIFICATION-MIB:SNMPv2-TM:NET-SNMP-VACM-MIB

and indeed all these MIBS are hardcoded in the library

So the problem is really in net-snmp package

Kind regards,

Laurent Bigonville

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-net-snmp-devel/attachments/20180910/215e3ba4/attachment.html>


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