[pulseaudio-discuss] New module compiles, but can't load it

Zhang, Xing Z xing.z.zhang at intel.com
Tue Oct 14 18:45:17 PDT 2008


This issue likes something I met before when I try to load module-alsa-xxx.so.
My workaround is specifying path by param "-p", fox example:
Pulseaudio -nC -p /home/your_dir/pulseaudio/src/.libs
Pls note your must use absolute path.

Below is another way from Poettering, hope it's helpful :)

On Thu, 09.10.08 14:10, Zhang, Xing Z (xing.z.zhang at intel.com) wrote:

Heya!

> I am newbie to PA. Now I am trying to enable PA from scratch. When I
> enter “load-module module-alsa-sink” it complains “no such file
> found”, then I launch PA with param “-p /usr/lib/pulse-0.9/modules/”
> unfortunately a segmentation fault happen while I load
> module-alsa-sink. I notice default.pa uses module-hal-detect instead
> of directly loading module-asla-xxx, so I want to know whether the
> issue I met is a known bug? Or any other methods to load
> module-alsa-xxx by manual?

Hmm, do you mean you have compiled PA yourself?

If you have to pass -p then this is probably a sign that your modules dir and pa binary do not match: /usr/lib/pulse-0.9/modules probably belongs to your installed version while your are running your own.

Please note that the interface to the modules is not ABI or API stable in any way. That means, if you load a module that was compiled for a differnt PA version you will almost certainly get a segfault.

If you want to run PA from your build tree then make sure to edit ~/.pulse/daemon.conf. There, set dl-search-path to something like this:

  dl-search-path = /home/lennart/projects/pulseaudio/src/.libs

(This is the line I use, with having my GIT checkout of PA in ~/projects/pulseaudio. The .libs/ is especially important because libtool puts its .so in that hidden subdir during build time)

Hope this helps,

Lennart



>-----Original Message-----
>From: pulseaudio-discuss-bounces at mail.0pointer.de
>[mailto:pulseaudio-discuss-bounces at mail.0pointer.de] On Behalf Of James
>Ausmus
>Sent: 2008年10月15日 9:00
>To: pulseaudio-discuss at mail.0pointer.de
>Subject: [pulseaudio-discuss] New module compiles, but can't load it
>
>Hello all-
>
>I'm playing with writing a PA module for experimentation purposes - I have the
>new module written, and (finally) compiling properly (at least, it doesn't error
>out anymore), but, when I go to load the module, I get the following in the system
>log:
>
>Oct 14 17:45:06 jausmus-gentoo-dev pulseaudio[13585]: module.c: Loaded
>"module-gconf" (index: #14; argument: "").
>Oct 14 17:45:06 jausmus-gentoo-dev pulseaudio[13585]: module.c: Failed to open
>module "module-simple-enc-server": file not found
>Oct 14 17:45:06 jausmus-gentoo-dev pulseaudio[13585]: main.c: Module load
>failed.
>Oct 14 17:45:06 jausmus-gentoo-dev pulseaudio[13585]: main.c: Failed to
>initialize daemon.
>
>And then PA shuts down...
>
>However, the module exists in
>/usr/lib/pulse-0.9/modules/module-simple-enc-server.so (along with all the
>other modules that *do* work).
>
>I also get the following when I run pulseaudio --dump-modules:
>
>E: modinfo.c: Failed to open module
>"/usr/lib/pulse-0.9/modules/module-simple-enc-server": file not found
>
>
>What have I done wrong? How do I go about fixing this?
>
>Thanks!
>
>-James



More information about the pulseaudio-discuss mailing list