Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Aug 2003 18:27:55 +0200
From:      "Thomas E. Zander" <riggs@rrr.de>
To:        Stephen Casner <casner@acm.org>
Cc:        ports@FreeBSD.org
Subject:   Re: FreeBSD Port: mplayer-0.90.0.110_2 and RealAudio doesn't find linux libm
Message-ID:  <20030814162755.GC9430@o503.hadiko.de>
In-Reply-To: <3F3AE5C5.4050405@acm.org>
References:  <3F3AE5C5.4050405@acm.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030814162755.GC9430>