From owner-freebsd-ports@FreeBSD.ORG Thu Aug 14 09:28:02 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96FF837B404 for ; Thu, 14 Aug 2003 09:28:02 -0700 (PDT) Received: from mailgate.rz.uni-karlsruhe.de (mailgate.rz.uni-karlsruhe.de [129.13.64.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3581543F75 for ; Thu, 14 Aug 2003 09:27:59 -0700 (PDT) (envelope-from riggs@o503.hadiko.de) Received: from o503.hadiko.de (hadio503.hadiko.uni-karlsruhe.de [172.20.45.138]) by mailgate.rz.uni-karlsruhe.de with esmtp (Exim 3.36 #1) id 19nKx9-0005hA-00; Thu, 14 Aug 2003 18:27:55 +0200 Received: from o503.hadiko.de (RIXT@localhost [127.0.0.1]) by o503.hadiko.de (8.12.9/8.12.9) with ESMTP id h7EGRtsI009818; Thu, 14 Aug 2003 18:27:55 +0200 (CEST) (envelope-from riggs@o503.hadiko.de) Received: (from riggs@localhost) by o503.hadiko.de (8.12.9/8.12.9/Submit) id h7EGRtHC009817; Thu, 14 Aug 2003 18:27:55 +0200 (CEST) (envelope-from riggs) Date: Thu, 14 Aug 2003 18:27:55 +0200 From: "Thomas E. Zander" To: Stephen Casner Message-ID: <20030814162755.GC9430@o503.hadiko.de> References: <3F3AE5C5.4050405@acm.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wac7ysb48OaltWcw" Content-Disposition: inline In-Reply-To: <3F3AE5C5.4050405@acm.org> Organization: RiggiServ - Ihr Partner =?iso-8859-15?Q?f?= =?iso-8859-15?Q?=FCr?= alles Delikate X-PGP-KeyID: 0xC85996CD X-PGP-Fingerprint: 4F59 75B4 4CE3 3B00 BC61 5400 8DD4 8929 C859 96CD X-Mailer: Riggisoft Ausguck Eggsbress (Build 1060877198) X-Operating-System: Riggiland BSD 5.1-RELEASE-p2 (To serve and protect.) cc: ports@FreeBSD.org Subject: Re: FreeBSD Port: mplayer-0.90.0.110_2 and RealAudio doesn't find linux libm X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2003 16:28:02 -0000 --wac7ysb48OaltWcw Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, 13. Aug 2003, at 18:28 -0700, Stephen Casner wrote according to [FreeBSD Port: mplayer-0.90.0.110_2 and RealAudio doesn't find= linux libm]: > I have installed the subject mplayer port and the linux-realplayer port= =20 > on FreeBSD 4.8-RELEASE. Trying to decode a .rm file using the RealAudio= =20 > encoding results in the error message: >=20 > Error: Shared object "libm.so.6" not found >=20 > That file is present in /usr/compat/linux/lib/libm.so.6, but that=20 > directory is apparently not in the search path. Adding that directory=20 > to LD_LIBRARY_PATH solves the problem, but it seems that might cause=20 > some the linux library to be selected by non-linux programs. Yes, it's actually no good idea to permanently add the compat libdirs to your LD_LIBRARY_PATH, you must not try to mix linux and BSD libraries, unless you write a wrapper for these situation like the flashplugin in FreeBSD mozilla. > This question was asked on the mplayer-users list where the answer=20 > suggested installing symlinks to the desired files, or to run ldconfig.= =20 Hmm...ldconfig is just evil. If you add the linux compatibility libs to the ldconfig path for your BSD build environment, you would again break binary consistency. I suppose symlinks don't hurt too bad if done correctly, but personally I don't like it here. I'd suggest the following: If adding /usr/compat/linux/lib to LD_LIBRARY_PATH solves the problem for you but you don't want to define it for your entire environment, why not just put in something like alias mplayer env LD_LIBRARY_PATH=3D/usr/compat/linux/lib mplayer in your shell startup file? Riggs --=20 - "[...] I talked to the computer at great length and -- explained my view of the Universe to it" said Marvin. --- And what happened?" pressed Ford. ---- "It committed suicide." said Marvin. --wac7ysb48OaltWcw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iD8DBQE/O7iLjdSJKchZls0RAsORAJ4zg5Ygu980Yf3Uzgmfuzc+Q6zj6QCeMDBg LQ0seLLhSiv9qBcyGdRv/CY= =uJDM -----END PGP SIGNATURE----- --wac7ysb48OaltWcw--