Re: Net-SNMP 5.4.3.rc2 and 5.2.6.rc2 available for testing

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Mon, Apr 12, 2010 at 4:20 PM, Dave Shield <[email protected]>wrote:

> On 10 April 2010 08:53, Bart Van Assche <[email protected]> wrote:
> > Building 5.4.3.rc2 on Windows via build.bat fails:
> > [ ... ]
> > cl.exe /nologo /MD /W3 /GX /O2 /I "." /I ".." /I "..\..\snmplib" /I
> "..\.."
> > /I "..\..\include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D
> > "NETSNMP_DLL" /Fp".\release\libsnmp_dll.pch" /YX /Fo".\release\\"
> > /Fd".\release\\" /FD /c ..\..\snmplib\snmpTCPDomain.c
> > ..\..\snmplib\snmpTCPDomain.c(187) : error C2065: 'socklen_t' :
> undeclared
> > identifier
> > ..\..\snmplib\snmpTCPDomain.c(187) : error C2146: syntax error : missing
> ';'
> > before identifier 'farendlen'
> > ..\..\snmplib\snmpTCPDomain.c(187) : error C2065: 'farendlen' :
> undeclared
> > identifier
>
>
> Can I check the exact settings you are working with, please.
> What version of Visual Studio are you using?
> What changes (if any) did you make to the build settings?
>
> I've just tried with a fresh tarball, using Visual Studio 2008
> Professional,
> and accepting the default build settings.  This ran into a couple of
> problems - but not anything like the errors shown above.
>
> Firstly, I found that 'build.pl' complained about needing to run the
> VCVARS32.bat script - despite the fact that I'd already run this.
>
> Then there were errors about inconsistent definitions within VC header
> files, which turned out to be due to the entry
>
>     #define vsnprintf _vsnprintf
>
> within win32/net-snmp/net-snmp-config.h{,.in}
> Deleting this allowed the software to build OK.
>
> I don't know whether these are common problems, or related
> to our setup here.   But I haven't been able to reproduce the
> error you list above.
>

As far as I know win32/build.bat on the V5.4 branch only works with Visual
Studio 6.

This is what I get with default build settings for win32/build.bat:
[ ... ]
netsnmpmibs.lib(snmpNotifyTable.obj) : error LNK2001: unresolved external
symbol _log_notification
..\bin\.\release/snmpd.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: 'link.exe' : return code '0x460'
Stop.

And this is what I get with Platform SDK Support, IPv6 support enabled and
link type set to DLL, as shown above:
[ ... ]
cl.exe /nologo /MD /W3 /GX /O2 /I "." /I ".." /I "..\..\snmplib" /I "..\.."
/I "..\..\include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D
"NETSNMP_DLL" /Fp".\release\libsnmp_dll.pch" /YX /Fo".\release\\"
/Fd".\release\\" /FD /c ..\..\snmplib\snmpTCPDomain.c
snmpTCPDomain.c
..\..\snmplib\snmpTCPDomain.c(187) : error C2065: 'socklen_t' : undeclared
identifier
[ ... ]

These results have been produced with the source code obtained from
https://net-snmp.svn.sourceforge.net/svnroot/net-snmp/branches/V5-4-patches/net-snmp,
r18491. No Subversion-administered files were modified except those
overwritten by the build process (win32/libsnmp_dll/libsnmp.def and
win32/net-snmp/net-snmp-config.h).

Note: win32/win32.dsw builds fine with VS6, at least on my setup.

Bart.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.