error: needed by libspeex may conflict w

Roland Smith rsmith at
Wed May 9 07:37:12 UTC 2012

On Tue, May 08, 2012 at 09:04:18PM -0400, David Banning wrote:
> while attempting to build and install mplayer under FreeBSD Release 8.2 I
> get the error;
> /usr/local/bin/ld: warning:, needed by /usr/local/lib/,
> may conflict with /usr/local/lib/ undefined
> reference to `XRRGetScreenResourcesCurrent'
> /usr/local/lib/ undefined reference to
> `XRRGetOutputPrimary' collect2: ld returned 1 exit status gmake: ***
> [mplayer] Error 1
> If it's libspeex / that is causing the error (thats what it looks
> like to me) I wonder how to find out what libspeex is being used for - or
> for that matter what is needed for.

This sounds like a ports rebuild gone wrong. Did you by any chance upgrade
your ports in-place when updating the system from FreeBSD 7 to FreeBSD 8? Or
did you install libspeex from a package?

Try running the following command: `ldd /usr/local/lib/`. If the
output of that command indeed includes, you should re-install the
libspeex port before continuing. Make sure your ports tree is up-to-date, and
then do:

    # cd /usr/ports/audio/speex
	# make deinstall
	# make install clean

Then continue the mplayer build.

It might be a good idea to check if there are other libraries relying on older
system libs out there;

    # find /usr/local/lib -type f -name '*.so' -exec ldd {} \; >deps.txt
	# grep deps.txt
	# grep deps.txt

If the grep commands returns any output, you can search deps.txt to see which
library uses the older system libraries.

[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list