Re: error: libm.so.4 needed by libspeex may conflict w libm.so.5

2012-05-09 Thread Roland Smith
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: libm.so.4, needed by /usr/local/lib/libspeex.so,
 may conflict with libm.so.5 /usr/local/lib/libgdk-x11-2.0.so: undefined
 reference to `XRRGetScreenResourcesCurrent'
 /usr/local/lib/libgdk-x11-2.0.so: undefined reference to
 `XRRGetOutputPrimary' collect2: ld returned 1 exit status gmake: ***
 [mplayer] Error 1
 
 If it's libspeex / libm.so.4 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 libm.so.4 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/libspeex.so`. If the
output of that command indeed includes libm.so.4, 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 libm.so.4 deps.txt
# grep libc.so.6 deps.txt

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

Roland
-- 
R.F.Smith   http://rsmith.home.xs4all.nl/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpoPTFsPfndf.pgp
Description: PGP signature


error: libm.so.4 needed by libspeex may conflict w libm.so.5

2012-05-08 Thread David Banning
while attempting to build and install mplayer under FreeBSD Release 8.2 I get 
the error;

/usr/local/bin/ld: warning: libm.so.4, needed by /usr/local/lib/libspeex.so, 
may conflict with libm.so.5
/usr/local/lib/libgdk-x11-2.0.so: undefined reference to 
`XRRGetScreenResourcesCurrent'
/usr/local/lib/libgdk-x11-2.0.so: undefined reference to `XRRGetOutputPrimary'
collect2: ld returned 1 exit status
gmake: *** [mplayer] Error 1

If it's libspeex / libm.so.4 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 
libm.so.4 is needed for.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: error: libm.so.4 needed by libspeex may conflict w libm.so.5

2012-05-08 Thread Polytropon
On Tue, 8 May 2012 21:04:18 -0400, David Banning wrote:
 If it's libspeex / libm.so.4 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 
 libm.so.4 is needed for.

I see you start exploring the joy of front page decisions based
upon information provided exactly there. :-)

Speex is a codec intended for speech compression (and libspeex is
its corresponding library implementation), and libm is the math
library of your FreeBSD system (OS, not a port).

However, I have mplayer 1.0.r20110329_3 installed here on FreeBSD
8.2-STABLE (i386), using speex 1.2.r1_3,1. If you have problems
installing it, and you know you're not going to need it, just do
a make config in the mplayer port's directory and deselect SPEEX
option, then it shouldn't be built.

Is your ports tree up to date? Maybe there's a newer version of
speex or mplayer that will happily work with the system's libm v5?



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org