[sane-devel] New magicolor backend for inclusion in git
Reinhold Kainhofer
reinhold at kainhofer.com
Mon Jan 31 13:35:15 UTC 2011
Am Sonntag, 30. Januar 2011, um 20:31:13 schrieb m. allan noah:
> I'm trying to build this now on Fedora 14 with net-snmp enabled, and I
> get the following error:
>
> magicolor.c: In function 'mc_network_discovery_handle':
> magicolor.c:1800:2: error: 'netsnmp_indexed_addr_pair' undeclared
> (first use in this function)
[...]
> make[2]: *** [libmagicolor_la-magicolor.lo] Error 1
>
> And poking around in /usr/include/net-snmp reveals no definition for
> netsnmp_indexed_addr_pair. This is using net-snmp 5.5, which seems
> like it might still be a current release?
Ah, sorry. It seems like the snmp auto-detection really needs net-snmp 5.6 :(
In net-snmp 5.5 the UDP broadcast option was added, but apparently the devs
missed to add a public-API method of extracting the responding IP address to
the broadcast package. In 5.5 the netsnmp_udp_addr_pair struct was used in
snmplib/snmpUDPDomain.cc, but that structure was never made public in any
header file, so there was not way to get the IP address of the responding
scanner.
In net-snmp 5.6, the new netsnmp_indexed_addr_pair struct provides access to
that information, so I now increased the required net-snmp version to 5.6, as
5.5 does not provide the required functionality...
Cheers,
Reinhold
--
------------------------------------------------------------------
Reinhold Kainhofer, reinhold at kainhofer.com, http://reinhold.kainhofer.com/
* Financial & Actuarial Math., Vienna Univ. of Technology, Austria
* http://www.fam.tuwien.ac.at/, DVR: 0005886
* LilyPond, Music typesetting, http://www.lilypond.org
More information about the sane-devel
mailing list