Skip Menu |

This queue is for tickets about the Devel-CheckLib CPAN distribution.

Report information
The Basics
Id: 132933
Status: open
Priority: 0/
Queue: Devel-CheckLib

People
Owner: Nobody in particular
Requestors: barryd.it [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Regarding Devel::CheckLib failed tests
Date: Thu, 2 Jul 2020 12:30:36 -0700
To: bug-Devel-CheckLib [...] rt.cpan.org
From: Barry <barryd.it [...] gmail.com>
The version of perl that I am using is: This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x64-multi-thread It is the one included in the version XAMPP SERVER_SOFTWARE = Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.4.3 I tried to perform a cpan -u It appears to be failing the tests mentioned below, with mention of C library msvcrt . What do you think? Am I missing something? Running make for M/MA/MATTN/Devel-CheckLib-1.14.tar.gz Has already been unwrapped into directory \xampp\cpan\build\Devel-CheckLib-1.14-aCXlI5 CPAN.pm: Building M/MA/MATTN/Devel-CheckLib-1.14.tar.gz cp lib/Devel/CheckLib.pm blib\lib\Devel\CheckLib.pm C:\xampp\perl\bin\perl.exe -MExtUtils::Command -e cp -- bin/use-devel-checklib blib\script\use-devel-checklib pl2bat.bat blib\script\use-devel-checklib MATTN/Devel-CheckLib-1.14.tar.gz \xampp\c\bin\dmake.exe -- OK Running make test C:\xampp\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/00-load.t ................... ok t/analyze-binary.t ............ ok t/bad-single-word-compiler.t .. Name "Config::STORE" used only once: possible typo at t/bad-single-word-compiler.t line 18. t/bad-single-word-compiler.t .. ok t/cmdline-LIBS-INC.t .......... t/cmdline-LIBS-INC.t .......... 1/3 # Failed test 'linked OK: LIBS=-lmsvcrt' # at t/cmdline-LIBS-INC.t line 49. # STDOUT: # STDERR: Can't link/include C library 'msvcrt', aborting. # # Failed test 'linked OK: LIBS=-lmsvcrt, LIBS=-lbazbam, LIBS=-LC:\Users\BARRYD~1\AppData\Local\Temp\HzK4gMMrTD' t/cmdline-LIBS-INC.t .......... 2/3 # at t/cmdline-LIBS-INC.t line 63. # STDOUT: # STDERR: Can't link/include C library 'msvcrt', aborting. # # Failed test 'linked OK: "LIBS=-lmsvcrt -lbazbam -LC:\Users\BARRYD~1\AppData\Local\Temp\HzK4gMMrTD"' t/cmdline-LIBS-INC.t .......... 3/3 # at t/cmdline-LIBS-INC.t line 77. # STDOUT: # STDERR: Can't link/include C library 'msvcrt', aborting. # # Looks like you failed 3 tests of 3. t/cmdline-LIBS-INC.t .......... Dubious, test returned 3 (wstat 768, 0x300) Failed 3/3 subtests t/custom-function.t ........... ok t/dash-l-libs.t ............... # Failed test 'LIBS => '-lmsvcrt -lbazbam -LC:\Users\BARRYD~1\AppData\Local\Temp\6MdCytAZoj'' # at t/dash-l-libs.t line 45. t/dash-l-libs.t ............... 1/1 # got: 'Can't link/include C library 'msvcrt', aborting. # ' # expected: '' # STDOUT: # STDERR: # Looks like you failed 1 test of 1. t/dash-l-libs.t ............... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests t/exit_with_message.t ......... ok t/flags.t ..................... ok t/found.t ..................... # Failed test 'lib => 'msvcrt'' t/found.t ..................... 1/8 # at t/found.t line 53. # got: 'Can't link/include C library 'msvcrt', aborting. # ' # expected: '' # STDOUT: # STDERR: # Failed test '... and check_lib is true' t/found.t ..................... 2/8 # at t/found.t line 54. t/found.t ..................... 4/8 t/found.t ..................... 5/8 # Failed test 'lib => ['msvcrt', 'kernel32']' # at t/found.t line 53. # got: 'Can't link/include C library 'msvcrt', aborting. # ' # expected: '' # STDOUT: # STDERR: t/found.t ..................... 6/8 # Failed test '... and check_lib is true' # at t/found.t line 54. t/found.t ..................... 7/8 # Looks like you failed 4 tests of 8. t/found.t ..................... Dubious, test returned 4 (wstat 1024, 0x400) Failed 4/8 subtests t/headers.t ................... ok t/multi-word-compiler.t ....... Name "Config::STORE" used only once: possible typo at t/multi-word-compiler.t line 18. t/multi-word-compiler.t ....... ok t/not_found.t ................. 4/12 # Failed test 'missing 'foo' detected' # at t/not_found.t line 39. # 'Can't link/include C library 'msvcrt', 'foo', aborting. # ' # doesn't match '/^Can't link/include C library 'foo'/ms' t/not_found.t ................. 12/12 # Looks like you failed 1 test of 12. t/not_found.t ................. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/12 subtests Test Summary Report ------------------- t/cmdline-LIBS-INC.t (Wstat: 768 Tests: 3 Failed: 3) Failed tests: 1-3 Non-zero exit status: 3 t/dash-l-libs.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 t/found.t (Wstat: 1024 Tests: 8 Failed: 4) Failed tests: 1-2, 5-6 Non-zero exit status: 4 t/not_found.t (Wstat: 256 Tests: 12 Failed: 1) Failed test: 5 Non-zero exit status: 1 Files=12, Tests=42, 69 wallclock secs ( 0.23 usr + 0.09 sys = 0.33 CPU) Result: FAIL Failed 4/12 test programs. 9/42 subtests failed. dmake.exe: Error code 129, while making 'test_dynamic' MATTN/Devel-CheckLib-1.14.tar.gz \xampp\c\bin\dmake.exe test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports MATTN/Devel-CheckLib-1.14.tar.gz Running make install make test had returned bad status, won't install without force Stopping: 'install' failed for 'M/MA/MATTN/Devel-CheckLib-1.14.tar.gz'.
msvcrt is the C run-time from Visual Studio. I'm not sure why it's not just installed on every Windows machine on the planet but I remember back when I used Windows that I sometimes had to install it myself. You can download it from https://www.dll-files.com/msvcrt.dll.html. Caveat downloador, of course! I suppose Devel::CheckLib should be updated to look for some other library for its tests, but what that would be I have no idea.
Subject: Re: [rt.cpan.org #132933] Regarding Devel::CheckLib failed tests
Date: Thu, 2 Jul 2020 15:47:01 -0700
To: bug-Devel-CheckLib [...] rt.cpan.org
From: Barry <barryd.it [...] gmail.com>
Thank you so much for your quick reply. I did however find msvcrt in "windows\system32" directory, so just in case it "wasn't finding" I figured that I would place it inside the *perl/bin* directory, and that is when/where I found something interesting, and I hope that it's relevant to our case today. I will try it again before I send this... but for some reason the file is being named as* inside ../perl/bin/* *'msvcrt" * [image: image.png] And again here is another screenshot ... is this possibly relevant? [image: image.png]
Download image.png
image/png 207.9k
image.png
Download image.png
image/png 254.1k
image.png
There may be 32- vs 64-bit issues here which prevented it from finding the file, and if that's the case then linking might fail anyway if you're generating 64-bit binaries and trying to link against something copied from SYSTEM32. But regardless, those files that seem to have been created are ... weird.
Subject: Re: [rt.cpan.org #132933] Regarding Devel::CheckLib failed tests
Date: Thu, 2 Jul 2020 16:21:54 -0700
To: bug-Devel-CheckLib [...] rt.cpan.org
From: Barry <barryd.it [...] gmail.com>
I tried to recreate those 'error' files, without any luck, I know when it happened based on the date I also placed the msvcrt.dll that you gave me as a link and placed it in the perl/bin/, but there is no guarantee that it is using 64bit over the presumed 32bit file. C:\xampp\perl\bin\msvcrt.dll Windows NT CRT DLL Version 7.0.18362.1 File size: 758KB C:\Windows\System32\msvcrt.dll Windows NT CRT DLL Version 7.0.18362.1 File size: 624KB Is there supposed to be a file named *perl/bin/msvcrt * ? On Thu, Jul 2, 2020 at 3:56 PM David Cantrell via RT < bug-Devel-CheckLib@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=132933 > > > There may be 32- vs 64-bit issues here which prevented it from finding the > file, and if that's the case then linking might fail anyway if you're > generating 64-bit binaries and trying to link against something copied from > SYSTEM32. > > But regardless, those files that seem to have been created are ... weird. >
Subject: Re: [rt.cpan.org #132933] Regarding Devel::CheckLib failed tests
Date: Thu, 2 Jul 2020 16:24:38 -0700
To: bug-Devel-CheckLib [...] rt.cpan.org
From: Barry <barryd.it [...] gmail.com>
You know what ... those error files were my fault now that I recall. I tried to highlight the error code and accidentally pasted it in the terminal ... what may have happened was it created those files from an accidental paste. Sorry to bother you with this. On Thu, Jul 2, 2020 at 4:21 PM Barry <barryd.it@gmail.com> wrote: Show quoted text
> I tried to recreate those 'error' files, without any luck, I know when it > happened based on the date I also placed the msvcrt.dll that you gave me as > a link and placed it in the perl/bin/, but there is no guarantee that it is > using 64bit over the presumed 32bit file. > > C:\xampp\perl\bin\msvcrt.dll Windows NT CRT DLL Version > 7.0.18362.1 File size: 758KB > C:\Windows\System32\msvcrt.dll Windows NT CRT DLL Version > 7.0.18362.1 File size: 624KB > > Is there supposed to be a file named *perl/bin/msvcrt * ? > > On Thu, Jul 2, 2020 at 3:56 PM David Cantrell via RT < > bug-Devel-CheckLib@rt.cpan.org> wrote: >
>> <URL: https://rt.cpan.org/Ticket/Display.html?id=132933 > >> >> There may be 32- vs 64-bit issues here which prevented it from finding >> the file, and if that's the case then linking might fail anyway if you're >> generating 64-bit binaries and trying to link against something copied from >> SYSTEM32. >> >> But regardless, those files that seem to have been created are ... weird. >>
>