package/agentpp: fix build when BR2_PACKAGE_SNMPPP_SNMPV3 disabled
authorLuca Ceresoli <luca@lucaceresoli.net>
Tue, 14 Jul 2020 08:52:09 +0000 (10:52 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 14 Jul 2020 12:48:21 +0000 (14:48 +0200)
commit42f9e9e36337e13aa2fbb0629228018e1e09519d
tree3a67491b53df1c73bcd1b734d80e6bcf983dc1c6
parent10082b2e439c95cf285ab462fe0961d4c67d9c91
package/agentpp: fix build when BR2_PACKAGE_SNMPPP_SNMPV3 disabled

Agent++ 4.3.1 does not build if SNMPv3 is disabled due to incorrect #ifdef
clauses, esulting in errors such as:

  ../include/agent_pp/notification_originator.h:232:39: error: 'snmpCommunityEntry' has not been declared
           void set_snmp_community_entry(snmpCommunityEntry* communityEntryRef) {
                                         ^
  ../include/agent_pp/notification_originator.h:296:32: error: 'nlmLogEntry' has not been declared
           void set_nlm_log_entry(nlmLogEntry* nlmLogEntryRef) {
                                  ^
  ../include/agent_pp/notification_originator.h:321:9: error: 'nlmLogEntry' does not name a type
           nlmLogEntry*            _nlmLogEntry;
           ^

Fixes:
  http://autobuild.buildroot.net/results/d7a5fa5ba4ab6c9da23fcc93bf766be9ca630af3/
  http://autobuild.buildroot.net/results/40ce9bc4bed267dc762a0282a8da0ad1514ad7a8/
  ...

Fixes: 88355e967fef ("package/agentpp: bump version to 4.3.1")
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/agentpp/0001-Fix-build-when-SNMPv3-is-disabled.patch [new file with mode: 0644]