Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114426 - libasound.so from emul-linux-x86-soundlibs incompatible with alsa-lib-1.0.10
Summary: libasound.so from emul-linux-x86-soundlibs incompatible with alsa-lib-1.0.10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-04 03:29 UTC by Tomas Carnecky
Modified: 2005-12-06 14:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Carnecky 2005-12-04 03:29:32 UTC
I installed emul-linux-x86-soundlibs and alsa-lib-1.0.10 and I got strange
errors when I tried to run a 64bit app (mplayer) and a 32bit app (wine) at the
same time. The errors were:
ALSA lib pcm_dmix.c:788:(snd_pcm_dmix_open) unable to create IPC shm instance
mplayer: pcm_params.c:187: snd_pcm_hw_param_get_min: Assertion
`!snd_interval_empty(i)' failed.

After compiling alsa-lib-1.0.10 for 32bit and putting the libraries to the right
directory everything works fine.

to compile alsa-lib for 32bit, just use this:
./configure --prefix=/home/yourname/root LDFLAGS="-L/emul/linux/x86/usr/lib
-m32" CFLAGS="-L/emul/linux/x86/usr/lib -m32"

and copy /home/yourname/root/usr/lib/libasound.so.2.0.0 to /emul/linux/x86/usr/lib

Reproducible: Always
Steps to Reproduce:
Comment 1 Christian Parpart (RETIRED) gentoo-dev 2005-12-06 01:48:25 UTC
I'd *highly* appreciate when we can come up with a even more ideal solution on 
this 
 
by removing alsa-libs/alsa-oss 32bit from emul-linux-x86-soudnlibs and instead 
making alsa-lib/alsa-oss multilib aware, just like sandbox (and glibc) is 
compiled for 32bit and 64bit on AMD64 as well. 
 
So why not doing it there the same way? 
 
herbs? kugelfang? any objections? 
Comment 2 Herbie Hopkins (RETIRED) gentoo-dev 2005-12-06 03:26:46 UTC
(In reply to comment #1)
> by removing alsa-libs/alsa-oss 32bit from emul-linux-x86-soudnlibs and instead 
> making alsa-lib/alsa-oss multilib aware, just like sandbox (and glibc) is 
> compiled for 32bit and 64bit on AMD64 as well. 

If we start doing that for sound libs where do we stop? There's libs from 100
odd packages in our emul-libs currently and we surely can't hack every ebuild to
install 32bit libs alongside our native ones. I'd still much rather see us get
actual multilib support into portage i.e track dependencies of multiple abis) so
we wouldn't need to hack ebuilds. See eradicators blog:
http://ramblings.hudscabin.com/index.php?catsel%5B%5D=25
Comment 3 Tomas Carnecky 2005-12-06 08:23:52 UTC
(In reply to comment #2)
> If we start doing that for sound libs where do we stop? There's libs from 100
> odd packages in our emul-libs currently and we surely can't hack every ebuild to
> install 32bit libs alongside our native ones. I'd still much rather see us get
> actual multilib support into portage i.e track dependencies of multiple abis) so
> we wouldn't need to hack ebuilds.

How far away from the real multilib support are we?

And if you say 'so we wouldn't need to hack ebuilds', does that mean the
glibc/gcc ebuilds are hacked?

Comment 4 Olivier Crete (RETIRED) gentoo-dev 2005-12-06 09:14:08 UTC
gcc/glibc are special cases since their build system are multilib aware.
Comment 5 Herbie Hopkins (RETIRED) gentoo-dev 2005-12-06 14:03:14 UTC
Fixed with soundlibs-2.3.