A B wrote:

I'm trying to install net-snmp 5.1.2 in a Windows XP, but I keep get compilation 
errors. I've tried using the build.bat utility and also the provided VC++ workspaces, 
but the result is the same ( I'm compiling both Debug and Release )

I've tried both with and without the SDK option. I'm not using SSL.

According to the documentation this should be a simple process. I've searched the web 
for similar problems but nothing is reported. I'm using Windows XP SP1, net-snmp 
5.1.2, MS VC++ 6.0.

Here�s a sample of the output results when I try to build:

(start) ************* --------------------Configuration: libsnmp - Win32 Release--------------------
Compiling...
<snip>
snmpTCPDomain.c
C:\Program Files\Net-SNMP 5.1.2\net-snmp-5.1.2\snmplib\snmpTCPDomain.c(172) : error 
C2065: 'socklen_t' : undeclared identifier

Edit win32\net-snmp\net-snmp-config.h (and net-snmp-config.h.in if you are using build.bat) and change the line:


#define HAVE_SOCKLEN_T 1

to:

/* #define HAVE_SOCKLEN_T 1 */

and it should compile without the SDK.

I'll work this into the next release.

Alex



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to