delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/04/11/20:34:52

From: greggj AT savvis DOT com (Gregg Jensen)
Subject: anyone compiled cmu-snmp2?
11 Apr 1997 20:34:52 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <3.0.1.32.19970410163202.0093bad0.cygnus.gnu-win32@mail.savvis.com>
Mime-Version: 1.0
X-Sender: greggj AT mail DOT savvis DOT com
X-Mailer: Windows Eudora Light Version 3.0.1 (32)
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

The subject line pretty much says it all.  Has anyone taken the 
Unix source of cmu-snmp2 and compiled in with the gnu-win32 stuff?
I compiled the library and am trying to link the snmpget (not the
one in the installed directory).  The undefined references are 
listed below.  Any help would be apprecitated.
Thanks,
Gregg

[MACHINENAME] /d/cmu_snmp2/apps > make snmpget
gcc -v  -o snmpget snmpget.o  -L../lib   -lsnmp
Reading specs from F:\H-i386-cygwin32\lib\gcc-lib\i386-cygwin32/cygnus-2
023/specs
gcc version cygnus-2.7.2-961023
 ld -o snmpget.exe F:\H-i386-cygwin32\lib\gcc-lib\i386-cygwin32/cygnus-2
023/../../../../i386-cygwin32/lib/crt0.o -L../lib -LF:\H-i386-cygwin32\l
ib\i386-cygwin32/cygnus-2.7.2-961023 -LF:\H-i386-cygwin32\lib\gcc-lib\ -
86-cygwin32\lib\gcc-lib\i386-cygwin32/cygnus-2.7.2-961023/../../../../i3
n32/lib -LF:\H-i386-cygwin32\lib\gcc-lib\i386-cygwin32/cygnus-2.7.2-9610
/.. snmpget.o -lsnmp -lgcc -lcygwin -lkernel32 -lgcc
snmpget.o: In function `main':
/d/cmu_snmp2/apps/snmpget.c:256: undefined reference to `inet_addr'
.../lib/libsnmp.a(party_parse.o): In function `read_party_database':
/d/cmu_snmp2/snmplib/party_parse.c:93: undefined reference to `inet_addr
.../lib/libsnmp.a(snmp_client.o): In function `snmp_synch_response':
/d/cmu_snmp2/snmplib/snmp_client.c:328: undefined reference to `timercle
.../lib/libsnmp.a(snmp_api.o): In function `snmp_select_info':
/d/cmu_snmp2/snmplib/snmp_api.c:1220: undefined reference to `timerclear
/d/cmu_snmp2/snmplib/snmp_api.c:1235: undefined reference to `timerisset
/d/cmu_snmp2/snmplib/snmp_api.c:1235: undefined reference to `timercmp'
/d/cmu_snmp2/snmplib/snmp_api.c:1265: undefined reference to `timercmp'
.../lib/libsnmp.a(snmp_api.o): In function `snmp_timeout':
/d/cmu_snmp2/snmplib/snmp_api.c:1303: undefined reference to `timercmp'
make: *** [snmpget] Error 1

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019