Skip to content

Commit

Permalink
Update Mono.Unix version
Browse files Browse the repository at this point in the history
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
  • Loading branch information
grendello committed Aug 1, 2022
1 parent 57d42a8 commit 4c233c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build-tools/xaprepare/xaprepare/xaprepare.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<PackageReference Include="7-Zip.CommandLine" Version="18.1.0" GeneratePathProperty="true" />
<PackageReference Include="Kajabity.Tools.Java" Version="0.2.6862.30334" />
<PackageReference Include="Mono.Options" Version="$(MonoOptionsVersion)" />
<PackageReference Include="Mono.Unix" Version="7.0.0-final.1.21369.2" />
<PackageReference Include="Mono.Unix" Version="7.1.0-final.1.21458.1" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.Private.Uri" Version="4.3.2" />
<PackageReference Include="Xamarin.LibZipSharp" Version="$(LibZipSharpVersion)" GeneratePathProperty="true" />
Expand Down
2 changes: 1 addition & 1 deletion external/xamarin-android-tools

0 comments on commit 4c233c9

Please sign in to comment.