[MPlayer-users] mplayer from FreeBSD ports fails to build/compile

Tom Evans tevans.uk at googlemail.com
Wed Aug 10 15:14:04 CEST 2011


2011/8/10 Clément Bœsch <ubitux at gmail.com>:
> On Wed, Aug 10, 2011 at 12:04:02PM +0100, Tom Evans wrote:
>> On Sat, Jul 30, 2011 at 7:19 PM, Reimar Döffinger
>> <Reimar.Doeffinger at gmx.de> wrote:
>> > On Sat, Jul 30, 2011 at 02:23:09PM +0100, Tom Evans wrote:
>> >> Use gmake to build. The BROKEN_RELOCATIONS should fix the assembler errors.
>> >
>> > That is only by chance and not really the correct solution.
>> > In particular it will cost you a significant amount of
>> > performance for CABAC-encoded H.264 files.
>> > The problem is that FreeBSD by default comes with a 7 years (!!)
>> > old version of binutils, which is not supported for 64-bit builds.
>> > If you get a newer version from portage and replace /usr/bin/as
>> > with a symlink to the newly installed /usr/local/bin/as it will
>> > compile just fine.
>>
>> Disclaimer: I'm actually using the mplayer2 git build.
>>
>
> mplayer2 is another project. You should ask on the appropriate ml, or IRC
> channel. Check on the official mplayer2 website.
>

Fine, be a pedant. The code that fails with old gcc/binutils is part
of ffmpeg, so is the same in both projects. Excuse me for trying to
impart some useful information about the state of building mplayer on
FreeBSD.

>From fresh git clones of git://git.mplayerhq.hu/mplayer :

./configure --extra-libs=-L/usr/local/lib \
   --extra-cflags=-I/usr/local/include
dies with 'Error: Your binutils version is too old and not supported'

./configure --extra-libs=-L/usr/local/lib \
  --extra-cflags=-I/usr/local/include --as=/usr/local/bin/as
dies with 'Error: Your binutils version is too old and not supported'
$ > # /usr/local/bin/as --version|head -n 1
GNU assembler (GNU Binutils) 2.21.1

./configure --extra-libs=-L/usr/local/lib \
  --extra-cflags=-I/usr/local/include \
   --as=/usr/local/bin/as --cc=/usr/local/bin/gcc46
Builds succesfully.


So, to build on recent FreeBSD/amd64 requires both an updated gcc and
binutils, not just updated binutils.

Cheers

Tom


More information about the MPlayer-users mailing list