darlinghq / darling

Darwin/macOS emulation layer for Linux
http://www.darlinghq.org
GNU General Public License v3.0
11.33k stars 435 forks source link

_kSCEntNetAirPort missing from SystemConfiguration #1195

Open bpint opened 2 years ago

bpint commented 2 years ago

Framework _kSCEntNetAirPort missing from SystemConfiguration

Test Application Tecent Meeting from https://meeting.tencent.com/

Steps To Reproduce

  1. Build darling from source
  2. Run Tecent Meeting from command line I got darling server crash,
    darlingserver duct-tape panic: "bad RIP"@/home/bpint/darling/src/external/darlingserver/duct-tape/src/thread.c:212 semaphore_timedwait failed (internally): -111

    and also framework error,

    Darling [/Applications]$ /Applications/TencentMeeting.app/Contents/MacOS/TencentMeeting 
    2022-07-26 19:56:18.884 TencentMeeting[111:3e8] start module create: /Applications/TencentMeeting.app/Contents/Frameworks/WeMeetFramework.framework/Versions/Current/Frameworks/wemeet_process.framework
    2022-07-26 19:56:19.187 TencentMeeting[111:111] Error loading /Applications/TencentMeeting.app/Contents/Frameworks/WeMeetFramework.framework/Versions/Current/Frameworks/wemeet_process.framework/wemeet_process:  dlopen(/Applications/TencentMeeting.app/Contents/Frameworks/WeMeetFramework.framework/Versions/Current/Frameworks/wemeet_process.framework/wemeet_process, 265): Symbol not found: _kSCEntNetAirPort
    Referenced from: /Applications/TencentMeeting.app/Contents/MacOS/../Frameworks/WeMeetFramework.framework/Versions/Current/Frameworks/wemeet_base.framework/Versions/A/wemeet_base
    Expected in: /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    in /Applications/TencentMeeting.app/Contents/MacOS/../Frameworks/WeMeetFramework.framework/Versions/Current/Frameworks/wemeet_base.framework/Versions/A/wemeet_base
    2022-07-26 19:56:19.191 TencentMeeting[111:111] Error loading /Applications/TencentMeeting.app/Contents/Frameworks/WeMeetFramework.framework/Versions/Current/Frameworks/wemeet_process.framework/wemeet_process:  dlopen(/Applications/TencentMeeting.app/Contents/Frameworks/WeMeetFramework.framework/Versions/Current/Frameworks/wemeet_process.framework/wemeet_process, 265): Symbol not found: _kSCEntNetAirPort
    Referenced from: /Applications/TencentMeeting.app/Contents/MacOS/../Frameworks/WeMeetFramework.framework/Versions/Current/Frameworks/wemeet_base.framework/Versions/A/wemeet_base
    Expected in: /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    in /Applications/TencentMeeting.app/Contents/MacOS/../Frameworks/WeMeetFramework.framework/Versions/Current/Frameworks/wemeet_base.framework/Versions/A/wemeet_base
    semaphore_signal failed (internally): -111
    Illegal instruction: 4 (core dumped)

    After that, darlingserver process became a zombie and was not able to be killed -9.

    bpint     238803  215881  0 19:15 pts/0    00:00:00 darling shell
    bpint     238804  238803  0 19:15 pts/0    00:00:01 [darlingserver] <defunct>
    bpint     241793   20574  0 19:47 pts/1    00:00:00 darling shell

System Information Ubuntu 22.04

Software Version
Darling e385bb9
BierDav commented 8 months ago

Similar issue when trying to install dotnet 8.0 via the .pkg file:

Darling [/Volumes/SystemRoot/mnt/c/Users/David Bieregger/Downloads]$ installer -pkg dotnet-sdk-8.0.100-osx-x64.pkg -target /
installer: Package name is Microsoft .NET SDK 8.0.100 (x64)
installer: Installing at base path /
installer: Installing selected choice Microsoft .NET Targeting Pack 8.0.0 (x64)
installer: Installing package com.microsoft.dotnet.pack.targeting.8.0.0.component.osx.x64 version 8.0.0 (35976 KB)
installer: Extracting files
installer: Installing selected choice Microsoft .NET Standard 2.1 Targeting Pack 2.1.0 (x64)
installer: Installing package com.microsoft.netstandard.pack.targeting.2.1.0.component.osx.x64 version 2.1.0 (19735 KB)
installer: Extracting files
installer: Installing selected choice Microsoft .NET AppHost Pack  (x64)
installer: Installing package com.microsoft.dotnet.pack.apphost.8.0.0.component.osx.x64 version 8.0.0 (12330 KB)
installer: Extracting files
installer: Installing selected choice Microsoft .NET Runtime 8.0.0 (x64)
installer: Installing package com.microsoft.dotnet.sharedframework.Microsoft.NETCore.App.8.0.0.component.osx.x64 version 8.0.0 (70018 KB)
installer: Extracting files
installer: Installing selected choice Microsoft .NET Host FX Resolver 8.0.0 (x64)
installer: Installing package com.microsoft.dotnet.hostfxr.8.0.0.component.osx.x64 version 8.0.0 (401 KB)
installer: Extracting files
installer: Installing selected choice Microsoft .NET Host 8.0.0 (x64)
installer: Installing package com.microsoft.dotnet.sharedhost.component.osx.x64 version 8.0.0 (230 KB)
installer: Extracting files
/usr/local/share/dotnet
/usr/local/share/dotnet
/usr/local/share/dotnet
installer: Installing selected choice Microsoft .NET SDK 8.0.100 (x64)
installer: Installing package com.microsoft.dotnet.dev.8.0.100.component.osx.x64 version 8.0.100 (428151 KB)
installer: Extracting files
semaphore_timedwait failed (internally): -111
                                             semaphore_timedwait failed (internally): -111
                                                                                          semaphore_timedwait failed (internally): -111
*** dserver_rpc_interrupt_enter failed with code -111 ***

After that darling is completely dead. You have to restart the whole wsl instance to get it back working.