You are not logged in.
Pages: 1
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
Before the ./configure line, use:
unset CFLAGS LDFLAGS
(and remove the CFLAGS="-O2 ..." in your configure linel).
Offline
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
--disable-gif
Offline
...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
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
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
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
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
Pages: 1