Skip to content

Conversation

@grendello
Copy link
Contributor

Previous version of Mono.Unix would try to resolve libc p/invokes by
looking for the msvcrt library, resulting in errors similar to the
following:

System.DllNotFoundException: Unable to load shared library 'msvcrt' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Mono.Unix.Native.Stdlib.sys_strerror(Int32 errnum)
bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Mono.Unix.Native.Stdlib.strerror(Errno errnum) in /_/src/Mono.Unix/Mono.Unix.Native/Stdlib.cs:line 1158
bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Xamarin.Tools.Zip.Utilities.GetFileType(String path, Boolean followSymlinks, FilePermissions& fileType) in /Users/runner/work/1/s/LibZipSharp/Xamarin.Tools.Zip/Utilities.Unix.cs:line 145
bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Xamarin.Tools.Zip.UnixPlatformServices.IsDirectory(ZipArchive archive, String path, Boolean& result) in /Users/runner/work/1/s/LibZipSharp/Xamarin.Tools.Zip/UnixPlatformServices.cs:line 41
bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Xamarin.Tools.Zip.PlatformServices.CallServices(Func`2 code) in /Users/runner/work/1/s/LibZipSharp/Xamarin.Tools.Zip/PlatformServices.cs:line 160
bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Xamarin.Tools.Zip.PlatformServices.IsDirectory(ZipArchive archive, String path) in /Users/runner/work/1/s/LibZipSharp/Xamarin.Tools.Zip/PlatformServices.cs:line 77
bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Xamarin.Tools.Zip.ZipArchive.AddFile(String sourcePath, String archivePath, EntryPermissions permissions, CompressionMethod compressionMethod, Boolean overwriteExisting) in /Users/runner/work/1/s/LibZipSharp/Xamarin.Tools.Zip/ZipArchive.cs:line 435
bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Xamarin.Android.Tasks.BuildApk.ExecuteWithAbi(String[] supportedAbis, String apkInputPath, String apkOutputPath, Boolean debug, Boolean compress, IDictionary`2 compressedAssembliesInfo, String assemblyStoreApkName)
bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Xamarin.Android.Tasks.BuildApk.RunTask()
bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Microsoft.Android.Build.Tasks.AndroidTask.Execute() in external/xamarin-android-tools/src/Microsoft.Android.Build.BaseTasks/AndroidTask.cs:line 17

Previous version of Mono.Unix would try to resolve `libc` p/invokes by
looking for the `msvcrt` library, resulting in errors similar to the
following:

    System.DllNotFoundException: Unable to load shared library 'msvcrt' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
    bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Mono.Unix.Native.Stdlib.sys_strerror(Int32 errnum)
    bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Mono.Unix.Native.Stdlib.strerror(Errno errnum) in /_/src/Mono.Unix/Mono.Unix.Native/Stdlib.cs:line 1158
    bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Xamarin.Tools.Zip.Utilities.GetFileType(String path, Boolean followSymlinks, FilePermissions& fileType) in /Users/runner/work/1/s/LibZipSharp/Xamarin.Tools.Zip/Utilities.Unix.cs:line 145
    bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Xamarin.Tools.Zip.UnixPlatformServices.IsDirectory(ZipArchive archive, String path, Boolean& result) in /Users/runner/work/1/s/LibZipSharp/Xamarin.Tools.Zip/UnixPlatformServices.cs:line 41
    bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Xamarin.Tools.Zip.PlatformServices.CallServices(Func`2 code) in /Users/runner/work/1/s/LibZipSharp/Xamarin.Tools.Zip/PlatformServices.cs:line 160
    bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Xamarin.Tools.Zip.PlatformServices.IsDirectory(ZipArchive archive, String path) in /Users/runner/work/1/s/LibZipSharp/Xamarin.Tools.Zip/PlatformServices.cs:line 77
    bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Xamarin.Tools.Zip.ZipArchive.AddFile(String sourcePath, String archivePath, EntryPermissions permissions, CompressionMethod compressionMethod, Boolean overwriteExisting) in /Users/runner/work/1/s/LibZipSharp/Xamarin.Tools.Zip/ZipArchive.cs:line 435
    bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Xamarin.Android.Tasks.BuildApk.ExecuteWithAbi(String[] supportedAbis, String apkInputPath, String apkOutputPath, Boolean debug, Boolean compress, IDictionary`2 compressedAssembliesInfo, String assemblyStoreApkName)
    bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Xamarin.Android.Tasks.BuildApk.RunTask()
    bin/Debug/lib/packs/Microsoft.Android.Sdk.Linux/33.0.0/tools/Xamarin.Android.Common.targets(2036,3): error XABLD7000:    at Microsoft.Android.Build.Tasks.AndroidTask.Execute() in external/xamarin-android-tools/src/Microsoft.Android.Build.BaseTasks/AndroidTask.cs:line 17
* main:
  Bump to dotnet/java-interop@a5756ca8. (dotnet#7226)
  Bump `$(AndroidNet6Version)` to 32.0.447 (dotnet#7224)
@jonpryor
Copy link
Contributor

I think this was superseded by #7309? Should we close this?

@grendello grendello closed this Aug 29, 2022
@grendello grendello deleted the update-mono.unix branch August 29, 2022 17:51
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants