[AGENT++] Lots of WARNING: Synchronized: recursive trylocking detected (id) messages
Jochen Katz
katz at agentpp.com
Wed Mar 4 22:16:47 CET 2015
Hello,
> I've noticed that when viewing a MIB table (using iReasoning) there
> is a burst of warning messages :
>
> WARNING: Synchronized: recursive trylocking detected (id)!:
>
> Are they expected, and if not, indicative of a locking/sync issue somewhere?
I think Frank should answer this question.
> I've tried building our agent without threads but it appears AgentX++ requires threads enabled :
Yes, threads are needed.
> (indeed it is not possible to build snmp++ if configured with -disable-threads :
>
> /tmp/snmp++-3.3.4/include/snmp_pp/config_snmp_pp.h:79:5: error: #if with no expression
The patch below would fix this (but you need threads enabled...)
Regards,
Jochen
Index: configure.ac
===================================================================
--- configure.ac (Revision 2829)
+++ configure.ac (Arbeitskopie)
@@ -186,7 +186,8 @@
],
[])
])
-], [WITH_THREADS=0]) # endif : --enable-threads
+], [WITH_THREADS=0
+ WITH_PTHREAD=0]) # endif : --enable-threads
dnl Checks for libraries.
More information about the AGENTPP
mailing list