Subject: bug#31591: alsamixer Cannot open shared library libasound_module_ctl_pulse.so

From: Ricardo Wurmus <[email-masked]>
Date: Fri, 15 Jun 2018 13:43:33 +0200

Hi Julien,

>> $ alsamixer
>> --8<---------------cut here---------------start------------->8---
>> ALSA lib dlmisc.c:287:(snd1_dlobj_cache_get) Cannot open shared
>> library
>> /gnu/store/98fa0av6rsj9kzrhdw45n9k53gp0d4dg-alsa-lib-1.1.6/lib/alsa-lib/libasound_module_ctl_pulse.so
>> ((null):
>> /gnu/store/98fa0av6rsj9kzrhdw45n9k53gp0d4dg-alsa-lib-1.1.6/lib/alsa-lib/libasound_module_ctl_pulse.so:
>> cannot open shared object file: No such file or directory)
>> cannot open mixer: No such device or address
>> --8<---------------cut here---------------end--------------->8---
>>
>> alsa-lib doesn't contain libasound_module_ctl_pulse.so
>>
>> $ find /gnu/store/98fa0av6rsj9kzrhdw45n9k53gp0d4dg-alsa-lib-1.1.6/lib
>> --8<---------------cut here---------------start------------->8---
>> /gnu/store/98fa0av6rsj9kzrhdw45n9k53gp0d4dg-alsa-lib-1.1.6/lib
>> /gnu/store/98fa0av6rsj9kzrhdw45n9k53gp0d4dg-alsa-lib-1.1.6/lib/libasound.so
>> /gnu/store/98fa0av6rsj9kzrhdw45n9k53gp0d4dg-alsa-lib-1.1.6/lib/libasound.la
>> /gnu/store/98fa0av6rsj9kzrhdw45n9k53gp0d4dg-alsa-lib-1.1.6/lib/libasound.so.2
>> /gnu/store/98fa0av6rsj9kzrhdw45n9k53gp0d4dg-alsa-lib-1.1.6/lib/pkgconfig
>> /gnu/store/98fa0av6rsj9kzrhdw45n9k53gp0d4dg-alsa-lib-1.1.6/lib/pkgconfig/alsa.pc
>> /gnu/store/98fa0av6rsj9kzrhdw45n9k53gp0d4dg-alsa-lib-1.1.6/lib/libasound.so.2.0.0
>> --8<---------------cut here---------------end--------------->8---
>>
>> but alsa-plugins:pulseaudio does
>>
>> $ find
>> /gnu/store/cfz7jvkzp3k2ginvzz35pyp7zffabksk-alsa-plugins-1.1.6-pulseaudio
>> | grep libasound_module_ctl_pulse.so
>> --8<---------------cut here---------------start------------->8---
>> /gnu/store/cfz7jvkzp3k2ginvzz35pyp7zffabksk-alsa-plugins-1.1.6-pulseaudio/lib/alsa-lib/libasound_module_ctl_pulse.so
>> --8<---------------cut here---------------end--------------->8---
>>
>> Still after install alsa-utils and alsa-plugins:pulseaudio in my user
>> profile (I also have alsamixer in system profile), alsamixer cannot
>> find
>> libasound_module_ctl_pulse.so

[…]

> I've sent a patch to the mailing list for this issue already. I think
> I'll push it this evening.
>
> https://lists.gnu.org/archive/html/guix-patches/2018-04/msg00351.html

I still see the reported behaviour.  I only installed “alsa-utils” in my
default profile, not the pulseaudio plugin.

Can we avoid this problem by including the pulseaudio plugin
automatically when alsa-services is configured to use pulseaudio?

--
Ricardo