Yes If i run net-snmp-config --agent-libs i getting the following libraries.
 
 -R../lib/sparcv9 -xarch=v9 -L/usr/sfw/lib/sparcv9 -lnetsnmpagent -lnetsnmpmibs -
lnetsnmphelpers -lnetsnmp -ldl -lkvm -lz -lpkcs11 -lkstat -lelf -lm -ldl -lnsl -lsocket -ladm
 
But while building an sub-agent , I have not given any such file to build it .
The foolowing piece of Makefile
ARCH=64
LDFLAGS_64=-g -xarch=v9  -I/usr/sfw/include -I.
LDFLAGS_32=-g -I/usr/sfw/include -I.
LDFLAGS=$(LDFLAGS_$(ARCH))
LDLIBS=
PROG= demo_module_2.so
SRCS= demo_module_2.c
OBJS = $(SRCS:.c=.o)
all:$(PROG)
$(PROG): $(OBJS)
 $(CC) $(LDFLAGS) $(LDLIBS) -G -o $@ $(OBJS)
.c.o:
 @if test "$(CC)" = "" ; then \
 echo "Environment variable CC must be set with compiler path" ; \
 exit 1 ; \
 fi
 $(CC) $(LDFLAGS) -g  -o $@ -c $<
clean:
 rm -f demo_module_2.o demo_module_2.so
 
is there anything wrong ?

Dave Shield <[EMAIL PROTECTED]> wrote:
On Mon, 2005-06-20 at 06:53, mahua dutta wrote:
> For developing Net- snmp subagent what are the libraries to link.

See the output of the command

net-snmp-config --libs

Dave

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Reply via email to