Hi there
Recently, I´ve downloaded the Net-Snmp 5.2 and I´m trying to compile using the build.bat file, but same error occurs. I´m using WinXP SP2, Microsoft Visual C++ 6.0 SP3, and already Platform SDK installed.
The error you are getting usually happens when you don't have the Platform SDK installed or registered. Did you remember to register the SDK with MSVC after installing it? There is a shortcut in the Start menu for it.
To compile without the SDK, you need to 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 */
This should be fixed in the next release.
Alex
this is the error : snmpTCPDomain.c ..\..\snmplib\snmpTCPDomain.c(167) : error C2065: 'socklen_t' : undeclared identifier ..\..\snmplib\snmpTCPDomain.c(167) : error C2146: syntax error : missing ';' before identifier 'farendlen' ..\..\snmplib\snmpTCPDomain.c(167) : error C2065: 'farendlen' : undeclared identifier ..\..\snmplib\snmpTCPDomain.c(168) : error C2143: syntax error : missing ';' before 'type' ..\..\snmplib\snmpTCPDomain.c(196) : error C2065: 'string' : undeclared identifier ..\..\snmplib\snmpTCPDomain.c(196) : warning C4047: '=' : 'int ' differs in levels of indirection from 'char *' ..\..\snmplib\snmpTCPDomain.c(198) : warning C4022: 'free' : pointer mismatch for actual parameter 1 ..\..\snmplib\snmpTCPDomain.c(219) : warning C4013: 'netsnmp_sock_buffer_set' undefined; assuming extern returning int ..\..\snmplib\snmpTCPDomain.c(237) : error C2143: syntax error : missing '{' before '*' ..\..\snmplib\snmpTCPDomain.c(239) : error C2371: 'netsnmp_tcp_transport' : redefinition; different basic types ..\..\include\net-snmp/library/snmpTCPDomain.h(28) : see declaration of 'netsnmp_tcp_transport' ..\..\snmplib\snmpTCPDomain.c(389) : warning C4133: 'return' : incompatible types - from 'struct netsnmp_transport_s *' to 'int *'
Any ideas how to solve this problem ?
Thanks Gutemberg Medeiros
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
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
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
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