dlmod error

rober hsu <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
 Hi all:

 I used net-snmp 5.0.6 at a custom MPC852 PowerPC board.I got a
problem.

bash-2.05b# ./snmpd -f -L -DnstAgentPluginObject,dlmod
dlmod: register mib
dlmod: dlmod_path: /usr/lib/snmp/dlmod
dlmod: dlmod_create_module
dlmod: dlmod_load_module
nstAgentPluginObject: /usr/lib/nstAgentPluginObject.so
Segmentation fault

My pc used FC3 and My board is Linux 2.4.25 and run nfs connect
to /opt/eldk/ppc_8xx (ELDK 3.1.1) to run it's net-snmp 5.0.6.

This is my Makefile. 

CC=/opt/eldk/usr/bin/ppc_8xx-gcc

OBJS1=snmpdemoapp.o
OBJS2=example-demon.o nstAgentSubagentObject.o
OBJS3=asyncapp.o
TARGETS=example-demon snmpdemoapp asyncapp

CFLAGS=-I/usr/local/include
BUILDLIBS=/usr/local/lib
BUILDAGENTLIBS=`net-snmp-config --agent-libs`

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

all: $(TARGETS)

snmpdemoapp: $(OBJS1)
 $(CC) -o snmpdemoapp $(OBJS1) $(BUILDLIBS)

asyncapp: $(OBJS3)
 $(CC) -o asyncapp $(OBJS3) $(BUILDLIBS)

example-demon: $(OBJS2)
 $(CC) -o example-demon $(OBJS2) $(BUILDAGENTLIBS)

clean:
 rm $(OBJS2) $(OBJS2) $(TARGETS)

nstAgentPluginObject.so: nstAgentPluginObject.c Makefile
 $(CC) $(CFLAGS) $(DLFLAGS) -c -o nstAgentPluginObject.o
nstAgentPluginObject.c
 $(CC) $(CFLAGS) $(DLFLAGS) -o nstAgentPluginObject.so
nstAgentPluginObject.o
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.