On Mon, Jan 05, 2004 at 06:08:17PM -0800, Gary Kline wrote:
>       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 => /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
            search directories: 

and it should have a line for libxmms something like this:

            160:-lxmms.4 => /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)



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

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to