I'm new to net-snmp, and have been tasked when sending traps to a specific host. I've used the mib2c to generate the code, but I have been unable to build the resulting c code - keep getting the message: undefined reference to `send_v2trap
This is the latest version of my makefile:
OBJS1=swTest1.o
OBJS2=swTest2.o
OBJS3=swTest3.o
TARGETS=swTest1 swTest2 swTest3
OBJS2=swTest2.o
OBJS3=swTest3.o
TARGETS=swTest1 swTest2 swTest3
CFLAGS=-I. `net-snmp-config --cflags`
BUILDLIBS= `net-snmp-config --libs`
BUILDLIBS= `net-snmp-config --libs`
# shared library flags (assumes gcc)
DLFLAGS=-fPIC -shared
DLFLAGS=-fPIC -shared
all: $(TARGETS)
swTest1: $(OBJS1)
$(CC) -o swTest1 $(OBJS1) $(BUILDLIBS)
$(CC) -o swTest1 $(OBJS1) $(BUILDLIBS)
What am I doing wrong in my makefile?
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail.
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ 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