imapsync icon indicating copy to clipboard operation
imapsync copied to clipboard

build_exe.bat hangs with "Building and testing IO-Socket-SSL-2.071 ..."

Open kai-uwe-rommel opened this issue 3 years ago • 9 comments

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!

kai-uwe-rommel avatar Jun 05 '21 17:06 kai-uwe-rommel

I usually install IO-Socket-SSL in force on Windows, as tests never pass. Then cross your fingers for this unsafe practice :-)

gilleslamiral avatar Jun 05 '21 19:06 gilleslamiral

I'm new to Perl etc. ... can you please explain what exactly to do? Thanks!

kai-uwe-rommel avatar Jun 05 '21 20:06 kai-uwe-rommel

cpanm --force IO::Socket::SSL

https://github.com/imapsync/imapsync/blob/master/W/install_module_ssl.bat

gilleslamiral avatar Jun 05 '21 21:06 gilleslamiral

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 ...                                             

kai-uwe-rommel avatar Jun 06 '21 07:06 kai-uwe-rommel

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??

kai-uwe-rommel avatar Jun 06 '21 08:06 kai-uwe-rommel

To see where it hangs:

cpanm --force -v IO::Socket::SSL

To skip the tests:

cpanm -v -n IO::Socket::SSL

gilleslamiral avatar Jun 06 '21 08:06 gilleslamiral

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.

kai-uwe-rommel avatar Jun 06 '21 08:06 kai-uwe-rommel

You're a King!

gilleslamiral avatar Jun 06 '21 09:06 gilleslamiral

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

gaborbit avatar Sep 25 '21 21:09 gaborbit