Symbol "_snd_pcm_query_chmaps" not found in libasound.so.2
Running a 32-bit x86 SDL app under box64 on aarch64, its ALSA audio init fails with:
Failed loading snd_pcm_query_chmaps: Symbol "_snd_pcm_query_chmaps" not found in libasound.so.2
The wrapped 32-bit libasound.so.2 doesn't seem to export snd_pcm_query_chmaps. SDL falls back to no audio.
Would it be possible to add that symbol to the wrapper?
(Appreciate your work, as always.)
Ok, I added that function
Superb! Thank you very much, I'll pull and rebuild and let you know if audio comes up.
I tested it tonight and we have sound :) I then hit a crash in box64's wrapped snd_strerror under Box32. When ALSA can't open a card, the app calls snd_strerror to format the error and box64 aborts on it:
[BOX32] Warning, pointer 0x7f4bb60b30 is not a 32bits value 9651|SIGABRT @... x64pc=.../"box64/snd_strerror + 0x13"
Looks like the wrapped snd_strerror hands back a native 64-bit pointer that isn't converted for the 32-bit guest. i386 app + ALSA with no card reproduces it every time.
(As always, I have a full log if useful and thanks for your great work)
Oh, a SIGABRT because message pointer is not 32bits compatible. I see. I'll fix that.
Ok, that should be fixed now.
Fixed 😎
Good, thanks for the feedback.