Just a quick note:
Managed to solve this problem myself by adding
"export LD_LIBRARY_PATH=/usr/local/lib"
Regards,
Chris
From: Chetcuti, Christian [mailto:cchetc...@hobsoft.com.mt]
Sent: Donnerstag, 12. Mai 2016 10:43
To: 'net-snmp-coders@lists.sourceforge.net'
Subject: Debugging of subagent
Dear all,
I have managed to build my own agent successfully after following the subagent
tutorial.
I am now trying to debug this subagent using gdb. The problem is that gdb is
not stepping into a function coming from the shared libraries of net-snmp when
I request him to do so.
Could you please guide me in order to perform proper debugging of this
sub-agent.
If it helps this is my makefile:
CC=g++
CFLAGS= -g -DHL_LINUX
OBJS = xb-subagent.o
BUILDAGENTLIBS=-L/usr/local/lib -lnetsnmpmibs -ldl -lnetsnmpagent -Wl,-E
-lnetsnmp -lm -lrt -lpthread
all: xb-subagent
xb-subagent: $(OBJS)
$(CC) $(OBJS) -o xb-subagent $(BUILDAGENTLIBS)
xb-subagent.o: xb-subagent.cpp
$(CC) $(CFLAGS) -c xb-subagent.cpp
clean:
rm $(OBJS) xb-subagent
Thanks and best regards,
Chris
HOB Software Ltd
www.hobsoft.com<http://www.hobsoft.com>
[HOB]
______________________________________________________________
Disclaimer:
This message may contain confidential and legally privileged information. If
you are not the addressee notify the sender immediately and delete it (do not
copy, forward, disclose or use any part of it). Internet communications cannot
be garanteed to be timely, secure, error or virus-free. The company does not
accept liability for any errors or omissions.
______________________________________________________________
HOB Software Ltd
www.hobsoft.com<http:/www.hobsoft.com>
[HOB]
______________________________________________________________
Disclaimer:
This message may contain confidential and legally privileged information. If
you are not the addressee notify the sender immediately and delete it (do not
copy, forward, disclose or use any part of it). Internet communications cannot
be garanteed to be timely, secure, error or virus-free. The company does not
accept liability for any errors or omissions.
______________________________________________________________
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders