* [Buildroot] [PATCH 1/1] package/snmppp: fix build without SNMPV3
@ 2023-03-20 17:17 Fabrice Fontaine
2023-03-27 7:09 ` Luca Ceresoli via buildroot
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Fabrice Fontaine @ 2023-03-20 17:17 UTC (permalink / raw)
To: buildroot; +Cc: Luca Ceresoli, Fabrice Fontaine
Fix the following build failure without BR2_PACKAGE_SNMPPP_SNMPV3 raised
since bump to version 3.5.0 in commit
e011fa0415883b9d44df616cfaf6956e1a11da88:
msgqueue.cpp: In member function 'int Snmp_pp::CSNMPMessage::ResendMessage()':
msgqueue.cpp:263:34: error: 'version3' was not declared in this scope; did you mean 'version1'?
263 | if (m_target->get_version() == version3) {
| ^~~~~~~~
| version1
Fixes:
- http://autobuild.buildroot.org/results/8ef3e4407a51c53c15e530606227338761dd905b
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
.../snmppp/0001-fix-build-without-v3.patch | 43 +++++++++++++++++++
1 file changed, 43 insertions(+)
create mode 100644 package/snmppp/0001-fix-build-without-v3.patch
diff --git a/package/snmppp/0001-fix-build-without-v3.patch b/package/snmppp/0001-fix-build-without-v3.patch
new file mode 100644
index 0000000000..4e81f7bfc1
--- /dev/null
+++ b/package/snmppp/0001-fix-build-without-v3.patch
@@ -0,0 +1,43 @@
+fix build without v3
+
+Fix the following build failure without version3 raised since version
+3.5.0:
+
+msgqueue.cpp: In member function 'int Snmp_pp::CSNMPMessage::ResendMessage()':
+msgqueue.cpp:263:34: error: 'version3' was not declared in this scope; did you mean 'version1'?
+ 263 | if (m_target->get_version() == version3) {
+ | ^~~~~~~~
+ | version1
+
+Fixes:
+ - http://autobuild.buildroot.org/results/8ef3e4407a51c53c15e530606227338761dd905b
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: sent to katz.agentpp.com@magenta.de]
+
+diff -Nura snmp++-3.5.0.orig/src/msgqueue.cpp snmp++-3.5.0/src/msgqueue.cpp
+--- snmp++-3.5.0.orig/src/msgqueue.cpp 2023-03-20 10:49:30.629000853 +0100
++++ snmp++-3.5.0/src/msgqueue.cpp 2023-03-20 10:51:36.880664304 +0100
+@@ -260,18 +260,20 @@
+ m_target->set_retry(m_target->get_retry() - 1);
+ SetSendTime();
+ int status;
+- if (m_target->get_version() == version3) {
+ #ifdef _SNMPv3
++ if (m_target->get_version() == version3) {
+ // delete entry in cache
+ if (m_snmp->get_mpv3())
+ m_snmp->get_mpv3()->delete_from_cache(m_pdu.get_request_id());
+-#endif
+ status = m_snmp->snmp_engine(m_pdu, m_pdu.get_error_status(), m_pdu.get_error_index(),
+ *m_target, m_callBack, m_callData, m_socket, 0, this);
+ }
+ else {
++#endif
+ status = send_snmp_request(m_socket, m_rawPdu, m_rawPduLen, *m_address);
++#ifdef _SNMPv3
+ }
++#endif
+ if (status != 0)
+ return SNMP_CLASS_TL_FAILED;
+
--
2.39.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/snmppp: fix build without SNMPV3
2023-03-20 17:17 [Buildroot] [PATCH 1/1] package/snmppp: fix build without SNMPV3 Fabrice Fontaine
@ 2023-03-27 7:09 ` Luca Ceresoli via buildroot
2023-03-29 6:49 ` Thomas Petazzoni via buildroot
2023-04-10 19:29 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Luca Ceresoli via buildroot @ 2023-03-27 7:09 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
Hi Fabrice,
On Mon, 20 Mar 2023 18:17:33 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fix the following build failure without BR2_PACKAGE_SNMPPP_SNMPV3 raised
> since bump to version 3.5.0 in commit
> e011fa0415883b9d44df616cfaf6956e1a11da88:
>
> msgqueue.cpp: In member function 'int Snmp_pp::CSNMPMessage::ResendMessage()':
> msgqueue.cpp:263:34: error: 'version3' was not declared in this scope; did you mean 'version1'?
> 263 | if (m_target->get_version() == version3) {
> | ^~~~~~~~
> | version1
>
> Fixes:
> - http://autobuild.buildroot.org/results/8ef3e4407a51c53c15e530606227338761dd905b
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Thanks for the quick fix!
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Tested-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/snmppp: fix build without SNMPV3
2023-03-20 17:17 [Buildroot] [PATCH 1/1] package/snmppp: fix build without SNMPV3 Fabrice Fontaine
2023-03-27 7:09 ` Luca Ceresoli via buildroot
@ 2023-03-29 6:49 ` Thomas Petazzoni via buildroot
2023-04-10 19:29 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-03-29 6:49 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Luca Ceresoli, buildroot
On Mon, 20 Mar 2023 18:17:33 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fix the following build failure without BR2_PACKAGE_SNMPPP_SNMPV3 raised
> since bump to version 3.5.0 in commit
> e011fa0415883b9d44df616cfaf6956e1a11da88:
>
> msgqueue.cpp: In member function 'int Snmp_pp::CSNMPMessage::ResendMessage()':
> msgqueue.cpp:263:34: error: 'version3' was not declared in this scope; did you mean 'version1'?
> 263 | if (m_target->get_version() == version3) {
> | ^~~~~~~~
> | version1
>
> Fixes:
> - http://autobuild.buildroot.org/results/8ef3e4407a51c53c15e530606227338761dd905b
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> .../snmppp/0001-fix-build-without-v3.patch | 43 +++++++++++++++++++
> 1 file changed, 43 insertions(+)
> create mode 100644 package/snmppp/0001-fix-build-without-v3.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/snmppp: fix build without SNMPV3
2023-03-20 17:17 [Buildroot] [PATCH 1/1] package/snmppp: fix build without SNMPV3 Fabrice Fontaine
2023-03-27 7:09 ` Luca Ceresoli via buildroot
2023-03-29 6:49 ` Thomas Petazzoni via buildroot
@ 2023-04-10 19:29 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2023-04-10 19:29 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Luca Ceresoli, buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fix the following build failure without BR2_PACKAGE_SNMPPP_SNMPV3 raised
> since bump to version 3.5.0 in commit
> e011fa0415883b9d44df616cfaf6956e1a11da88:
> msgqueue.cpp: In member function 'int Snmp_pp::CSNMPMessage::ResendMessage()':
> msgqueue.cpp:263:34: error: 'version3' was not declared in this scope; did you mean 'version1'?
> 263 | if (m_target->get_version() == version3) {
> | ^~~~~~~~
> | version1
> Fixes:
> - http://autobuild.buildroot.org/results/8ef3e4407a51c53c15e530606227338761dd905b
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2023.02.x and 2022.02.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-04-10 19:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-20 17:17 [Buildroot] [PATCH 1/1] package/snmppp: fix build without SNMPV3 Fabrice Fontaine
2023-03-27 7:09 ` Luca Ceresoli via buildroot
2023-03-29 6:49 ` Thomas Petazzoni via buildroot
2023-04-10 19:29 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox