RE: net-snmp 5.2.1.2 compile issue on cygwin

"Paul Oppenheim" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
> Do you get the same error with 5.2.2?
YAY! NO! Thanks!

when I add:
--with-mib-modules="host agentx disman/event-mib examples/example" \
--with-out-mib-modules=host/hr_network --with-libs="-lws2_32" \

(as the docs suggest), it builds fine. WOOT!!!
if i do a default ./configure and build out of source, it fails in a new
place as documented below.
This has also helped me identify a problem in the default cygwin
packaging scripts, so thanks from them too.

Thank you for investigating this, Alex. My knowledge of the autotools is
lacking, but steadily improving since the first error report. May my
next email be a patch instead of a whimper.

+ paul

-----

making all in
/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/build/snmpl
ib
make[1]: Entering directory
`/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/build/snmp
lib'
make[1]: Leaving directory
`/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/build/snmp
lib'
making all in
/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/build/agent
make[1]: Entering directory
`/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/build/agen
t'
making all in
/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/build/agent
/helpers
make[2]: Entering directory
`/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/build/agen
t/helpers'
make[2]: Leaving directory
`/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/build/agen
t/helpers'
making all in
/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/build/agent
/mibgroup
make[2]: Entering directory
`/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/build/agen
t/mibgroup'
make[2]: Leaving directory
`/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/build/agen
t/mibgroup'
make[1]: Leaving directory
`/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/build/agen
t'
making all in
/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/build/apps
make[1]: Entering directory
`/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/build/apps
'
making all in
/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/build/apps/
snmpnetstat
make[2]: Entering directory
`/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/build/apps
/snmpnetstat'
/bin/sh ../../libtool  --mode=link gcc -o snmpnetstat53.exe inet.lo
inet6.lo if.lo main.lo route.lo winstub.lo ffs.lo iq
uery.lo   ../../snmplib/libnetsnmp.la -lcrypto -lm
gcc -o snmpnetstat53.exe inet.o inet6.o if.o main.o route.o winstub.o
ffs.o iquery.o  ../../snmplib/.libs/libnetsnmp.a -
lcrypto
Warning: resolving _getservbyport@8 by linking to _getservbyport
Use --enable-stdcall-fixup to disable these warnings
Use --disable-stdcall-fixup to disable these fixups
Warning: resolving _gethostname@8 by linking to _gethostname
inet6.o: In function `inet6print':
/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/apps/snmpne
tstat/inet6.c:444: undefined reference to `_ntoh
s@4'
collect2: ld returned 1 exit status
make[2]: *** [snmpnetstat53.exe] Error 1
make[2]: Leaving directory
`/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/build/apps
/snmpnetstat'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory
`/cygdrive/z/work/2005.11-net-snmp/sources/tmp/net-snmp-5.2.2/build/apps
'
make: *** [subdirs] Error 1 



-----Original Message-----
From: Alex Burger [mailto:[email protected]] 
Sent: Tuesday, November 29, 2005 18:08
To: Paul Oppenheim
Cc: [email protected]
Subject: Re: net-snmp 5.2.1.2 compile issue on cygwin

Paul Oppenheim wrote:
> (Not sure if I should be posting this to the coders list instead of 
> the users list)
> 
> Linking fails when compiling net-snmp-5.2.1.2 out-of-source on cygwin.
> 
> gcc-3.3.3
> gnu-make-3.8.0
> 
> specifically, when issuing the command:

Do you get the same error with 5.2.2?

Alex





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
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
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.