Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default_store.c: loadable library and perl binaries are mismatched #104

Closed
aptxinc opened this issue Apr 25, 2020 · 6 comments
Closed

default_store.c: loadable library and perl binaries are mismatched #104

aptxinc opened this issue Apr 25, 2020 · 6 comments

Comments

@aptxinc
Copy link

aptxinc commented Apr 25, 2020

Hello,

I try to install SNMP Perl modules from Win32\build.bat but I have the message "default_store.c: loadable library and perl binaries are mismatched"

	cd ..\perl
	nmake /nologo test
	nmake -f Makefile all -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE=" " PASTHRU_INC=" "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- default_store.bs ..\blib\arch\auto\NetSNMP\default_store\default_store.bs 644
	cd ..
	nmake -f Makefile all -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE=" " PASTHRU_INC=" "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- ASN.bs ..\blib\arch\auto\NetSNMP\ASN\ASN.bs 644
	cd ..
	nmake -f Makefile all -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE=" " PASTHRU_INC=" "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- OID.bs ..\blib\arch\auto\NetSNMP\OID\OID.bs 644
	cd ..
	nmake -f Makefile all -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE=" " PASTHRU_INC=" "
	nmake -f Makefile all -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE="/D NETSNMP_REMOVE_U64 /D VC_EXTRALEAN /D WIN32 /D _CONSOLE /D _CRT_NONSTDC_NO_WARNINGS /D _CRT_SECURE_NO_WARNINGS /D _MBCS /D _WIN32_WINNT=0xffff /D _WINSOCK_DEPRECATED_NO_WARNINGS -DMSVC_PERL -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS " PASTHRU_INC="/I C:\OpenSSL-Win64\include -IC:\Users\jhuyn\Downloads\net-snmp-master\include\ -IC:\Users\jhuyn\Downloads\net-snmp-master\include\net-snmp\ -IC:\Users\jhuyn\Downloads\net-snmp-master\win32\  "
	cd ..
	nmake -f Makefile all -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE="/D NETSNMP_REMOVE_U64 /D VC_EXTRALEAN /D WIN32 /D _CONSOLE /D _CRT_NONSTDC_NO_WARNINGS /D _CRT_SECURE_NO_WARNINGS /D _MBCS /D _WIN32_WINNT=0xffff /D _WINSOCK_DEPRECATED_NO_WARNINGS -DMSVC_PERL -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS " PASTHRU_INC="/I C:\OpenSSL-Win64\include -IC:\Users\jhuyn\Downloads\net-snmp-master\include\ -IC:\Users\jhuyn\Downloads\net-snmp-master\include\net-snmp\ -IC:\Users\jhuyn\Downloads\net-snmp-master\win32\  "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- default_store.bs ..\..\blib\arch\auto\NetSNMP\agent\default_store\default_store.bs 644
	cd ..
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- agent.bs ..\blib\arch\auto\NetSNMP\agent\agent.bs 644
	cd ..
	nmake -f Makefile all -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE=" " PASTHRU_INC=" "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- SNMP.bs ..\blib\arch\auto\SNMP\SNMP.bs 644
	cd ..
	nmake -f Makefile all -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE=" " PASTHRU_INC=" "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- TrapReceiver.bs ..\blib\arch\auto\NetSNMP\TrapReceiver\TrapReceiver.bs 644
	cd ..
	nmake test_dynamic -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE=" " PASTHRU_INC=" "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- default_store.bs ..\blib\arch\auto\NetSNMP\default_store\default_store.bs 644
	"C:\Perl5\perl\bin\perl.EXE" "-I..\blib\lib" "-I..\blib\arch" test.pl
1..91
default_store.c: loadable library and perl binaries are mismatched (got handshake key 0000000010500080, needed 0000000010A00080)
NMAKE : fatal error U1077: 'C:\Perl5\perl\bin\perl.EXE' : code retour '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\bin\HostX64\x64\nmake.EXE"' : code retour '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\bin\HostX64\x64\nmake.EXE"' : code retour '0x2'
Stop.

Thanks.

Not working from Master branches (Github) / net-snmp-5.8.1.pre2 (SourceForge) / net-snmp-5.8.1.pre1 (SourceForge).
Perl v5.30.2 built with Visual Studio 2019 on Windows 10 Pro.

@bvanassche
Copy link
Contributor

Two fixes for the Net-SNMP Perl module build infrastructure have been checked in on the v5.8 and master branches. However, I'm not sure that is sufficient to fix the reported issue.

@aptxinc
Copy link
Author

aptxinc commented Apr 28, 2020

Thanks for your feedback but still the problem :
default_store.c: loadable library and perl binaries are mismatched (got handshake key 0000000010500080, needed 0000000010A00080)

@bvanassche
Copy link
Contributor

I can reproduce this but have not yet root-caused this. Still working on this.

bvanassche added a commit to bvanassche/net-snmp that referenced this issue Apr 29, 2020
This patch fixes the following error message:

default_store.c: loadable library and perl binaries are mismatched (got handshake key 0000000010500080, needed 0000000010A00080)

See also net-snmp#104.
@bvanassche
Copy link
Contributor

A candidate fix has been checked in on the v5.8 and master branches. Please retest.

@aptxinc
Copy link
Author

aptxinc commented Apr 29, 2020

The program is frozen Testing Perl modules... with window CMD snmptrapd.exe.
When kill the CMD 3 times, I have the perltest.out :

	cd ..\perl
	set PERL5LIB=C:\Users\jhuyn\Downloads\net-snmp-master\win32\..\perl;C:\Users\jhuyn\Downloads\net-snmp-master\win32\..\perl\SNMP
	nmake /nologo test
	nmake -f Makefile all -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE=" " PASTHRU_INC=" "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- default_store.bs ..\blib\arch\auto\NetSNMP\default_store\default_store.bs 644
	cd ..
	nmake -f Makefile all -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE=" " PASTHRU_INC=" "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- ASN.bs ..\blib\arch\auto\NetSNMP\ASN\ASN.bs 644
	cd ..
	nmake -f Makefile all -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE=" " PASTHRU_INC=" "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- OID.bs ..\blib\arch\auto\NetSNMP\OID\OID.bs 644
	cd ..
	nmake -f Makefile all -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE=" " PASTHRU_INC=" "
	nmake -f Makefile all -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE="/D NETSNMP_REMOVE_U64 /D VC_EXTRALEAN /D WIN32 /D _CONSOLE /D _CRT_NONSTDC_NO_WARNINGS /D _CRT_SECURE_NO_WARNINGS /D _MBCS /D _WIN32_WINNT=0xffff /D _WINSOCK_DEPRECATED_NO_WARNINGS -DMSVC_PERL -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS " PASTHRU_INC="/I C:\OpenSSL-Win64\include -IC:\Users\jhuyn\Downloads\net-snmp-master\include\ -IC:\Users\jhuyn\Downloads\net-snmp-master\include\net-snmp\ -IC:\Users\jhuyn\Downloads\net-snmp-master\win32\  "
	cd ..
	nmake -f Makefile all -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE="/D NETSNMP_REMOVE_U64 /D VC_EXTRALEAN /D WIN32 /D _CONSOLE /D _CRT_NONSTDC_NO_WARNINGS /D _CRT_SECURE_NO_WARNINGS /D _MBCS /D _WIN32_WINNT=0xffff /D _WINSOCK_DEPRECATED_NO_WARNINGS -DMSVC_PERL -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS " PASTHRU_INC="/I C:\OpenSSL-Win64\include -IC:\Users\jhuyn\Downloads\net-snmp-master\include\ -IC:\Users\jhuyn\Downloads\net-snmp-master\include\net-snmp\ -IC:\Users\jhuyn\Downloads\net-snmp-master\win32\  "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- default_store.bs ..\..\blib\arch\auto\NetSNMP\agent\default_store\default_store.bs 644
	cd ..
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- agent.bs ..\blib\arch\auto\NetSNMP\agent\agent.bs 644
	cd ..
	nmake -f Makefile all -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE=" " PASTHRU_INC=" "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- SNMP.bs ..\blib\arch\auto\SNMP\SNMP.bs 644
	cd ..
	nmake -f Makefile all -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE=" " PASTHRU_INC=" "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- TrapReceiver.bs ..\blib\arch\auto\NetSNMP\TrapReceiver\TrapReceiver.bs 644
	cd ..
	nmake test_dynamic -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE=" " PASTHRU_INC=" "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- default_store.bs ..\blib\arch\auto\NetSNMP\default_store\default_store.bs 644
	"C:\Perl5\perl\bin\perl.EXE" "-I..\blib\lib" "-I..\blib\arch" test.pl
1..91
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
ok 15
ok 16
ok 17
ok 18
ok 19
ok 20
ok 21
ok 22
ok 23
ok 24
ok 25
ok 26
ok 27
ok 28
ok 29
ok 30
ok 31
ok 32
ok 33
ok 34
ok 35
ok 36
ok 37
ok 38
ok 39
ok 40
ok 41
ok 42
ok 43
ok 44
ok 45
ok 46
ok 47
ok 48
ok 49
ok 50
ok 51
ok 52
ok 53
ok 54
ok 55
ok 56
ok 57
ok 58
ok 59
ok 60
ok 61
ok 62
ok 63
ok 64
ok 65
ok 66
ok 67
ok 68
ok 69
ok 70
ok 71
ok 72
ok 73
ok 74
ok 75
ok 76
ok 77
ok 78
ok 79
ok 80
ok 81
ok 82
ok 83
ok 84
ok 85
ok 86
ok 87
ok 88
ok 89
ok 90
ok 91
	cd ..
	nmake test_dynamic -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE=" " PASTHRU_INC=" "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- ASN.bs ..\blib\arch\auto\NetSNMP\ASN\ASN.bs 644
	"C:\Perl5\perl\bin\perl.EXE" "-I..\blib\lib" "-I..\blib\arch" test.pl
1..9
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
	cd ..
	nmake test_dynamic -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE=" " PASTHRU_INC=" "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- OID.bs ..\blib\arch\auto\NetSNMP\OID\OID.bs 644
	"C:\Perl5\perl\bin\perl.EXE" "-I..\blib\lib" "-I..\blib\arch" test.pl
1..38
# Running under perl version 5.030002 for MSWin32
# Current time local: Wed Apr 29 11:44:08 2020
# Current time GMT:   Wed Apr 29 09:44:08 2020
# Using Test.pm version 1.31
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
ok 15
ok 16
ok 17
ok 18
ok 19
ok 20
ok 21
ok 22
ok 23
ok 24
ok 25
ok 26
ok 27
ok 28
ok 29
ok 30
ok 31
ok 32
ok 33
ok 34
Can't parse: nosuchoidexists
ok 35
ok 36
ok 37
ok 38
	cd ..
	nmake test_dynamic -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE=" " PASTHRU_INC=" "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- agent.bs ..\blib\arch\auto\NetSNMP\agent\agent.bs 644
	nmake -f Makefile all -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE="/D NETSNMP_REMOVE_U64 /D VC_EXTRALEAN /D WIN32 /D _CONSOLE /D _CRT_NONSTDC_NO_WARNINGS /D _CRT_SECURE_NO_WARNINGS /D _MBCS /D _WIN32_WINNT=0xffff /D _WINSOCK_DEPRECATED_NO_WARNINGS -DMSVC_PERL -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS " PASTHRU_INC="/I C:\OpenSSL-Win64\include -IC:\Users\jhuyn\Downloads\net-snmp-master\include\ -IC:\Users\jhuyn\Downloads\net-snmp-master\include\net-snmp\ -IC:\Users\jhuyn\Downloads\net-snmp-master\win32\  "
	cd ..
	nmake -f Makefile all -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE="/D NETSNMP_REMOVE_U64 /D VC_EXTRALEAN /D WIN32 /D _CONSOLE /D _CRT_NONSTDC_NO_WARNINGS /D _CRT_SECURE_NO_WARNINGS /D _MBCS /D _WIN32_WINNT=0xffff /D _WINSOCK_DEPRECATED_NO_WARNINGS -DMSVC_PERL -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS " PASTHRU_INC="/I C:\OpenSSL-Win64\include -IC:\Users\jhuyn\Downloads\net-snmp-master\include\ -IC:\Users\jhuyn\Downloads\net-snmp-master\include\net-snmp\ -IC:\Users\jhuyn\Downloads\net-snmp-master\win32\  "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- default_store.bs ..\..\blib\arch\auto\NetSNMP\agent\default_store\default_store.bs 644
	cd ..
	nmake test_dynamic -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE="/D NETSNMP_REMOVE_U64 /D VC_EXTRALEAN /D WIN32 /D _CONSOLE /D _CRT_NONSTDC_NO_WARNINGS /D _CRT_SECURE_NO_WARNINGS /D _MBCS /D _WIN32_WINNT=0xffff /D _WINSOCK_DEPRECATED_NO_WARNINGS -DMSVC_PERL -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS " PASTHRU_INC="/I C:\OpenSSL-Win64\include -IC:\Users\jhuyn\Downloads\net-snmp-master\include\ -IC:\Users\jhuyn\Downloads\net-snmp-master\include\net-snmp\ -IC:\Users\jhuyn\Downloads\net-snmp-master\win32\  "
'No tests defined for NetSNMP::agent::Support extension.'
	cd ..
	nmake test_dynamic -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE="/D NETSNMP_REMOVE_U64 /D VC_EXTRALEAN /D WIN32 /D _CONSOLE /D _CRT_NONSTDC_NO_WARNINGS /D _CRT_SECURE_NO_WARNINGS /D _MBCS /D _WIN32_WINNT=0xffff /D _WINSOCK_DEPRECATED_NO_WARNINGS -DMSVC_PERL -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS " PASTHRU_INC="/I C:\OpenSSL-Win64\include -IC:\Users\jhuyn\Downloads\net-snmp-master\include\ -IC:\Users\jhuyn\Downloads\net-snmp-master\include\net-snmp\ -IC:\Users\jhuyn\Downloads\net-snmp-master\win32\  "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- default_store.bs ..\..\blib\arch\auto\NetSNMP\agent\default_store\default_store.bs 644
	"C:\Perl5\perl\bin\perl.EXE" "-I..\..\blib\lib" "-I..\..\blib\arch" test.pl
1..37
ok 1
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
ok 15
ok 16
ok 17
ok 18
ok 19
ok 20
ok 21
ok 22
ok 23
ok 24
ok 25
ok 26
ok 27
ok 28
ok 29
ok 30
ok 31
ok 32
ok 33
ok 34
ok 35
ok 36
ok 37
	cd ..
	"C:\Perl5\perl\bin\perl.EXE" "-I..\blib\lib" "-I..\blib\arch" test.pl
1..6
ok 1
ok 2
ok 3
ok 4
ok 5
Warning: no access control information configured.
  (Config search path: c:/usr/etc/snmp;c:/usr/share/snmp;c:/usr/lib)
  It's unlikely this agent can serve any useful purpose in this state.
  Run "snmpconf -g basic_setup" to help you configure the test.conf file for this agent.
ok 6
	cd ..
	nmake test_dynamic -nologo LIBPERL_A="libperl.lib" LINKTYPE="dynamic" OPTIMIZE="-O1 -MD -Zi -DNDEBUG -GL -fp:precise" PREFIX="C:\Perl5\perl\site" PASTHRU_DEFINE=" " PASTHRU_INC=" "
	"C:\Perl5\perl\bin\perl.EXE" -MExtUtils::Command::MM -e cp_nonempty -- SNMP.bs ..\blib\arch\auto\SNMP\SNMP.bs 644
	"C:\Perl5\perl\bin\perl.EXE" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, '..\blib\lib', '..\blib\arch')" t\*.t
Win32/Win64 detected - skipping async calls
t\async.t ......... skipped: (no reason given)
# Failed test 2 in t\bulkwalk.t at line 55
#  t\bulkwalk.t line 55 is: ok($s1->{ErrorNum} == 0);
# Failed test 3 in t\bulkwalk.t at line 59
#  t\bulkwalk.t line 59 is: ok(scalar @list == $expect);
# Failed test 4 in t\bulkwalk.t at line 68
#  t\bulkwalk.t line 68 is:   ok(0);
# Failed test 5 in t\bulkwalk.t at line 69
#  t\bulkwalk.t line 69 is:   ok(0);
# Failed test 6 in t\bulkwalk.t at line 70
#  t\bulkwalk.t line 70 is:   ok(0);
# Failed test 7 in t\bulkwalk.t at line 71
#  t\bulkwalk.t line 71 is:   ok(0);
# Failed test 8 in t\bulkwalk.t at line 84
#  t\bulkwalk.t line 84 is:   ok(0);
# Failed test 9 in t\bulkwalk.t at line 85
#  t\bulkwalk.t line 85 is:   ok(0);
# Failed test 10 in t\bulkwalk.t at line 86
#  t\bulkwalk.t line 86 is:   ok(0);
# Failed test 13 in t\bulkwalk.t at line 102
#  t\bulkwalk.t line 102 is:   ok(0);
# Failed test 14 in t\bulkwalk.t at line 103
#  t\bulkwalk.t line 103 is:   ok(0);
# Failed test 15 in t\bulkwalk.t at line 104
#  t\bulkwalk.t line 104 is:   ok(0);
# Failed test 16 in t\bulkwalk.t at line 105
#  t\bulkwalk.t line 105 is:   ok(0);
# Failed test 17 in t\bulkwalk.t at line 132
#  t\bulkwalk.t line 132 is:   ok(0);
# Failed test 18 in t\bulkwalk.t at line 133
#  t\bulkwalk.t line 133 is:   ok(0);
# Failed test 19 in t\bulkwalk.t at line 134
#  t\bulkwalk.t line 134 is:   ok(0);
# Failed test 20 in t\bulkwalk.t at line 135
#  t\bulkwalk.t line 135 is:   ok(0);
# Failed test 21 in t\bulkwalk.t at line 146
#  t\bulkwalk.t line 146 is: ok($s1->{ErrorNum} == 0);
# Failed test 22 in t\bulkwalk.t at line 150
#  t\bulkwalk.t line 150 is: ok(scalar @list == $expect);
# Failed test 23 in t\bulkwalk.t at line 160
#  t\bulkwalk.t line 160 is:   ok(0);
# Failed test 24 in t\bulkwalk.t at line 161
#  t\bulkwalk.t line 161 is:   ok(0);
# Failed test 25 in t\bulkwalk.t at line 162
#  t\bulkwalk.t line 162 is:   ok(0);
# Failed test 26 in t\bulkwalk.t at line 163
#  t\bulkwalk.t line 163 is:   ok(0);
# Failed test 27 in t\bulkwalk.t at line 176
#  t\bulkwalk.t line 176 is:   ok(0);
# Failed test 28 in t\bulkwalk.t at line 177
#  t\bulkwalk.t line 177 is:   ok(0);
# Failed test 29 in t\bulkwalk.t at line 178
#  t\bulkwalk.t line 178 is:   ok(0);
# Failed test 30 in t\bulkwalk.t at line 188
#  t\bulkwalk.t line 188 is: ok($s1->{ErrorNum} == 0);
# Failed test 31 in t\bulkwalk.t at line 192
#  t\bulkwalk.t line 192 is: ok(scalar @list == $expect);
# Failed test 34 in t\bulkwalk.t at line 209
#  t\bulkwalk.t line 209 is:   ok(0);
# Failed test 35 in t\bulkwalk.t at line 210
#  t\bulkwalk.t line 210 is:   ok(0);
# Failed test 36 in t\bulkwalk.t at line 211
#  t\bulkwalk.t line 211 is:   ok(0);
# Failed test 37 in t\bulkwalk.t at line 221
#  t\bulkwalk.t line 221 is:   ok(0);
# Failed test 38 in t\bulkwalk.t at line 222
#  t\bulkwalk.t line 222 is:   ok(0);
# Failed test 39 in t\bulkwalk.t at line 223
#  t\bulkwalk.t line 223 is:   ok(0);
# Failed test 40 in t\bulkwalk.t at line 224
#  t\bulkwalk.t line 224 is:   ok(0);
Win32/Win64 detected - skipping async calls
t\bulkwalk.t ...... 
Failed 35/41 subtests 
t\conf.t .......... ok
t\dump-session.t .. ok
# Failed test 2 in t\get.t at line 90
#  t\get.t line 90 is: ok(!$s1->{ErrorStr} and defined($ret[0]));
# Failed test 3 in t\get.t at line 94
#  t\get.t line 94 is: ok($#ret == $#{$vars});
# Failed test 4 in t\get.t at line 101
#  t\get.t line 101 is: ok( defined($contact));
# Failed test 5 in t\get.t at line 106
#  t\get.t line 106 is: ok( defined($name));
# Failed test 6 in t\get.t at line 111
#  t\get.t line 111 is: ok( defined($location));
# Failed test 7 in t\get.t at line 118
#  t\get.t line 118 is: ok( defined($ttl));
# Failed test 8 in t\get.t at line 125
#  t\get.t line 125 is: ok( defined($time));
# Failed test 9 in t\get.t at line 132
#  t\get.t line 132 is: ok( defined($totalDatagramsReceived));
# Failed test 10 in t\get.t at line 139
#  t\get.t line 139 is: ok( defined($physaddr));
# Failed test 11 in t\get.t at line 146
#  t\get.t line 146 is: ok( defined($ipaddr));
# Failed test 12 in t\get.t at line 153
#  t\get.t line 153 is: ok( defined($trapOID));
# Failed test 13 in t\get.t at line 180
#  t\get.t line 180 is: ok(defined($time));
# Failed test 14 in t\get.t at line 192
#  t\get.t line 192 is: ok(defined($oid));
# Failed test 15 in t\get.t at line 198
#  t\get.t line 198 is: ok(defined($descr));
# Failed test 16 in t\get.t at line 204
#  t\get.t line 204 is: ok(defined($ifname));
t\get.t ........... 
Failed 15/17 subtests 
# Failed test 2 in t\getnext.t at line 56
#  t\getnext.t line 56 is: ok($s1->{ErrorStr} eq '');
# Failed test 3 in t\getnext.t at line 65
#  t\getnext.t line 65 is: ok($s1->{ErrorStr} eq '');
# Failed test 5 in t\getnext.t at line 90
#  t\getnext.t line 90 is: ok((not $s1->{ErrorStr} and not $s1->{ErrorInd}));
# Failed test 6 in t\getnext.t at line 91
#  t\getnext.t line 91 is: ok((defined $var->iid and $var->iid eq 0));
# Failed test 7 in t\getnext.t at line 92
#  t\getnext.t line 92 is: ok((defined $var->val and $var->val eq $res2));
# Failed test 8 in t\getnext.t at line 98
#  t\getnext.t line 98 is: ok((defined $var->tag and $var->tag eq 'sysObjectID'));
# Failed test 9 in t\getnext.t at line 99
#  t\getnext.t line 99 is: ok((defined $var->val and $var->val eq $res3));
t\getnext.t ....... 
Failed 7/9 subtests 
t\mib.t ........... ok
t\mibload.t ....... ok
Encryption support not enabled.(3)
# Failed test 11 in t\notify.t at line 104
#  t\notify.t line 104 is: ok(defined($res) && ($res =~ /^0 but true/));
t\notify.t ........ 
Failed 1/11 subtests 
t\session.t ....... ok
# Failed test 2 in t\set.t at line 89
#  t\set.t line 89 is: ok($originalLocation ne $finalvalue);
snmp_build: unknown failure
t\set.t ........... 
Failed 1/7 subtests 

Test Summary Report
-------------------
t\bulkwalk.t    (Wstat: 0 Tests: 41 Failed: 35)
  Failed tests:  2-10, 13-31, 34-40
t\get.t         (Wstat: 0 Tests: 17 Failed: 15)
  Failed tests:  2-16
t\getnext.t     (Wstat: 0 Tests: 9 Failed: 7)
  Failed tests:  2-3, 5-9
t\notify.t      (Wstat: 0 Tests: 11 Failed: 1)
  Failed test:  11
t\set.t         (Wstat: 0 Tests: 7 Failed: 1)
  Failed test:  2
Files=11, Tests=139, 468 wallclock secs ( 0.05 usr +  0.02 sys =  0.06 CPU)
Result: FAIL
Failed 5/11 test programs. 59/139 subtests failed.
NMAKE : fatal error U1077: 'C:\Perl5\perl\bin\perl.EXE' : code retour '0xff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\bin\HostX64\x64\nmake.EXE"' : code retour '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\bin\HostX64\x64\nmake.EXE"' : code retour '0x2'
Stop.

@bvanassche
Copy link
Contributor

With the fixes checked in today "nmake perl_test" passes on my setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants