From owner-freebsd-questions@FreeBSD.ORG Wed May 9 07:37:12 2012 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 326A4106564A for ; Wed, 9 May 2012 07:37:12 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr2.xs4all.nl (smtp-vbr2.xs4all.nl [194.109.24.22]) by mx1.freebsd.org (Postfix) with ESMTP id 9B1468FC0A for ; Wed, 9 May 2012 07:37:11 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr2.xs4all.nl (8.13.8/8.13.8) with ESMTP id q497ad7f053567; Wed, 9 May 2012 09:36:40 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id CE21312343; Wed, 9 May 2012 09:36:39 +0200 (CEST) Date: Wed, 9 May 2012 09:36:39 +0200 From: Roland Smith To: David Banning Message-ID: <20120509073639.GA21213@slackbox.erewhon.net> References: <20120509010418.GA78616@skytracker.ca> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline In-Reply-To: <20120509010418.GA78616@skytracker.ca> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: questions@freebsd.org Subject: Re: error: libm.so.4 needed by libspeex may conflict w libm.so.5 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 May 2012 07:37:12 -0000 --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--