Skip to content

perl 5.36 cpan | FCGI fails tests #82

Closed
@shawnlaffan

Description

@shawnlaffan

See log below.

Possibly the conditions used to disable/run the tests are not handling recent changes. See test file starting at https://metacpan.org/release/ETHER/FCGI-0.82/source/t/02-unix_domain_socket.t#L11

###
cpanm (App::cpanminus) 1.7043 on perl 5.036000 built for MSWin32-x64-multi-thread
Work directory is C:\spbuild\msys64/.cpanm/work/1678935107.2972
You have make C:\strawberry\c\bin\gmake.exe
You have LWP 6.68
Falling back to Archive::Tar 2.40
Searching FCGI on mirror https://cpan.metacpan.org ...
Downloading index file https://cpan.metacpan.org/modules/02packages.details.txt.gz ...
Unpacking FCGI-0.82.tar.gz
Entering FCGI-0.82
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.68)
Running Makefile.PL
--> Working on FCGI
Fetching https://cpan.metacpan.org/authors/id/E/ET/ETHER/FCGI-0.82.tar.gz ... OK
Configuring FCGI-0.82 ... Warning: prerequisite FCGI::Client 0.09 not found.
Checking if your kit is complete...
Looks good
Generating a gmake-style Makefile
Writing Makefile for FCGI
Writing MYMETA.yml and MYMETA.json
Using prebuilt fcgi_config.h file for Windows
Checking dependencies from MYMETA.json ...
Checking if you have Config 0 ... Yes (5.036000)
Checking if you have IO::Socket 0 ... Yes (1.51)
Checking if you have Test::More 0 ... Yes (1.302194)
Checking if you have FCGI::Client 0.09 ... No
Checking if you have File::Temp 0 ... Yes (0.2311)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.68)
Checking if you have XSLoader 0 ... Yes (0.31)
Searching FCGI::Client on mirror https://cpan.metacpan.org ...
Unpacking FCGI-Client-0.09.tar.gz
Entering FCGI-Client-0.09
Checking configure dependencies from META.json
Checking if you have Module::Build::Tiny 0.035 ... Yes (0.039)
Running Build.PL
OK
==> Found dependencies: FCGI::Client
--> Working on FCGI::Client
Fetching https://cpan.metacpan.org/authors/id/T/TO/TOKUHIROM/FCGI-Client-0.09.tar.gz ... OK
Configuring FCGI-Client-0.09 ... Creating new 'Build' script for 'FCGI-Client' version '0.09'
Checking dependencies from MYMETA.json ...
Checking if you have Test::More 0 ... Yes (1.302194)
Checking if you have Moo 2 ... Yes (2.005005)
Checking if you have IO::Socket::UNIX 0 ... Yes (1.51)
Checking if you have Type::Tiny 0 ... Yes (2.002001)
OK
Building and testing FCGI-Client-0.09 ... cp lib/FCGI/Client/RecordFactory.pm blib\lib\FCGI\Client\RecordFactory.pm
cp lib/FCGI/Client/RecordHeader.pm blib\lib\FCGI\Client\RecordHeader.pm
cp lib/FCGI/Client/Constant.pm blib\lib\FCGI\Client\Constant.pm
cp lib/FCGI/Client/Record.pm blib\lib\FCGI\Client\Record.pm
cp lib/FCGI/Client/Connection.pm blib\lib\FCGI\Client\Connection.pm
cp lib/FCGI/Client.pm blib\lib\FCGI\Client.pm
t/00_compile.t .. ok
All tests successful.
Files=1, Tests=1,  0 wallclock secs ( 0.05 usr +  0.02 sys =  0.06 CPU)
Result: PASS
Installing C:\strawberry\perl\vendor\lib\FCGI\Client.pm
Installing C:\strawberry\perl\vendor\lib\FCGI\Client\Connection.pm
Installing C:\strawberry\perl\vendor\lib\FCGI\Client\Constant.pm
Installing C:\strawberry\perl\vendor\lib\FCGI\Client\Record.pm
Installing C:\strawberry\perl\vendor\lib\FCGI\Client\RecordFactory.pm
Installing C:\strawberry\perl\vendor\lib\FCGI\Client\RecordHeader.pm
OK
Successfully installed FCGI-Client-0.09
Installing C:\strawberry\perl\site\lib\MSWin32-x64-multi-thread\.meta\FCGI-Client-0.09\install.json
Installing C:\strawberry\perl\site\lib\MSWin32-x64-multi-thread\.meta\FCGI-Client-0.09\MYMETA.json
Building and testing FCGI-0.82 ... cp FCGI.pm blib\arch/FCGI.pm
Running Mkbootstrap for FCGI ()
"C:\strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 644 "FCGI.bs"
"C:\strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonempty -- FCGI.bs blib\arch\auto\FCGI\FCGI.bs 644
"C:\strawberry\perl\bin\perl.exe" "C:\strawberry\perl\lib\ExtUtils/xsubpp"  -typemap C:\strawberry\perl\lib\ExtUtils\typ
emap -typemap C:\spbuild\msys64\.cpanm\work\1678935107.2972\FCGI-0.82\typemap  FCGI.xs > FCGI.xsc
"C:\strawberry\perl\bin\perl.exe" -MExtUtils::Command -e mv -- FCGI.xsc FCGI.c
gcc -c  -I. -DWIN32 -DWIN64 -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DMULTIPLICITY -DPERL_IMPLICIT_SYS -DUSE_PE
RLIO -D__USE_MINGW_ANSI_STDIO -fwrapv -fno-strict-aliasing -mms-bitfields -O2   -DVERSION=\"0.82\" -DXS_VERSION=\"0.82\"
  "-IC:\strawberry\perl\lib\CORE"  -DDLLAPI=__declspec(dllexport) FCGI.c
gcc -c  -I. -DWIN32 -DWIN64 -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DMULTIPLICITY -DPERL_IMPLICIT_SYS -DUSE_PE
RLIO -D__USE_MINGW_ANSI_STDIO -fwrapv -fno-strict-aliasing -mms-bitfields -O2   -DVERSION=\"0.82\" -DXS_VERSION=\"0.82\"
  "-IC:\strawberry\perl\lib\CORE"  -DDLLAPI=__declspec(dllexport) fcgiapp.c
fcgiapp.c: In function 'AlignPtr8':
fcgiapp.c:1287:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1287 |     unsigned long u = (unsigned long) p;
      |                       ^
gcc -c  -I. -DWIN32 -DWIN64 -D__USE_MINGW_ANSI_STDIO -DPERL_TEXTMODE_SCRIPTS -DMULTIPLICITY -DPERL_IMPLICIT_SYS -DUSE_PE
RLIO -D__USE_MINGW_ANSI_STDIO -fwrapv -fno-strict-aliasing -mms-bitfields -O2   -DVERSION=\"0.82\" -DXS_VERSION=\"0.82\"
  "-IC:\strawberry\perl\lib\CORE"  -DDLLAPI=__declspec(dllexport) os_win32.c
os_win32.c: In function 'StdinThread':
os_win32.c:238:68: warning: passing argument 3 of 'GetQueuedCompletionStatus' from incompatible pointer type [-Wincompat
ible-pointer-types]
  238 |         if (!GetQueuedCompletionStatus(hStdinCompPort, &bytesRead, &fd,
      |                                                                    ^~~
      |                                                                    |
      |                                                                    long unsigned int *
In file included from c:\strawberry\c\x86_64-w64-mingw32\include\winbase.h:21,
                 from c:\strawberry\c\x86_64-w64-mingw32\include\windows.h:70,
                 from os_win32.c:20:
c:\strawberry\c\x86_64-w64-mingw32\include\ioapiset.h:20:126: note: expected 'PULONG_PTR' {aka 'long long unsigned int *
'} but argument is of type 'long unsigned int *'
   20 |   WINBASEAPI WINBOOL WINAPI GetQueuedCompletionStatus (HANDLE CompletionPort, LPDWORD lpNumberOfBytesTransferred
, PULONG_PTR lpCompletionKey, LPOVERLAPPED *lpOverlapped, DWORD dwMilliseconds);
      |
  ~~~~~~~~~~~^~~~~~~~~~~~~~~
os_win32.c: In function 'OS_LibInit':
os_win32.c:356:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  356 |         HANDLE shutdownEvent = (HANDLE) atoi(val);
      |                                ^
os_win32.c:370:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  370 |             acceptMutex = (HANDLE) atoi(val);
      |                           ^
os_win32.c:460:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  460 |          (int)stdioHandles[STDIN_FILENO],
      |          ^
os_win32.c:515:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  515 |          (int)stdioHandles[STDOUT_FILENO],
      |          ^
os_win32.c:532:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  532 |          (int)stdioHandles[STDERR_FILENO],
      |          ^
os_win32.c: In function 'OS_CreateLocalIpcFd':
os_win32.c:775:51: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  775 |         pseudoFd = Win32NewDescriptor(listenType, (int) hListenPipe, -1);
      |                                                   ^
os_win32.c: In function 'OS_FcgiConnect':
os_win32.c:893:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  893 |         pseudoFd = Win32NewDescriptor(FD_PIPE_ASYNC, (int) hPipe, -1);
      |                                                      ^
os_win32.c: In function 'OS_DoIo':
os_win32.c:1495:54: warning: passing argument 3 of 'GetQueuedCompletionStatus' from incompatible pointer type [-Wincompa
tible-pointer-types]
 1495 |  if (!GetQueuedCompletionStatus(hIoCompPort, &bytes, &fd,
      |                                                      ^~~
      |             >> storing results via Storable to 'C:\strawberry_build\debug\mod_install_FCGI_1678935107.list.nstor
e.txt'
>> storing results via Data::Dumper to 'C:\strawberry_build\debug\mod_install_FCGI_1678935107.list.nstore.txt'
>> FAILUE [exit_code=256]
                                         |
      |                                                      long unsigned int *
In file included from c:\strawberry\c\x86_64-w64-mingw32\include\winbase.h:21,
                 from c:\strawberry\c\x86_64-w64-mingw32\include\windows.h:70,
                 from os_win32.c:20:
c:\strawberry\c\x86_64-w64-mingw32\include\ioapiset.h:20:126: note: expected 'PULONG_PTR' {aka 'long long unsigned int *
'} but argument is of type 'long unsigned int *'
   20 |   WINBASEAPI WINBOOL WINAPI GetQueuedCompletionStatus (HANDLE CompletionPort, LPDWORD lpNumberOfBytesTransferred
, PULONG_PTR lpCompletionKey, LPOVERLAPPED *lpOverlapped, DWORD dwMilliseconds);
      |
  ~~~~~~~~~~~^~~~~~~~~~~~~~~
os_win32.c: In function 'isAddrOKCallback':
os_win32.c:1558:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 1558 |     if ((void *) data == NULL) return CF_ACCEPT;
      |         ^
os_win32.c:1562:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 1562 |     return isAddrOK(sockaddr, (const char *) data) ? CF_ACCEPT : CF_REJECT;
      |                               ^
os_win32.c: In function 'acceptNamedPipe':
os_win32.c:1622:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1622 |     ipcFd = Win32NewDescriptor(FD_PIPE_SYNC, (int) hListen, -1);
      |                                              ^
In file included from c:\strawberry\c\x86_64-w64-mingw32\include\winsock2.h:56,
                 from os_win32.c:21:
os_win32.c: In function 'acceptSocket':
os_win32.c:1649:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1649 |             FD_SET((unsigned int) hListen, &readfds);
      |                    ^
os_win32.c:1649:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1649 |             FD_SET((unsigned int) hListen, &readfds);
      |                    ^
os_win32.c:1652:49: warning: passing argument 5 of 'select' discards 'const' qualifier from pointer target type [-Wdisca
rded-qualifiers]
 1652 |             if (select(0, &readfds, NULL, NULL, &timeout) == 0)
      |                                                 ^~~~~~~~
In file included from os_win32.c:21:
c:\strawberry\c\x86_64-w64-mingw32\include\winsock2.h:1025:116: note: expected 'PTIMEVAL' {aka 'struct timeval * const'}
 but argument is of type 'const struct timeval *'
 1025 |   WINSOCK_API_LINKAGE int WSAAPI select(int nfds,fd_set *readfds,fd_set *writefds,fd_set *exceptfds,const PTIMEV
AL timeout);
      |                                                                                                     ~~~~~~~~~~~~
~~~^~~~~~~
os_win32.c:1681:27: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1681 |         hSock = WSAAccept((unsigned int) hListen,
      |                           ^
os_win32.c:1685:27: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 1685 |                           (DWORD) webServerAddrs);
      |                           ^
os_win32.c:1684:27: warning: passing argument 4 of 'WSAAccept' from incompatible pointer type [-Wincompatible-pointer-ty
pes]
 1684 |                           isAddrOKCallback,
      |                           ^~~~~~~~~~~~~~~~
      |                           |
      |                           int (*)(struct _WSABUF *, struct _WSABUF *, struct _QualityOfService *, struct _Qualit
yOfService *, struct _WSABUF *, struct _WSABUF *, GROUP *, DWORD) {aka int (*)(struct _WSABUF *, struct _WSABUF *, struc
t _QualityOfService *, struct _QualityOfService *, struct _WSABUF *, struct _WSABUF *, unsigned int *, long unsigned int
)}
In file included from os_win32.c:21:
c:\strawberry\c\x86_64-w64-mingw32\include\winsock2.h:1056:108: note: expected 'LPCONDITIONPROC' {aka 'int (*)(struct _W
SABUF *, struct _WSABUF *, struct _QualityOfService *, struct _QualityOfService *, struct _WSABUF *, struct _WSABUF *, u
nsigned int *, long long unsigned int)'} but argument is of type 'int (*)(struct _WSABUF *, struct _WSABUF *, struct _Qu
alityOfService *, struct _QualityOfService *, struct _WSABUF *, struct _WSABUF *, GROUP *, DWORD)' {aka 'int (*)(struct
_WSABUF *, struct _WSABUF *, struct _QualityOfService *, struct _QualityOfService *, struct _WSABUF *, struct _WSABUF *,
 unsigned int *, long unsigned int)'}
 1056 |   WINSOCK_API_LINKAGE SOCKET WSAAPI WSAAccept(SOCKET s,struct sockaddr *addr,LPINT addrlen,LPCONDITIONPROC lpfnC
ondition,DWORD_PTR dwCallbackData);
      |                                                                                            ~~~~~~~~~~~~~~~~^~~~~
~~~~~~~~
"C:\strawberry\perl\bin\perl.exe" -MExtUtils::Mksymlists \
     -e "Mksymlists('NAME'=>\"FCGI\", 'DLBASE' => 'FCGI', 'DL_FUNCS' => {  }, 'FUNCLIST' => [], 'IMPORTS' => {  }, 'DL_V
ARS' => []);"
g++ FCGI.def -o blib\arch\auto\FCGI\FCGI.xs.dll -shared -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" -L"C:
\strawberry\c\x86_64-w64-mingw32\lib" -L"C:\strawberry\c\lib\gcc\x86_64-w64-mingw32\10.3.0" FCGI.o fcgiapp.o os_win32.o
  "C:\strawberry\perl\lib\CORE\libperl536.a" "-lws2_32" "-lmoldname" "-lkernel32" "-luser32" "-lgdi32" "-lwinspool" "-lc
omdlg32" "-ladvapi32" "-lshell32" "-lole32" "-loleaut32" "-lnetapi32" "-luuid" "-lws2_32" "-lmpr" "-lwinmm" "-lversion"
"-lodbc32" "-lodbccp32" "-lcomctl32" -Wl,--enable-auto-image-base
"C:\strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 755 blib\arch\auto\FCGI\FCGI.xs.dll
"C:\strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonempty -- FCGI.bs blib\arch\auto\FCGI\FCGI.bs 644
"C:\strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test
_harness(0, 'blib\lib', 'blib\arch')" t/*.t
t/01-load.t ................ ok
Bad file descriptor at t/02-unix_domain_socket.t line 85.
unknown listenType (6)
t/02-unix_domain_socket.t ..
Dubious, test returned 9 (wstat 2304, 0x900)
No subtests run

Test Summary Report
-------------------
t/02-unix_domain_socket.t (Wstat: 2304 (exited 9) Tests: 0 Failed: 0)
  Non-zero exit status: 9
  Parse errors: No plan found in TAP output
Files=2, Tests=1,  1 wallclock secs ( 0.05 usr +  0.01 sys =  0.06 CPU)
Result: FAIL
Failed 1/2 test programs. 0/1 subtests failed.
gmake: *** [makefile:1085: test_dynamic] Error 9
! Installing FCGI failed. See C:\spbuild\msys64\.cpanm\work\1678935107.2972\build.log for details. Retry with --force to
 force install it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions