From owner-freebsd-questions@FreeBSD.ORG Tue Jan 6 04:22:36 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B20A16A4CE for ; Tue, 6 Jan 2004 04:22:36 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA10643D3F for ; Tue, 6 Jan 2004 04:22:30 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) i06CMPxn031436 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 6 Jan 2004 12:22:25 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i06CMNb3031417; Tue, 6 Jan 2004 12:22:23 GMT (envelope-from matthew) Date: Tue, 6 Jan 2004 12:22:23 +0000 From: Matthew Seaman To: Gary Kline Message-ID: <20040106122223.GA14422@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Gary Kline , FreeBSD Mailing List References: <20040106020817.GA60945@tao.thought.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0F1p//8PRICkK4MW" Content-Disposition: inline In-Reply-To: <20040106020817.GA60945@tao.thought.org> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.61 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on happy-idiot-talk.infracaninophile.co.uk cc: FreeBSD Mailing List Subject: Re: libxmms.so troubles with building mplayer. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2004 12:22:36 -0000 --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 05, 2004 at 06:08:17PM -0800, Gary Kline wrote: =20 > For reasons I haven't sorted out, player is looking for > /usr/local/lib/libxmms.so, while the library xmms.so[.4] > is in the X11R6 tree. So mplayer quits. When I turn off > WITH_XMMS, mplayer dies elsewhere. Hmmm... It works fine for me, and finds the right libxmms.so: % ldd /usr/local/bin/mplayer | grep -i xmms libxmms.so.4 =3D> /usr/X11R6/lib/libxmms.so.4 (0x2847e000) I think that mplayer should be able to find libxmms.so in /usr/X11R6/lib without having to use any special linker flags. The fact that it can't suggests that either when you're compiling mplayer you are somehow overriding the linker flags in a counter-productive way, or that the ld-elf.so dynamic loader configuration is screwed up. Do you have anything in your environment that could affect either the compilation stage -- eg. LDFLAGS, CFLAGS, CC or any environment variables that could affect the dynamic loader -- eg LD_LIBRARY_PATH, LD_PRELOAD (see rtld(1) for more)? Have you installed the libmap.conf patch from http://people.FreeBSD.org/~nork/libmap_4stable.diff , as the www/linuxpluginwrapper port needs you to do under 4.x? If so, what's the contents of your /etc/libmap.conf? What do you get from running 'ldconfig -r' -- particularly the second line or so where it shows what directories it will search for shared libraries? Should be something like: % ldconfig -r | head -2 /var/run/ld-elf.so.hints: search directories: /usr/lib:/usr/lib/compat:/usr/X11R6/lib:/us= r/local/lib:/usr/local/lib/mysql:/usr/local/lib/compat/pkg:/usr/local/lib/p= th:/usr/local/lib/mplayer/vidix and it should have a line for libxmms something like this: 160:-lxmms.4 =3D> /usr/X11R6/lib/libxmms.so.4 (The number 160 will be different on your system: it just means that information about libxmms.so.4 is stored in element 160 of an array internal to ld-elf.so) Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --0F1p//8PRICkK4MW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQE/+qh/dtESqEQa7a0RAnUjAJsEc2DZj7iXLoIap7/Ea/juoXGrcQCgiIev 3saZYJWKjf1t4jIAJLuTaKc= =UjXp -----END PGP SIGNATURE----- --0F1p//8PRICkK4MW--