Date: Wed, 9 May 2012 09:36:39 +0200 From: Roland Smith <rsmith@xs4all.nl> To: David Banning <david+dated+1336957458.358d38@skytracker.ca> Cc: questions@freebsd.org Subject: Re: error: libm.so.4 needed by libspeex may conflict w libm.so.5 Message-ID: <20120509073639.GA21213@slackbox.erewhon.net> In-Reply-To: <20120509010418.GA78616@skytracker.ca> References: <20120509010418.GA78616@skytracker.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
--3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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; >=20 > /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 >=20 > If it's libspeex / libm.so.4 that is causing the error (thats what it loo= ks > 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, a= nd 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 ol= der 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 whi= ch library uses the older system libraries. Roland --=20 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) --3MwIy2ne0vdjdPXF Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk+qHocACgkQEnfvsMMhpyWMCwCeO0fmQpMY4m1UAnHmeSR1Uxqw vc8AoItdO/AbZh7ytvU56RsfXvsMWVHa =q6UO -----END PGP SIGNATURE----- --3MwIy2ne0vdjdPXF--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120509073639.GA21213>