Hi.

Gutemberg Santos de Medeiros wrote:
Hi Alex
I tried like you said, but when I run build.bat the net-snmp-config.h file is 
recreated without the comments that I did !!! So, the same error happens
Any suggestion ?

There is another issue with not using the SDK that I forgot to mention. Please read the message linked below and try the attached patch.


http://sourceforge.net/mailarchive/message.php?msg_id=10184488

Alex



thank you for helping


-----Original Message----- From: Alex Burger [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 9 de dezembro de 2004 11:18 To: Gutemberg Santos de Medeiros Cc: [EMAIL PROTECTED] Subject: Re: Net-Snmp 5.2 Build Error


Gutemberg Santos de Medeiros wrote:

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



--- system_mib.c.org    Tue Nov 30 18:15:12 2004
+++ system_mib.c        Tue Nov 30 18:16:30 2004
@@ -93,7 +93,7 @@
 int             header_system(struct variable *, oid *, size_t *, int,
                               size_t *, WriteMethod **);
 
-#if HAVE_WINSOCK_H
+#if xxHAVE_WINSOCK_H
 static void     windowsOSVersionString(char [], size_t);
 #endif
 
@@ -369,7 +369,7 @@
     version_descr[sizeof(version_descr) - 1] = 0;
     version_descr[strlen(version_descr) - 1] = 0;       /* chomp new line */
 #else
-#if HAVE_WINSOCK_H
+#if xxHAVE_WINSOCK_H
     windowsOSVersionString(version_descr, sizeof(version_descr));
 #else
     strcpy(version_descr, "unknown");
@@ -644,7 +644,7 @@
         *
         *********************/
 
-#if HAVE_WINSOCK_H
+#if xxHAVE_WINSOCK_H
 static void
 windowsOSVersionString(char stringbuf[], size_t stringbuflen)
 {

Reply via email to