You still haven't answered my original question. What is the exact link line
run during the build process.
I dont get ur question..Anyway i will edxplain you what i do? i have this agent file taken from the site.I have my mib compiled thraough mib2c compiler..I have got 2 .c and 2 .h files.I compile them using the make file provided by at the site...

The make file is like this

CC=gcc

OBJS2=agent.o motodrive.o



TARGETS=agent

CFLAGS=-I. `net-snmp-config --cflags`
BUILDLIBS=`net-snmp-config --libs`
BUILDAGENTLIBS=`net-snmp-config --agent-libs`


# shared library flags (assumes gcc) DLFLAGS=-fPIC -shared -lagent

all: $(TARGETS)

agent: $(OBJS2)
       $(CC) -o agent $(OBJS2)  $(BUILDAGENTLIBS) -lwrap
clean:
       rm $(OBJS2)

motodrive.so: motodrive.cc Makefile
       $(CC) $(CFLAGS) $(DLFLAGS) -c -o drive.o drive.c
       $(CC) $(CFLAGS) $(DLFLAGS) -o drive.so drive.o
~






Also, what does 'ldd agent | grep snmp' report for your agent?

The output is
ibnetsnmpagent.so.5 => /usr/lib/libnetsnmpagent.so.5 (0x40017000)
libnetsnmphelpers.so.5 => /usr/lib/libnetsnmphelpers.so.5 (0x4002f000)
libnetsnmpmibs.so.5 => /usr/lib/libnetsnmpmibs.so.5 (0x40040000)
libnetsnmp.so.5 => /usr/lib/libnetsnmp.so.5 (0x400dc000)


_________________________________________________________________
Click, Upload, Print http://www.kodakexpress.co.in?soe=4956 Deliver in India



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to