You are not logged in.

#1 2009-10-01 17:51:45

Berticus
Member
Registered: 2008-06-11
Posts: 731

compiling mplayer

I'm running into the following error when I try to compile mplayer:

libvo/vo_gif89a.o: In function `uninit':
vo_gif89a.c:(.text+0x8d): undefined reference to `EGifPutComment'
vo_gif89a.c:(.text+0x99): undefined reference to `EGifCloseFile'
vo_gif89a.c:(.text+0xdd): undefined reference to `FreeMapObject'
libvo/vo_gif89a.o: In function `gif_reduce':
vo_gif89a.c:(.text+0x1de): undefined reference to `QuantizeBuffer'
libvo/vo_gif89a.o: In function `flip_page':
vo_gif89a.c:(.text+0x2e5): undefined reference to `EGifPutExtension'
vo_gif89a.c:(.text+0x310): undefined reference to `EGifPutImageDesc'
vo_gif89a.c:(.text+0x330): undefined reference to `EGifPutLine'
libvo/vo_gif89a.o: In function `config':
vo_gif89a.c:(.text+0x4e6): undefined reference to `EGifOpenFileName'
vo_gif89a.c:(.text+0x549): undefined reference to `MakeMapObject'
vo_gif89a.c:(.text+0x59c): undefined reference to `EGifPutScreenDesc'
libmpdemux/demux_gif.o: In function `demux_close_gif':
demux_gif.c:(.text+0x17): undefined reference to `DGifCloseFile'
demux_gif.c:(.text+0x39): undefined reference to `PrintGifError'
libmpdemux/demux_gif.o: In function `demux_open_gif':
demux_gif.c:(.text+0xa9): undefined reference to `DGifOpen'
demux_gif.c:(.text+0x181): undefined reference to `PrintGifError'
libmpdemux/demux_gif.o: In function `demux_gif_fill_buffer':
demux_gif.c:(.text+0x4c0): undefined reference to `DGifGetRecordType'
demux_gif.c:(.text+0x4fc): undefined reference to `DGifGetExtension'
demux_gif.c:(.text+0x544): undefined reference to `DGifGetImageDesc'
demux_gif.c:(.text+0x640): undefined reference to `DGifGetLine'
demux_gif.c:(.text+0x94c): undefined reference to `DGifGetScreenDesc'
demux_gif.c:(.text+0x9ad): undefined reference to `DGifGetExtensionNext'
demux_gif.c:(.text+0x9b9): undefined reference to `PrintGifError'
demux_gif.c:(.text+0x9ef): undefined reference to `DGifGetExtensionNext'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
==> ERROR: Build Failed.
    Aborting...

I get this whether I change PKGBULID or not. I've tried to change the following:

adding CFLAGS="-O2 -fomit-frame-pointer" before ./configure
adding --enable-vdpau
adding --enable-ass

What am I doing wrong?

Last edited by Berticus (2009-10-01 17:52:21)

Offline

#2 2009-10-01 18:07:16

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427
Website

Re: compiling mplayer

Before the ./configure line, use:

unset CFLAGS LDFLAGS

(and remove the CFLAGS="-O2 ..." in your configure linel).

Offline

#3 2009-10-01 19:30:42

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: compiling mplayer

The reason I added CFLAGS="-O2 -fomit-frame-pointer" was because it would crash when playing mkv files. As expected, when I get rid of that line (and unset CFLAGS), mplayer can compile, but it can't play mkv containers.

Offline

#4 2009-10-02 01:24:27

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: compiling mplayer

--disable-gif

Offline

#5 2009-10-18 19:13:36

wantilles
Member
From: Athens - Greece
Registered: 2007-03-29
Posts: 327

Re: compiling mplayer

Berticus wrote:

...but it can't play mkv containers.

A temporary solution for this is to build it using gcc 4.4.0 and not 4.4.1.

Offline

#6 2009-10-18 19:41:18

wantilles
Member
From: Athens - Greece
Registered: 2007-03-29
Posts: 327

Re: compiling mplayer

mplayer produces one more error:

libavcodec/libavcodec.a(dsputil.o): In function `dsputil_init':
dsputil.c:(.text+0x122fc): undefined reference to `ff_lpc_compute_autocorr'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
==> ERROR: Build Failed.
    Aborting...

Offline

#7 2009-10-19 10:19:20

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: compiling mplayer

meh , CFLAGS are fine . I think removing --as-needed from LDFLAGS should be enough but I'm not sure . In all cases , unsetting LDFLAGS should work .


English is not my native language .

Offline

#8 2009-10-19 12:35:02

gen1s
Member
From: Russian Federation
Registered: 2009-08-04
Posts: 17

Re: compiling mplayer

I successfully build it yesterday with CFLAGS="-march=core2 -msse4.1 -O2 -pipe" and LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed". It works fine.
gcc 4.4.1-1
mplayer-mt-git (from AUR)

Offline

#9 2009-10-19 19:29:15

wantilles
Member
From: Athens - Greece
Registered: 2007-03-29
Posts: 327

Re: compiling mplayer

gen1s wrote:

I successfully build it yesterday with CFLAGS="-march=core2 -msse4.1 -O2 -pipe" and LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed". It works fine.
gcc 4.4.1-1
mplayer-mt-git (from AUR)

1. The standard codebase builds fine (svn 29766) with unset CFLAGS LDFLAGS. Builds 29777-29779 produce the above mentioned error. All this with gcc 4.4.0.

2. mplayer-mt is a different code base.

3. If you build the standard codebase with gcc 4.4.1, it crashes with mkv containers.

Last edited by wantilles (2009-10-21 20:10:58)

Offline

Board footer

Powered by FluxBB