Hello Larry,
I had the same problem a while back. I do not know if net-snmp or
cygwin is at fault, but this is how I fixed it.
Go to the file w32api/winsock.h and find the line
that looks something like
.....
int PASCAL gethostname(char*,int);
.....
and put an ifdef around it.
#ifndef HAVE_SYS_TYPES_H
int PASCAL gethostname(char*,int);
#endif
It stops gethostname being "picked up" in two separate files.
After that ....... you might bump into another problem.
I was using net-snmp happily for a while, then one day after
a cygwin1.dll update my snmpd did not run anymore. I tracked
it back to a problem with bind and udp port 161, when you ask
for a specific udo port there is a problem. When you ask for
"any port" as snmpget and friends do, there is no problem. The
tcp connection seems fine though - I can used snmpd with a tcp
connection.
I do not know if this has been fixed in the present cygwin release,
I still use an older unsupported one.
cheers
Mark.
> Message: 3
> Date: Sat, 14 Apr 2007 14:20:36 +0000
> From: [EMAIL PROTECTED]
> Subject: Compiler Issues Net-SNMP in Windows/Cygwin
> To: [email protected]
> Message-ID:
>
<041420071420.9417.4620E33400079330000024C922007503309C030E0B0E06979D9D0
[EMAIL PROTECTED]>
>
>
> When performing a "./configure" in Cygwin, I received the following
WARNINGS:
>
> checking winsock.h presence... yes
> configure: WARNING: winsock.h: present but cannot be compiled
> configure: WARNING: winsock.h: check for missing prerequisite
headers?
> configure: WARNING: winsock.h: see the Autoconf documentation
> configure: WARNING: winsock.h: section "Present But Cannot Be
Compiled"
> configure: WARNING: winsock.h: proceeding with the preprocessor's
result
> configure: WARNING: winsock.h: in the future, the compiler will take
precedence
> configure: WARNING: ##
---------------------------------------------------- ##
> configure: WARNING: ## Report this to
[email protected] ##
> configure: WARNING: ##
---------------------------------------------------- ##
>
> The configure command was "./configure --disable-agent
--disable-embedded-perl".
> I don't know if it will make yet, but I thought I would pass this
along, since it told me to :)
>
> Larry Adams
> TheWitness
> www.cacti.net
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders