1 |
Richard Fish: |
2 |
> The workaround to this is to use a wrapper such as aoss or |
3 |
> vmware-dsp that fakes out the application when it tries to open |
4 |
> /dev/dsp and uses another audio API instead (alsa for aoss, esd or |
5 |
> artsd for vmware-dsp). |
6 |
|
7 |
Since vmware-dsp (which is ~amd64) doesn't compile, I have: |
8 |
- emerged alsa-oss |
9 |
- chmod +s /usr/lib/libaoss.so.* |
10 |
- created a script: |
11 |
|
12 |
#!/bin/bash |
13 |
LD_PRELOAD=libaoss.so exec /opt/vmware/workstation/bin/vmware & |
14 |
|
15 |
Now: |
16 |
i) if I run the script as myself, sound doesn't work and I get |
17 |
ERROR: ld.so: object 'libaoss.so' from LD_PRELOAD cannot be preloaded: |
18 |
ignored. |
19 |
I get the same result if I run "aoss vmware". |
20 |
As to ldd /usr/lib/libaoss.so.0.0.0: |
21 |
libalsatoss.so.0 => /usr/lib/libalsatoss.so.0 |
22 |
(0x00002b09ff97f000) |
23 |
libc.so.6 => /lib/libc.so.6 (0x00002b09ffa89000) |
24 |
libasound.so.2 => /usr/lib/libasound.so.2 (0x00002b09ffcb4000) |
25 |
libm.so.6 => /lib/libm.so.6 (0x00002b09ffe8b000) |
26 |
libdl.so.2 => /lib/libdl.so.2 (0x00002b09fffe0000) |
27 |
libpthread.so.0 => /lib/libpthread.so.0 (0x00002b0a000e4000) |
28 |
/lib64/ld-linux-x86-64.so.2 (0x0000555555554000) |
29 |
|
30 |
ii) if I run the script as root, sound works! |
31 |
|
32 |
So, it looks like a matter of permissions, but I can't guess what I |
33 |
should change. I hope that you can ;-) |
34 |
|
35 |
Cheers |
36 |
Sergio |
37 |
-- |
38 |
gentoo-user@g.o mailing list |