Re: Compiling NetSNMP for x64 Windows

Bart Van Assche <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On Mon, Apr 18, 2011 at 10:40 PM, Xiang Li <[email protected]> wrote:

> Hi,
> We have recently successfully built net-snmp5.6.1 and netsnmp 5.5.1
> on windows x64 systems when working on our SNMP API products.
>
> No special things need to be done. You just need to build net-snmp
> in a x64 build environment. For example, if you use Microsoft platform
> SDK 7,  you would do :
>
> Click "Start->Microsoft Windows SDK v7.0->CMD shell"
> setenv /x64 /release
> and then use  build.pl  or build.bat like you do normally for 32-bit
> Windows.
>
> For a "dynamic" build, if you use openssl, you need to get openssl build
> for
> x64 windows from slproweb. You need to copy the 64-bit openssl lib version:
> from:
> C:\OpenSSL-1.0.0.c-Win64\lib\VC\libeay32MT.lib and
> C:\OpenSSL-1.0.0.c-Win64\lib\VC\libeay32MD.lib
>
> into
>
> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64,
>
> Also copy the "openssl" header files folder as you would do for 32-bit
> builds.
> After that the build should work.
>

Thanks for the feedback - I'll update README.win32. But I'll document to
copy the OpenSSL binaries in a separate directory instead of the Visual
Studio directories.


> For a  "static" build,  unless you add linking with "Gdi32.lib", the build
> will fail  with link errors.  For a "static" build, NETSNMP-5.5 is
> linked with
> Gdi32.lib but netsnmp-5.6.1 and 5.5.1 are NOT! This appears to be a bug.
>

I haven't seen this error message yet. With which configuration options did
this occur ?

If needed we can share our Windows Net-SNMP binary with the community.
> We can post it on our website so anyone  can download it freely.
>

Dave, how far did you get with documenting the build procedure for 32-bit
binaries ? How much additional effort would it take to generate 64-bit
binaries too ?

Bart.

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev

_______________________________________________
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.