On sön, 2007-01-07 at 14:11 +0100, Thomas Anders wrote:
> Net-SNMP 5.4 and later happen to contain
>
> PATCH: 1282566: from magfr to rework transport creation to allow for
> alternative
> interpretations of the address and a more flexible transport registration
> system
>
> which introduced a call to netsnmp_register_service_handlers() in
> snmplib/anmp_api.c. Unfortunately this breaks the build with g++ (4.1.0) for
> me:
>
> snmp_api.c:768: error: 'netsnmp_register_service_handlers' was not declared in
> this scope
>
> Comments/patches appreciated.
Yes. Stupid me.
/MF
Index: include/net-snmp/library/snmp_service.h
===================================================================
RCS file: /cvsroot/net-snmp/net-snmp/include/net-snmp/library/snmp_service.h,v
retrieving revision 5.1
diff -u -r5.1 snmp_service.h
--- include/net-snmp/library/snmp_service.h 19 Sep 2006 14:45:29 -0000 5.1
+++ include/net-snmp/library/snmp_service.h 7 Jan 2007 18:29:04 -0000
@@ -26,6 +26,9 @@
extern void
netsnmp_clear_default_target(void);
+extern void
+netsnmp_register_service_handlers(void);
+
#ifdef __cplusplus
}
#endif
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders