From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-54536-garchives=archives.gentoo.org@gentoo.org>)
	id 1GiNGN-0007BS-Na
	for garchives@archives.gentoo.org; Fri, 10 Nov 2006 03:41:08 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kAA3cufw015585;
	Fri, 10 Nov 2006 03:38:56 GMT
Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190])
	by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kAA3aqM7008986
	for <gentoo-user@lists.gentoo.org>; Fri, 10 Nov 2006 03:36:52 GMT
Received: by nf-out-0910.google.com with SMTP id c31so1441166nfb
        for <gentoo-user@lists.gentoo.org>; Thu, 09 Nov 2006 19:36:51 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth;
        b=gOsF+RPXVV0M+h6nkhO4Y9OcK6z5EmNimcQBZCZZJMlfEiqlD9kXycGWelhZckUpHnRlHQOGdTeeg2ZLtwY+LgQlmnIszg/ic9pQZ3JlSgve3TfjM2kvNr52E1VZ6YLxwFE7JwN2LyHHs3mQwAJYR3BzcV586t9mOamRRbSjihg=
Received: by 10.82.153.5 with SMTP id a5mr282839bue.1163129809818;
        Thu, 09 Nov 2006 19:36:49 -0800 (PST)
Received: by 10.82.106.3 with HTTP; Thu, 9 Nov 2006 19:36:49 -0800 (PST)
Message-ID: <7573e9640611091936p1da31e9eg90b31c77ead1cca6@mail.gmail.com>
Date: Thu, 9 Nov 2006 20:36:49 -0700
From: "Richard Fish" <bigfish@asmallpond.org>
Sender: richard.j.fish@gmail.com
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] WinXP under VMWare: no sound
In-Reply-To: <200611090834.51849.sp_rm_it@yahoo.it>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <200611042241.56613.sp_rm_it@yahoo.it>
	 <200611082224.42678.sp_rm_it@yahoo.it>
	 <7573e9640611081428j33fd8e3eo7c88202ef85e186f@mail.gmail.com>
	 <200611090834.51849.sp_rm_it@yahoo.it>
X-Google-Sender-Auth: 0ce0defb749080e5
X-Archives-Salt: 7fc4fb64-39c2-4fb4-8188-afe4e241fd9b
X-Archives-Hash: 45c40c59f60ac18acf56dfc77d5a3cd1

On 11/9/06, Sergio Polini <sp_rm_it@yahoo.it> wrote:
> However: no preloading error message, but sound does not work.
> BTW: are you sure sure that one can still set LD_PRELOAD to an
> *absolute* path?

Actually, no.  You have to use the library name, so libaoss.so is
valid, /emul/.../libaoss.so is not.

However, the search path in this case is pretty limited.  I had to
make a symlink from /usr/lib32/libaoss.so to
/emul/linux/x86/usr/lib/libaoss.so to get aoss to preload as a normal
user.

> Are you sure that that has not been reverted in glibc 2.4-r3?

Well I'm glibc-2.5 on both amd64 and x86, so I can't say for certain
what happens with 2.4, but yes, I believe it was dropped in all sane
versions of glibc.  In particular, none of my tests today on amd64 or
x86 revealed any significant problem in actually preloading the
libraries (other than the symlink issue I noted above, and of course,
needing to chmod 4755 the library to be preloaded).

FYI, I also reported the preloading problem via bugzilla way back when:

http://bugs.gentoo.org/show_bug.cgi?id=86844

> > I'm going to try installing workstation on my amd64 desktop and see
> > what I get.
>
> Thanks!!!

Unfortunately, even though I can get all the right libraries to load,
I cannot get sound to work reliably on amd64.  Neither aoss nor vmdsp
seem to work for me, either as a user or root.

However, I think I know how to make aoss work as a normal user on your
system.  You should just need to:

# chmod 4755 /emul/linux/x86/usr/lib/libaoss.so.0.0.0
# ln -s /emul/linux/x86/usr/lib/libaoss.so /usr/lib32/libaoss.so

The first command is just to make sure the library is setuid.

For vmdsp, my best guess is that a 64-bit artsd won't communicate with
32-bit clients.  But that is just a guess.

FYI, on my x86 laptop both vmdsp and aoss work, although aoss produces
choppy audio.

HTH,
-Richard
-- 
gentoo-user@gentoo.org mailing list