imapsync
imapsync copied to clipboard
build_exe.bat hangs with "Building and testing IO-Socket-SSL-2.071 ..."
Hello, I just pulled the code and tried to build a Windows executable with build_exe.bat but it hangs:
...
Updating IO::Socket::INET 1.45
DOING cpanm IO::Socket::INET
IO::Socket::INET is up to date. (1.45)
DONE cpanm IO::Socket::INET
Updating IO::Socket::INET6 2.72
DOING cpanm IO::Socket::INET6
IO::Socket::INET6 is up to date. (2.72)
DONE cpanm IO::Socket::INET6
Updating IO::Socket::SSL 2.067
DOING cpanm IO::Socket::SSL
--> Working on IO::Socket::SSL
Fetching http://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.071.tar.gz ... OK
Configuring IO-Socket-SSL-2.071 ... OK
Building and testing IO-Socket-SSL-2.071 ...
Any idea what this might be caused by and how I can fix it? I am using Strawberry Perl 5.30.2 on Windows 10. Thanks!
I usually install IO-Socket-SSL in force on Windows, as tests never pass. Then cross your fingers for this unsafe practice :-)
I'm new to Perl etc. ... can you please explain what exactly to do? Thanks!
cpanm --force IO::Socket::SSL
https://github.com/imapsync/imapsync/blob/master/W/install_module_ssl.bat
This does not help either ... it also hangs there:
C:\Work\ARS\imapsync\W>cpanm --force IO::Socket::SSL
--> Working on IO::Socket::SSL
Fetching http://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.071.tar.gz ... OK
Configuring IO-Socket-SSL-2.071 ... OK
Building and testing IO-Socket-SSL-2.071 ...
I found that t/sni_verify.t was the cause of the problem. I tricked the installation by quickly removing this file while the build process was running and had not yet reached this one.
However, while the build_exe.bat now runs to completion, it does not yield any executable:
C:\Work\ARS\imapsync\W>CALL :handle_error CALL :rename_to_old
C:\Work\ARS\imapsync\W>ECHO IN :handle_error with parameters CALL :rename_to_old
IN :handle_error with parameters CALL :rename_to_old
C:\Work\ARS\imapsync\W>CALL :rename_to_old
C:\Work\ARS\imapsync\W>IF EXIST imapsync_old.exe DEL imapsync_old.exe
C:\Work\ARS\imapsync\W>IF EXIST imapsync.exe RENAME imapsync.exe imapsync_old.exe
C:\Work\ARS\imapsync\W>EXIT /B
C:\Work\ARS\imapsync\W>SET CMD_RETURN=0
C:\Work\ARS\imapsync\W>IF 0 EQU 0 (ECHO GOOD END ) ELSE (
ECHO BAD END
IF NOT EXIST LOG_bat MKDIR LOG_bat
ECHO Failure calling: CALL :rename_to_old 1>>LOG_bat\build_exe.bat.txt
)
GOOD END
C:\Work\ARS\imapsync\W>EXIT /B
C:\Work\ARS\imapsync\W>CALL :handle_error CALL :pp_exe
C:\Work\ARS\imapsync\W>ECHO IN :handle_error with parameters CALL :pp_exe
IN :handle_error with parameters CALL :pp_exe
C:\Work\ARS\imapsync\W>CALL :pp_exe
Building 64 bits binary PROCESSOR_ARCHITECTURE = AMD64
C:\Strawberry\perl\site\bin/pp: Input file .\imapsync was not found
BAD END
IN :handle_error with parameters CALL :copy_with_architecture_name
Das System kann die angegebene Datei nicht finden.
BAD END
Drücken Sie eine beliebige Taste . . .
Any idea what that now could be??
To see where it hangs:
cpanm --force -v IO::Socket::SSL
To skip the tests:
cpanm -v -n IO::Socket::SSL
There is no ".\imapsync" ... Should that rather be "..\imapsync" instead? After changing .\imapsync to ..\imapsync in build_exe.bat this succeeds in building the executable files.
You're a King!
cpanm -v -n IO::Socket::SSL worked replaced .\imapsync to ..\imapsync in build_exe.bat but i get this error with latest Strawberry Perl 5.32.1.1 C:\Strawberry\perl\site\bin/pp: Cannot find module Test2/Event/Info.pm (specified with -M) update: I downloaded this file Info.pm and copied to C:\Strawberry\perl\lib\Test2\Event\Info.pm but have not tested yet