[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Net-SNMP AgentX



> I built the net-snmp daemon with agentx module enabled and was able to
> compile the subagent demo as per
> http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_Subagent, but
> trying to port it to PetaLinux I get a number of compile errors:

It turned out I needed to pass the static libraries by hand:

NETSNMPCONFIG=$(ROOTDIR)/user/net-snmp/build/net-snmp-config

STATICLIBS =
$(ROOTDIR)/user/net-snmp/build/agent/helpers/.libs/libnetsnmphelpers.a \
			 $(ROOTDIR)/user/net-snmp/build/agent/.libs/libnetsnmpmibs.a \
			 $(ROOTDIR)/user/net-snmp/build/agent/.libs/libnetsnmpagent.a \
			 $(ROOTDIR)/user/net-snmp/build/snmplib/.libs/libnetsnmp.a

CFLAGS   += `$(NETSNMPCONFIG) --cflags` -I
$(ROOTDIR)/user/net-snmp/build/include -I
$(ROOTDIR)/user/net-snmp/include
LDFLAGS  += `$(NETSNMPCONFIG) --libs` `$(NETSNMPCONFIG) --agent-libs` -L
$(ROOTDIR)/user/net-snmp/build/snmplib/.libs -L
$(ROOTDIR)/user/net-snmp/build/agent/.libs -L
$(ROOTDIR)/user/net-snmp/build/agent/helpers/.libs
LDLIBS   += -lnetsnmp -lnetsnmpagent -lnetsnmpmibs -lnetsnmphelpers
-lpthread -lm $(STATICLIBS)

Now I'll check if everything else works.

Best regards,
Giulio

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/