On Sun, Sep 23, 2018 at 9:35 AM Bart Van Assche <[email protected]> wrote:
> On 9/23/18 8:15 AM, Mark Christiansen wrote:
> > What do these test results tell me is wrong about my build and system
> > configuration? I assume they should all pass.
>
> All regression tests pass on Linux. Most of the regression tests but not
> all of them work correctly on other platforms. Porting these tests to
> MinGW is challenging because the path syntax used by the MSYS shell
> (/c/msys/...) differs from the path syntax used by the MSYS C library
> open() function (c:\msys\...). If you search for if [ "x$OSTYPE" =
> "xmsys" ] in testing/ you will see that it took a significant effort to
> port the test scripts to MinGW.
>
> If a test fails the first step is to figure out whether the root cause
> is in the Net-SNMP code or in the test script. Analyzing this usually
> starts with examining the files under /tmp/snmp-test-... Rerunning a
> test script with SNMP_VERBOSE=1 added to the environment may help.
>
> Bart.
>
I think I got things figured out. Now I get the following error pop-up when
I try to run RUNFULLTESTS:
"The code execution cannot proceed because libcrypto.dll was not found.
Reinstalling the program may fix this problem.
Note that there is no libcrypto.dll in openSSL installation. There is,
however, c:/OpenSSL/libcrypto-1_1.dll. Copying that to
c:/OpenSSL/libcrypto.dll does not help. I did add c:/OpenSSL and
c:/OpenSSL/lib to the path, too.
How should I be configuring it for openSSL in my build?
I do the following to configure before running make:
$ ./configure --prefix="$BASEDIR" --with-mibdirs="$BASEDIR/share/snmp/mibs"
\
--with-mib-modules="agentx disman/event-mib winExtDLL examples/example" \
--disable-embedded-perl --without-perl-modules --disable-shared
--with-openssl=c:/openSSL
I would think that having "--disable-shared would make it not use the dll file.
Anyway, the results of configure give the following output:
---------------------------------------------------------
Net-SNMP configuration summary:
---------------------------------------------------------
SNMP Versions Supported: 1 2c 3
Building for: mingw32
Net-SNMP Version: 5.8
Network transport support: Callback Alias TCP UDP TCPIPv6 UDPIPv6
IPv4Base SocketBase TCPBase UDPIPv4Base UDPBase IPv6Base
SNMPv3 Security Modules: usm
Agent MIB code: agentx default_modules disman/event-mib
examples/example winExtDLL => agentx/master agentx/subagent snmpv3mibs
mibII ucd_snmp notification notification-log-mib target agent_mibs agentx
disman/event disman/schedule utilities disman/event
util_funcs/header_generic
MYSQL Trap Logging: unavailable
Embedded Perl support: disabled
SNMP Perl modules: disabled
SNMP Python modules: disabled
Crypto support from: crypto
Authentication support: MD5 SHA1 SHA512 SHA384 SHA256 SHA192
Encryption support: DES AES
Local DNSSEC validation: disabled
---------------------------------------------------------
I assume the Authentication support line tells me that it found openSSL because
when I don't have " --with-openssl=c:/openSSL" in configure options that
line just has MD5 and SHA1.
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders