Make error net-snmp-5.3.1 binaries
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have installed net-snmp-5.3.1-HP-UX_B.11.00_9000_712 binaries on hpux11.00 machine as root in / . The snmptrapd and snmptrap daemon work fine. So i would compile my 'snmpTrapManager.c',but when I try to do 'make' it reports these errors: make -f Makefile all echo "Compiling snmpTrapManager ...." Compiling trapmanager .... echo "Dependents up to date 1: " Dependents up to date 1: cc -O -I/usr/local/include \ -L/usr/local/lib \ -lnetsnmptrapd -lnetsnmpmibs -lnetsnmphelpers -lnetsnmpagent -lnetsnmp \ /users/cmt/snmpTrapManager/snmpTrapManager.c -o snmpTrapManager /usr/ccs/bin/ld: Unsatisfied symbols: snmp_close (code) snmp_log (code) print_handler (code) netsnmp_add_global_traphandler (code) snmp_shutdown (code) netsnmp_running (data) netsnmp_ds_get_boolean (code) snmp_sess_perror (code) netsnmp_tdomain_transport (code) debugmsg (code) snmp_add (code) init_snmp (code) netsnmp_get_version (code) netsnmp_register_loghandler (code) snmp_read (code) init_agent (code) debugmsg_oid (code) netsnmp_transport_free (code) snmp_get_do_debugging (code) snmp_log_syslogname (code) snmp_select_info (code) snmp_sess_init (code) snmp_oid_compare (code) *** Error exit code 1 Stop. CmtSrv_cmt3_$ The bin directory is:usr/local/bin The lib directory is:usr/local/lib The include directory is:usr/local/include My 'snmpTrapManager.c' directory is:users/cmt/snmpTrapManager Anyone has hints on this? I attach my 'Makefile'. Anyone can tell me if it's correct?? Anyone can send me a 'Makefile' example?? Thanks in advance Simonetta ________________________________________________________________________ SERVIZIO VOICE: TELEFONA e INVIA SMS dal tuo computer a tariffe vantaggiose! Scopri come telefonare e videochiamare gratis da pc a pc. http://voice.repubblica.it ------------------------------------------------------------------------- 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 [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Makefile.TXT
(text/plain, 1 KB)
######################################################################### # # # Makefile snmpTrapManager.c # # # ######################################################################### # # definizione directory di lavoro # TOOLS = /users/cmt/snmpTrapManager SNMPLIBPATH = /usr/local/lib SNMPSRVBIN = /usr/local/bin SNMPINC = /usr/local/include SNMPLIB = -lnetsnmptrapd -lnetsnmpmibs -lnetsnmphelpers -lnetsnmpagent -lnetsnmp all: $(SNMPSRVBIN)/snmpTrapManager echo "snmpTrapManager up-to-date\n" $(SNMPSRVBIN)/snmpTrapManager: echo "Compiling snmpTrapManager ...." echo "Dependents up to date 1: $?" $(CC) $(CFLAGS) -I$(SNMPINC) \ -L$(SNMPLIBPATH) \ $(SNMPLIB) \ $(TOOLS)/snmpTrapManager.c -o snmpTrapManager echo "Dependents up to date 2: $?" $(RM) snmpTrapManager.o mv snmpTrapManager $(SNMPSRVBIN) echo "\tsnmpTrapManager is up to date!" #