Skip to content

musl support, Alpine, OpenWRT #10

@bcookatpcsd

Description

@bcookatpcsd

This is amazing, thank you so much for this..

works and does just what it should.

Bound udp listener on 0.0.0.0. Joined multicast group 239.0.1.2. Port 20480. Waiting to receive data...

Received 54 bytes from 10.120.48.195:50516: "Simple Multicast Testing Tool for Windows @ 2:03:27 PM"
Received 54 bytes from 10.120.48.195:50516: "Simple Multicast Testing Tool for Windows @ 2:03:28 PM"
Received 54 bytes from 10.120.48.195:50516: "Simple Multicast Testing Tool for Windows @ 2:03:29 PM"
Received 54 bytes from 10.120.48.195:50516: "Simple Multicast Testing Tool for Windows @ 2:03:30 PM"
Received 54 bytes from 10.120.48.195:50516: "Simple Multicast Testing Tool for Windows @ 2:03:31 PM"

Testing from Windows to Linux (glibc) server..

(from Alpine)

 ldd multicast-test-linux-x64
        /lib64/ld-linux-x86-64.so.2 (0x7f5a8c4a2000)
        libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f5a8c4a2000)
        libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7f5a8c4a2000)
        libz.so.1 => /usr/lib/libz.so.1 (0x7f5a8c481000)
        libm.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f5a8c4a2000)
        librt.so.1 => /lib64/ld-linux-x86-64.so.2 (0x7f5a8c4a2000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7f5a8c455000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f5a8b400000)
        libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f5a8c4a2000)
Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by multicast-test-linux-x64)
Error relocating multicast-test-linux-x64: __strdup: symbol not found
Error relocating multicast-test-linux-x64: __isnan: symbol not found
Error relocating multicast-test-linux-x64: __isnanf: symbol not found

I added the Alpine gcompat package..

 ./multicast-test-linux-x64 -h
Process terminated. Couldn't find a valid ICU package installed on the system. Please install libicu (or icu-libs) using your package manager and try again. Alternative                                                ly you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. Please see https://aka.ms/dotnet-missing-                                                libicu for more information.
   at System.Environment.FailFast(System.String)
   at System.Globalization.GlobalizationMode+Settings..cctor()
   at System.Globalization.Ordinal.IndexOfOrdinalIgnoreCase(System.ReadOnlySpan`1<Char>, System.ReadOnlySpan`1<Char>)
   at System.Globalization.Ordinal.IndexOf(System.String, System.String, Int32, Int32, Boolean)
   at System.TerminalFormatStrings..ctor(Database)
   at System.ConsolePal+<>c.<.cctor>b__114_0()
   at System.Lazy`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].ViaFactory(System.Threading.LazyThreadS                                                afetyMode)
   at System.Lazy`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].ExecutionAndPublication(System.LazyHelp                                                er, Boolean)
   at System.Lazy`1[[System.__Canon, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].CreateValue()
   at System.ConsolePal.EnsureInitializedCore()
   at System.ConsolePal.Write(Microsoft.Win32.SafeHandles.SafeFileHandle, System.ReadOnlySpan`1<Byte>, Boolean)
   at System.IO.StreamWriter.Flush(Boolean, Boolean)
   at System.IO.StreamWriter.WriteLine(System.String)
   at System.IO.TextWriter+SyncTextWriter.WriteLine(System.String)
   at System.Console.WriteLine(System.String)
   at multicast_test.Program.Main(System.String[])
fish: Job 1, './multicast-test-linux-x64 -h' terminated by signal SIGABRT (Abort)

Also needed the icu-libs package..

icu-libs, and gcompat.. (in Alpine)

Now working..
Image

I cannot seem to find any OpenWRT packages for the missing libraries..

Again, thank you so very much for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions