LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   PulseAudio 2.0 and Slackware64 13.37 (http://www.linuxquestions.org/questions/slackware-14/pulseaudio-2-0-and-slackware64-13-37-a-4175420998/)

Refractor 08-08-2012 08:45 AM

PulseAudio 2.0 and Slackware64 13.37
 
Greetings!
I compiled pulseaudio and alsa-plugins from source (I need pulse for a project I'm working on).

This is the way I built the packages:

Code:

tar -xfv pulseaudio-2.0.tar.xz
cd pulseaudio-2.0
./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --localstatedir=/var --mandir=/usr/man --docdir=/usr/doc
make -j5
make install DESTDIR=$(pwd)/pkg
cd pkg
makepkg -c n -l y $HOME/pulseaudio-2.0-x86_64-1ax.txz

So far so good.
Installing with upgradepkg --install-new $HOME/pulseaudio*.txz
Next is alsa plugins:
Code:

tar -xvf alsa-plugins-1.0.25.tar.bz2
cd alsa-plugins-1.0.25
./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --localstatedir=/var --mandir=/usr/man --docdir=/usr/doc
make
make install DESTDIR=$(pwd)/pkg
cd pkg
makepkg -c n -l y $HOME/alsa-plugins-1.0.25-x86_64-1ax.txz

Installing with upgradepkg --install-new $HOME/alsa-plugins-*.txz


Running the pulse daemon as user (yes, I am in group audio)
Code:

pulseaudio --start #It starts without any warnings
Adding to $HOME/.asoundrc
Code:

pcm.pulse {
        type pulse
}

ctl.pulse {
        type pulse
}

and finally
aplay -Dpulse $HOME/test.wav
....
aplay -Dpulse test.wav
ALSA lib dlmisc.c:236:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib64/alsa-lib/libasound_module_pcm_pulse.so
aplay: main:660: audio open error: No such device or address

I'm clueless what to do now.
I added user/group pulse, I added user pulse to group audio, I tried running pulseaudio as a system daemon to no avail. Help!

Ser Olmy 08-08-2012 09:07 AM

The error message seems pretty straightforward; aplay cannot locate a library file:

Quote:

Originally Posted by Refractor (Post 4748906)
ALSA lib dlmisc.c:236:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib64/alsa-lib/libasound_module_pcm_pulse.so

What does locate libasound_module_pcm_pulse.so tell you? (You may have to run locate -u first to update the slocate database.)

Refractor 08-08-2012 10:03 AM

Actually aplay cannot find a device or address.
The library is there:
Code:

axtroz@Slack64:/etc/pulse$ cat /var/log/packages/alsa-plugins-1.0.25-x86_64-1ax
PACKAGE NAME:    alsa-plugins-1.0.25-x86_64-1ax
COMPRESSED PACKAGE SIZE:    116K
UNCOMPRESSED PACKAGE SIZE:    500K
PACKAGE LOCATION: /home/axtroz/alsa-plugins-1.0.25-x86_64-1ax.txz
PACKAGE DESCRIPTION:
FILE LIST:
./
usr/
usr/lib64/
usr/lib64/alsa-lib/
usr/lib64/alsa-lib/libasound_module_pcm_vdownmix.la
usr/lib64/alsa-lib/libasound_module_pcm_vdownmix.so
usr/lib64/alsa-lib/libasound_module_pcm_oss.la
usr/lib64/alsa-lib/libasound_module_pcm_oss.so
usr/lib64/alsa-lib/libasound_module_conf_pulse.la
usr/lib64/alsa-lib/libasound_module_conf_pulse.so
usr/lib64/alsa-lib/libasound_module_ctl_arcam_av.la
usr/lib64/alsa-lib/libasound_module_ctl_arcam_av.so
usr/lib64/alsa-lib/libasound_module_pcm_usb_stream.la
usr/lib64/alsa-lib/libasound_module_pcm_usb_stream.so
usr/lib64/alsa-lib/libasound_module_rate_speexrate.la
usr/lib64/alsa-lib/libasound_module_rate_speexrate.so
usr/lib64/alsa-lib/libasound_module_pcm_speex.la
usr/lib64/alsa-lib/libasound_module_pcm_speex.so
usr/lib64/alsa-lib/libasound_module_pcm_pulse.la <-----
usr/lib64/alsa-lib/libasound_module_pcm_pulse.so <-----
usr/lib64/alsa-lib/libasound_module_rate_samplerate.la
usr/lib64/alsa-lib/libasound_module_rate_samplerate.so
usr/lib64/alsa-lib/libasound_module_ctl_pulse.la
usr/lib64/alsa-lib/libasound_module_ctl_pulse.so
usr/lib64/alsa-lib/libasound_module_pcm_upmix.la
usr/lib64/alsa-lib/libasound_module_pcm_upmix.so
usr/lib64/alsa-lib/libasound_module_ctl_oss.la
usr/lib64/alsa-lib/libasound_module_ctl_oss.so
usr/share/
usr/share/alsa/
usr/share/alsa/alsa.conf.d/
usr/share/alsa/alsa.conf.d/50-pulseaudio.conf
usr/share/alsa/alsa.conf.d/99-pulseaudio-default.conf.example
install/
install/doinst.sh

Also,
Code:

axtroz@Slack64:/etc/pulse$ ls /usr/lib64/alsa-lib/ | grep pulse
libasound_module_conf_pulse.la*
libasound_module_conf_pulse.so*
libasound_module_ctl_pulse.la*
libasound_module_ctl_pulse.so*
libasound_module_pcm_pulse.la*
libasound_module_pcm_pulse.so*

and
strace aplay -Dpulse: http://pastebin.com/Nz1710zV (it's really long)

As far as I can tell from strace, it opens the library successfully but it still fails with can't open device or address.


All times are GMT -5. The time now is 02:00 AM.