https://bugs.winehq.org/show_bug.cgi?id=55862
Bug ID: 55862 Summary: [aarch64-musl] ws2_32.dll failed to initialize // could not load kernel32.dll Product: Wine Version: 8.19 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winsock Assignee: wine-bugs@winehq.org Reporter: winehq.org@life.at Distribution: ---
On Alpine Linux (= musl) with either, **WINE 8.19** and current **master**, I get the same errors.
It's configured like this, only lacking the mentioned dependencies:
% ../configure --disable-tests --with-mingw --enable-archs=i386,aarch64 configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported. configure: libcapi20 development files not found, ISDN won't be supported. configure: libnetapi not found, Samba NetAPI won't be supported.
Confirming the environment:
% ./wine --version wine-8.19
% uname -m aarch64
% ldd `which ls` /lib/ld-musl-aarch64.so.1 (0xffffa0732000)
Confirming libraries:
% find ./ -name ws2_32.dll -o -name kernel32.dll ./dlls/kernel32/aarch64-windows/kernel32.dll ./dlls/kernel32/i386-windows/kernel32.dll ./dlls/ws2_32/aarch64-windows/ws2_32.dll ./dlls/ws2_32/i386-windows/ws2_32.dll
% file dlls/kernel32/*/kernel32.dll dlls/kernel32/aarch64-windows/kernel32.dll: PE32+ executable (DLL) (GUI) Aarch64, for MS Windows, 14 sections dlls/kernel32/i386-windows/kernel32.dll: PE32 executable (DLL) (GUI) Intel 80386, for MS Windows, 15 sections
% file dlls/ws2_32/*/ws2_32.dll dlls/ws2_32/aarch64-windows/ws2_32.dll: PE32+ executable (DLL) (GUI) Aarch64, for MS Windows, 14 sections dlls/ws2_32/i386-windows/ws2_32.dll: PE32 executable (DLL) (GUI) Intel 80386, for MS Windows, 15 sections
The errors (same result with other exe's, like `msiexec` or `winecfg`):
% rm -Rf ~/.winevanilla ; WINEPREFIX=~/.winevanilla ./wine programs/powershell/aarch64-windows/powershell.exe wine: created the configuration directory '/home/g/.winevanilla' 002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0) 002c:err:module:loader_init "ws2_32.dll" failed to initialize, aborting 002c:err:module:loader_init Initializing dlls for L"C:\windows\system32\wineboot.exe" failed, status c0000142 wine: could not load kernel32.dll, status c0000135
% rm -Rf ~/.winevanilla ; WINEPREFIX=~/.winevanilla ./wine programs/powershell/i386-windows/powershell.exe wine: created the configuration directory '/home/g/.winevanilla' 002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0) 002c:err:module:loader_init "ws2_32.dll" failed to initialize, aborting 002c:err:module:loader_init Initializing dlls for L"C:\windows\system32\wineboot.exe" failed, status c0000142 0024:err:environ:init_peb starting L"Z:\home\g\Downloads\wine\build\programs\powershell\i386-windows\powershell.exe" in experimental wow64 mode 0024:err:module:init_wow64 could not load L"C:\windows\system32\wow64.dll", status c0000135
_(Issue originally created on [Hangover](https://github.com/AndreRH/hangover/issues/141))_