From owner-freebsd-questions Sun Jan 28 19:10: 9 2001 Delivered-To: freebsd-questions@freebsd.org Received: from femail5.sdc1.sfba.home.com (femail5.sdc1.sfba.home.com [24.0.95.85]) by hub.freebsd.org (Postfix) with ESMTP id DC68A37B400 for ; Sun, 28 Jan 2001 19:09:52 -0800 (PST) Received: from home.com ([24.12.186.185]) by femail5.sdc1.sfba.home.com (InterMail vM.4.01.03.00 201-229-121) with ESMTP id <20010129030952.TXED18198.femail5.sdc1.sfba.home.com@home.com>; Sun, 28 Jan 2001 19:09:52 -0800 Message-ID: <3A74DEFE.53C4C2CB@home.com> Date: Sun, 28 Jan 2001 19:09:50 -0800 From: Rob X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.2-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Dan Nelson Cc: "freebsd-questions@FreeBSD.ORG" Subject: Re: compiling under compat/linux- Secrets? References: <3A74B2E2.E7151E0A@home.com> <20010128205027.A13338@dan.emsphone.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dan Nelson wrote: > > In the last episode (Jan 28), Rob said: > > I am wondering if anyone can tell me the secrets to compiling under > > compat/linux? I looked at the archives and did find one useful post > > about invoking /usr/compat/linux/bin/bash before doing the configure and > > make. I imagine that some changes might be needed to the configure > > script. I've played around with it but it seems that the needed > > libraries and includes are not being found. I've verified that they do > > exist. > > You installed ports/devel/linux_devtools? > > > I am trying to compile the "vsound" linux program, used for intercepting > > calls to /dev/dsp and storing the audio stream to a file. > > You shouldn't have to compile in Linux compat mode to get that to work; > our /dev/dsp is completely compatible with Linux's. The only time you > really need to build a Linux binary should be if you have to link to > a library that you don't have the source to, or if you're > cross-compiling for a Linux target. > > -- > Dan Nelson > dnelson@emsphone.com I compiled a FreeBSD "vsound" but linux-realplayer complained that the libvsound.so was incompatible, so thats why I thought I needed a linux version of the library. This vsound program is very clever. The vsound wrapper preloads the vsound library which then substitutes its own open() close() write() etc before calling realplayer. So realplayer thinks its talking to /dev/dsp, when its actually not. Vsound then saves the sound file. Rob. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message