[Pkg-alsa-devel] Bug#369302: libasound2: ALSA lib
control.c:816:(snd_ctl_open_noupdate) Invalid CTL default
(binary patch)
Markus Kammerstetter
office_remove_ at tbmn.org
Mon May 29 02:03:58 UTC 2006
Package: libasound2
Version: 1.0.11-6
Followup-For: Bug #369302
If you do not want to make a symlink (see Laurence J. Lane's solution), binary patching of
/usr/lib/libasound.so.2.0.0
also works just fine.
# make a backup
cp /usr/lib/libasound.so.2.0.0 /usr/lib/libasound.so.2.0.0.bak
# use a hexeditor
hexedit /usr/lib/libasound.so.2.0.0
# and modify the alsa.conf PATH string from
----------------------------------------------------------------------------------------
000A99EC 74 69 6F 6E 20 25 73 20 72 65 74 75 72 6E 65 64 20 65 72 72 6F 72 3A 20 25 73 00 00 tion %s returned error: %s..
000A9A08 2F 68 6F 6D 65 2F 6A 6F 72 64 69 2F 73 76 6E 2F 70 6B 67 2D 61 6C 73 61 2F 74 72 75 /home/jordi/svn/pkg-alsa/tru
000A9A24 6E 6B 2F 62 75 69 6C 64 2D 61 72 65 61 2F 61 6C 73 61 2D 6C 69 62 2D 31 2E 30 2E 31 nk/build-area/alsa-lib-1.0.1
000A9A40 31 2F 24 7B 70 72 65 66 69 78 7D 2F 73 68 61 72 65 2F 61 6C 73 61 2F 61 6C 73 61 2E 1/${prefix}/share/alsa/alsa.
000A9A5C 63 6F 6E 66 00 00 00 00 68 6F 6F 6B 73 20 66 61 69 6C 65 64 2C 20 72 65 6D 6F 76 69 conf....hooks failed, removi
----------------------------------------------------------------------------------------
# to this
----------------------------------------------------------------------------------------
000A9A08 2F 75 73 72 2F 73 68 61 72 65 2F 61 6C 73 61 2F 61 6C 73 61 2E 63 6F 6E 66 00 00 00 /usr/share/alsa/alsa.conf...
000A9A24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ............................
000A9A40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ............................
000A9A5C 00 00 00 00 00 00 00 00 68 6F 6F 6B 73 20 66 61 69 6C 65 64 2C 20 72 65 6D 6F 76 69 ........hooks failed, removi
----------------------------------------------------------------------------------------
This solution is pretty unconventional (at least), but if you do not want to patch the (trivial) bug in the source, recompile and reinstall, this solution is pretty forward.
If the fixed package is available it will overwrite /usr/lib/libasound.so.2.0.0 and all traces of the dirty hack solution are gone ;)
greets,
Markus
More information about the Pkg-alsa-devel
mailing list