Hi Sasikumar.

Sasikumar Bodathula wrote:
Hi Alex,
       Thank you for the help Microsoft SDK directories are not registered
properly. Now I can build the net-snmp properly.

       Another question can I make the build excluding the document
building, In that case what I should do.

If you skip the entire 'Compiling HTMLHelp file' section, and then remove all lines in c:\usr\net-snmp.nsi that three lines that reference Net-SNMP.chm, then you should be able to create the .exe without the docs.


Alex


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Burger
Sent: Sunday, January 02, 2005 8:46 PM
To: Sasikumar Bodathula
Cc: net-snmp-users@lists.sourceforge.net
Subject: Re: Net-snmp windows version building help


Hi Sasikumar.

It looks like the Platform SDK is not registered correctly with MSVC which is why you are getting the 'socklen_t' undeclared identifier error.

To register it, click Start - Programs - Microsoft Platform SDK February 2003 - Visual Studio Registration - Register PSDK Directories with Visual Studio. Open up a command prompt, run vcvars32 and make sure you see 'C:\Program Files\Microsoft SDK\include' in the INCLUDE environment variable.

Alex


Sasikumar Bodathula wrote:

Hi Alex,
      The file which I downloaded (source file) from the net-snmp site
1. net-snmp-5.1.2.tar.gz (extracted to e:\net-snmp-5.1.2 )
2. VC++ 6.0(installed).
3. Platform SDK installed.
4. ActivePerl-5.8.6.811 (installed) path c:\Perl.
5. tar.exe & gzip.exe are available.
6. gnu_regex.exe (installed).

      I followed the instructions as mentioned in the document during the
build error occurred.
      Below I am pasting the error message from the make.out file

        cl.exe /nologo /MD /W3 /GX /O2 /I "." /I ".." /I "..\..\snmplib" /I
"..\.." /I "..\..\include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS"
/Fp".\release\libsnmp.pch" /YX /Fo".\release\\" /Fd".\release\\" /FD /c
..\..\snmplib\snmpTCPDomain.c
snmpTCPDomain.c
..\..\snmplib\snmpTCPDomain.c(172) : error C2065: 'socklen_t' : undeclared
identifier
..\..\snmplib\snmpTCPDomain.c(172) : error C2146: syntax error : missing

';'

before identifier 'farendlen'
..\..\snmplib\snmpTCPDomain.c(172) : error C2065: 'farendlen' : undeclared
identifier
..\..\snmplib\snmpTCPDomain.c(173) : error C2143: syntax error : missing

';'

before 'type'
..\..\snmplib\snmpTCPDomain.c(201) : error C2065: 'string' : undeclared
identifier
..\..\snmplib\snmpTCPDomain.c(201) : warning C4047: '=' : 'int ' differs

in

levels of indirection from 'char *'
..\..\snmplib\snmpTCPDomain.c(203) : warning C4022: 'free' : pointer
mismatch for actual parameter 1
..\..\snmplib\snmpTCPDomain.c(233) : error C2143: syntax error : missing

'{'

before '*'
..\..\snmplib\snmpTCPDomain.c(235) : error C2371: 'netsnmp_tcp_transport'

:

redefinition; different basic types
       ..\..\include\net-snmp/library/snmpTCPDomain.h(22) : see

declaration

of 'netsnmp_tcp_transport'
..\..\snmplib\snmpTCPDomain.c(372) : warning C4133: 'return' :

incompatible

types - from 'struct netsnmp_transport_s *' to 'int *'
NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC98\BIN\NMAKE.EXE' :
return code '0x2'
Stop.


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to