<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 25/11/17 à 16:34, Vincent Bernat a
écrit :<br>
</div>
<blockquote type="cite" cite="mid:m3tvxi8j9g.fsf@luffy.cx">
<pre class="moz-quote-pre" wrap=""> ❦ 25 novembre 2017 16:12 +0100, Laurent Bigonville <a class="moz-txt-link-rfc2396E" href="mailto:bigon@debian.org"><bigon@debian.org></a> :
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">If I'm installing snmp-mibs-downloader, the messages are going away
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Dunno what xsane is trying to do, but MIBs are non-free, so it's not
possible to add a dependency.
</pre>
</blockquote>
<p>sane in itself is not doing anything specific, I can reproduce
this with this trivial test case:</p>
<pre>bigon@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@valinor:/tmp$ gcc -g -O0 snmp.c -o snmp -lnetsnmp
</pre>
<p>Running the "snmp" executable show the same output as my initial
bug.</p>
<p>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:</p>
<pre>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
</pre>
<p>and indeed all these MIBS are hardcoded in the library</p>
<p>So the problem is really in net-snmp package</p>
<p>Kind regards,</p>
<p>Laurent Bigonville<br>
</p>
</body>
</html>