I updated net-snmp to 5.6, and all of my net-snmp consumers broke. It looks like <net-snmp/library/snmp_api.h> (included from <net-snmp/session_api.h> accidentally used "netsnmp_transport *" instead of "struct netsnmp_transport_s *":
NETSNMP_IMPORT int netsnmp_sess_config_and_open_transport(netsnmp_session *in_session, netsnmp_transport *transport); but netsnmp_transport is defined in <net-snmp/library/snmp_transport.h> which is #included later in <net-snmp/session_api.h>. Other prototypes in snmp_api.h use the proto-struct netsnmp_transport_s, but this one uses the typedef that's not yet typedef'd. The obvious patch: =================================================================== --- net-snmp-5.6.orig/include/net-snmp/library/snmp_api.h +++ net-snmp-5.6/include/net-snmp/library/snmp_api.h @@ -490,7 +490,7 @@ struct netsnmp_transport_s; NETSNMP_IMPORT int netsnmp_sess_config_and_open_transport(netsnmp_session *in_session, - netsnmp_transport *transport); + struct netsnmp_transport_s *transport); /* * EXPERIMENTAL API EXTENSIONS ------------------------------------------ fixes my package builds. Bill ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders