Build Error: Perl 5.34.0 on Windows (Package Win32)

Package Win32 failed to install - log shown below.

Downloading builder for 01cfffa7-3da2-5538-ba74-0d75d1eb5faf from s3://platform-sources/builder/aaae6fc9dec3be7b98fa90ba3dcfe37c5330b5a04fc16b1b77cfbc5bd1693f77/perl-module-builder.tar.gz
Downloading s3://platform-sources/builder/aaae6fc9dec3be7b98fa90ba3dcfe37c5330b5a04fc16b1b77cfbc5bd1693f77/perl-module-builder.tar.gz to C:\Users\ContainerAdministrator\AppData\Local\Temp\perl-module-builder.tar.gz...
Validating C:\Users\ContainerAdministrator\AppData\Local\Temp\perl-module-builder.tar.gz against checksum aaae6fc9dec3be7b98fa90ba3dcfe37c5330b5a04fc16b1b77cfbc5bd1693f77...
Builder downloaded and unpacked.
Downloading ingredient 01cfffa7-3da2-5538-ba74-0d75d1eb5faf from s3://platform-sources/data-acquisition/0419afe68f5ee371abe77fa23089111ce2008dab28a6367d0f2358e91fda3d92/Win32-0.58.tar.gz
Downloading s3://platform-sources/data-acquisition/0419afe68f5ee371abe77fa23089111ce2008dab28a6367d0f2358e91fda3d92/Win32-0.58.tar.gz to C:\Users\ContainerAdministrator\AppData\Local\Temp\Win32-0.58.tar.gz...
Validating C:\Users\ContainerAdministrator\AppData\Local\Temp\Win32-0.58.tar.gz against checksum 0419afe68f5ee371abe77fa23089111ce2008dab28a6367d0f2358e91fda3d92...
Sources downloaded and unpacked.
No patches required, skipping patching...
Patching handled.
Unpacking dependency @s3://as-builds/production/language/perl/5.34.0/4/bf26bbcd-4e27-545e-b5e7-3c14fb731257/artifact.tar.gz
Downloading s3://as-builds/production/language/perl/5.34.0/4/bf26bbcd-4e27-545e-b5e7-3c14fb731257/artifact.tar.gz to C:\cache\bf26bbcd-4e27-545e-b5e7-3c14fb731257\artifact.tar.gz...
replacing C:\builds\outputs\bf26bbcd-4e27-545e-b5e7-3c14fb731257\installdir with C:\builds\deps\01cfffa7-3da2-5538-ba74-0d75d1eb5faf\installdir in files
  lib/Config_heavy.pl
replacing C:\\builds\\outputs\\bf26bbcd-4e27-545e-b5e7-3c14fb731257\\installdir with C:\\builds\\deps\\01cfffa7-3da2-5538-ba74-0d75d1eb5faf\\installdir in files
  lib/Config.pm
  lib/CORE/config.h
Unpacking dependency @s3://platform-sources/builder/f307847ad7e70b9a7b9756a0336ad1ce139189db5261a49e24a6dcc0c628171c/perl-module-lib.tar.gz
Downloading s3://platform-sources/builder/f307847ad7e70b9a7b9756a0336ad1ce139189db5261a49e24a6dcc0c628171c/perl-module-lib.tar.gz to C:\cache\8a27bd28-8773-5d2b-93ac-5896e4b1c277\perl-module-lib.tar.gz...
Dependencies downloaded and unpacked.
Executing builder command C:\builds\builders\01cfffa7-3da2-5538-ba74-0d75d1eb5faf\build.bat --libs=-L'C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64' --libs=-luserenv
Building in C:\builds\sources\01cfffa7-3da2-5538-ba74-0d75d1eb5faf\Win32-0.58
Running [perl Makefile.PL PREFIX=C:\builds\outputs\01cfffa7-3da2-5538-ba74-0d75d1eb5faf\installdir\site LIBS=-L'C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64' -luserenv]...
Warning (mostly harmless): No library found for -lmoldname

Checking if your kit is complete...

Looks good

Generating a gmake-style Makefile

Writing Makefile for Win32

Writing MYMETA.yml and MYMETA.json

Running [gmake]...
Win32.o:Win32.c:(.text+0x43a8): undefined reference to `WinHttpCrackUrl'

Win32.o:Win32.c:(.text+0x43f8): undefined reference to `WinHttpCloseHandle'

Win32.o:Win32.c:(.text+0x45ce): undefined reference to `WinHttpOpen'

Win32.o:Win32.c:(.text+0x45f3): undefined reference to `WinHttpConnect'

Win32.o:Win32.c:(.text+0x4648): undefined reference to `WinHttpOpenRequest'

Win32.o:Win32.c:(.text+0x46ec): undefined reference to `WinHttpGetProxyForUrl'

Win32.o:Win32.c:(.text+0x4729): undefined reference to `WinHttpSendRequest'

Win32.o:Win32.c:(.text+0x4754): undefined reference to `WinHttpCloseHandle'

Win32.o:Win32.c:(.text+0x4761): undefined reference to `WinHttpCloseHandle'

Win32.o:Win32.c:(.text+0x4936): undefined reference to `WinHttpReceiveResponse'

Win32.o:Win32.c:(.text+0x4977): undefined reference to `WinHttpQueryHeaders'

Win32.o:Win32.c:(.text+0x49bb): undefined reference to `WinHttpQueryHeaders'

Win32.o:Win32.c:(.text+0x4a8c): undefined reference to `WinHttpReadData'

Win32.o:Win32.c:(.text+0x4b12): undefined reference to `WinHttpSetOption'

Win32.o:Win32.c:(.text+0x4b62): undefined reference to `WinHttpSetOption'

collect2.exe: error: ld returned 1 exit status
cp Win32.pm blib\lib\Win32.pm

Running Mkbootstrap for Win32 ()
"C:\builds\deps\01cfffa7-3da2-5538-ba74-0d75d1eb5faf\installdir\bin\perl.exe" -MExtUtils::Command -e chmod -- 644 "Win32.bs"

"C:\builds\deps\01cfffa7-3da2-5538-ba74-0d75d1eb5faf\installdir\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonempty -- Win32.bs blib\arch\auto\Win32\Win32.bs 644

"C:\builds\deps\01cfffa7-3da2-5538-ba74-0d75d1eb5faf\installdir\bin\perl.exe" "C:\builds\deps\01cfffa7-3da2-5538-ba74-0d75d1eb5faf\installdir\lib\ExtUtils/xsubpp"  -typemap C:\builds\deps\01cfffa7-3da2-5538-ba74-0d75d1eb5faf\installdir\lib\ExtUtils\typemap  Win32.xs > Win32.xsc

"C:\builds\deps\01cfffa7-3da2-5538-ba74-0d75d1eb5faf\installdir\bin\perl.exe" -MExtUtils::Command -e mv -- Win32.xsc Win32.c

gcc -c   -DWIN32 -DWIN64 -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -D__USE_MINGW_ANSI_STDIO -fwrapv -fno-strict-aliasing -mms-bitfields -s -O2   -DVERSION=\"0.58\" -DXS_VERSION=\"0.58\"  "-IC:\builds\deps\01cfffa7-3da2-5538-ba74-0d75d1eb5faf\installdir\lib\CORE"   Win32.c

"C:\builds\deps\01cfffa7-3da2-5538-ba74-0d75d1eb5faf\installdir\bin\perl.exe" -MExtUtils::Mksymlists \

     -e "Mksymlists('NAME'=>\"Win32\", 'DLBASE' => 'Win32', 'DL_FUNCS' => {  }, 'FUNCLIST' => [], 'IMPORTS' => {  }, 'DL_VARS' => []);"

g++ Win32.def -o blib\arch\auto\Win32\Win32.dll -mdll -s -L"C:\builds\deps\01cfffa7-3da2-5538-ba74-0d75d1eb5faf\installdir\lib\CORE" -L"C:\MinGW\lib" -L"C:\MinGW\x86_64-w64-mingw32\lib" -L"C:\MinGW\lib\gcc\x86_64-w64-mingw32\8.1.0" Win32.o   "C:\builds\deps\01cfffa7-3da2-5538-ba74-0d75d1eb5faf\installdir\lib\CORE\libperl534.a" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\userenv.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\kernel32.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\user32.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\gdi32.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\winspool.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\comdlg32.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\advapi32.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\shell32.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\ole32.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\oleaut32.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\netapi32.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\uuid.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\ws2_32.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\mpr.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\winmm.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\version.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\odbc32.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\odbccp32.lib" "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x64\comctl32.lib" -Wl,--enable-auto-image-base

gmake: *** [Makefile:472: blib\arch\auto\Win32\Win32.dll] Error 1

gmake failed: 'gmake' exited with value 2 at C:\builds\builder-deps\01cfffa7-3da2-5538-ba74-0d75d1eb5faf\installdir\lib/ActiveState/ModuleBuilder.pm line 446.
Build complete.
Archiving output...
No files were produced as a result of this build.
Uploading CHECKSUM -> s3://as-builds/production/language/perl/Win32/0.58/1/01cfffa7-3da2-5538-ba74-0d75d1eb5faf/CHECKSUM
Uploading artifact.tar.gz -> s3://as-builds/production/language/perl/Win32/0.58/1/01cfffa7-3da2-5538-ba74-0d75d1eb5faf/artifact.tar.gz
Uploading C:\builds\meta\01cfffa7-3da2-5538-ba74-0d75d1eb5faf\exitcode -> s3://as-builds/production/language/perl/Win32/0.58/1/01cfffa7-3da2-5538-ba74-0d75d1eb5faf/exitcode

Выбери Configuration / Dependencies / Win32 / Choose different version / 0.57

Thanks for reporting! We noticed a new Win32 release today, but it’s missing a piece of configuration that lets us build it properly.

We’ve temporarily withheld version 0.58 from our public catalog for now until we’ve verified that it builds successfully.

In the meantime, you can either choose a different version like you did (0.57) or you can leave the Win32 package set to Auto (or, if you’re using the Windows bundle), make any change to your project. That will select a version of Win32 from the current catalog, and should continue to the build process.

1 Like