dlmod error
徐小威的EMAIL <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <1125383647.7458.5.camel@banana> |
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
}
h
N
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users