sedmelluq / lavaplayer

Audio player library for Discord
Apache License 2.0
966 stars 247 forks source link

Add support for musl #537

Open vilgotf opened 4 years ago

vilgotf commented 4 years ago

core dump: dump.txt

Steps to reproduce: (with red-discordbot)

  1. Play something
  2. Change volume mid playback
  3. Crash

Related: Cog-Creators/Red-DiscordBot/issues/4520 #177

sedmelluq commented 4 years ago

This is effectively a feature request to support musl. The most reliable way to support it would be to compile the natives for musl separately and make the native lib loader detect which one it should load.

awesomekosm commented 2 years ago

You can patch elf with glibc interpreter if you don't want to recompile and still get a smaller image. Here is an example, check the Dockerfile

@cedrickring fyi

e00E commented 2 years ago

I have probably the same issue. Documented in more detail here https://github.com/jagrosh/MusicBot/issues/1087 . If I understand this right lavaplayer is shipping it's own native library that will be embedded in the jar file and that native library is not platform independent? In that case I feel the proper way to do this is to static link libc too so that you do not depend on the platform libc. That should make it work on all forms of Linux.