Discussion:
Compilation issue with master branch using VS 2015
Manoj Marathayil
2017-06-21 11:27:01 UTC
Permalink
HI,
I am not able to compile master branch source code with visual studio 2015.
I got errors like

"
netsnmp.lib(parse.obj) : error LNK2019: unresolved external symbol
_asprintf referenced in function _read_all_mibs
netsnmp.lib(keytools.obj) : error LNK2019: unresolved external symbol
_EVP_MD_CTX_create referenced in function _generate_Ku
netsnmp.lib(scapi.obj) : error LNK2001: unresolved external symbol
_EVP_MD_CTX_create
netsnmp.lib(keytools.obj) : error LNK2019: unresolved external symbol
_EVP_MD_CTX_destroy referenced in function _generate_Ku
netsnmp.lib(scapi.obj) : error LNK2001: unresolved external symbol
_EVP_MD_CTX_destroy
..\bin\.\release/snmpdf.exe : fatal error LNK1120: 3 unresolved externals
"

Find details below.

Can anyone help me? I want to compile net-snmp in visual studio 2015. Is
there any other stable branch?

Thanks.

--
Manoj

-------------------------------------------

Net-SNMP build and install options
==================================

1. OpenSSL support: enabled
2. OpenSSL include directory: C:\OpenSSL-Win32\include
3. OpenSSL library director: C:\OpenSSL-Win32\lib\VC
4. Platform SDK support: disabled

5. Install path: c:/usr
6. Install after build: enabled

7. Perl modules: disabled
8. Install perl modules: disabled

9. Quiet build (logged): enabled
10. Debug mode: disabled

11. IPv6 transports (requires SDK): disabled
12. winExtDLL agent (requires SDK): disabled

13. Link type: static

14. Install development files enabled

F. Finished - start build
Q. Quit - abort build

Select option to set / toggle: F

Building...

Creating *.out log files.

Deleting old log files...
Running Configure...
Cleaning...
Building main package...
Build error (see make.out) at build.pl line 204, <> line 3.
c:\mm\net-snmp-code-master\win32>

Loading...