Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#16708 - [mplayer] mplayer from abs doen't compile

Attached to Project: Arch Linux
Opened by quantax (quantax) - Saturday, 17 October 2009, 13:15 GMT
Last edited by Hugo Doria (hdoria) - Sunday, 18 October 2009, 01:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Hugo Doria (hdoria)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

I tried compiling mplayer 29411-3 on i686 from abs. However, I got the following error:

libmpdemux/demux_gif.o: In function `demux_close_gif':
demux_gif.c:(.text+0x1d): undefined reference to `DGifCloseFile'
demux_gif.c:(.text+0x41): undefined reference to `PrintGifError'
libmpdemux/demux_gif.o: In function `demux_open_gif':
demux_gif.c:(.text+0xde): undefined reference to `DGifOpen'
demux_gif.c:(.text+0x1b1): undefined reference to `PrintGifError'
libmpdemux/demux_gif.o: In function `demux_gif_fill_buffer':
demux_gif.c:(.text+0x4c1): undefined reference to `DGifGetRecordType'
demux_gif.c:(.text+0x500): undefined reference to `DGifGetExtension'
demux_gif.c:(.text+0x544): undefined reference to `DGifGetImageDesc'
demux_gif.c:(.text+0x631): undefined reference to `DGifGetLine'
demux_gif.c:(.text+0x95c): undefined reference to `DGifGetScreenDesc'
demux_gif.c:(.text+0x9bf): undefined reference to `DGifGetExtensionNext'
demux_gif.c:(.text+0x9c9): undefined reference to `PrintGifError'
demux_gif.c:(.text+0x9fd): undefined reference to `DGifGetExtensionNext'
collect2: ld returned 1 exit status
make: *** [mencoder] Error 1
make: *** Waiting for unfinished jobs....
libvo/vo_gif89a.o: In function `uninit':
vo_gif89a.c:(.text+0x9f): undefined reference to `EGifPutComment'
vo_gif89a.c:(.text+0xac): undefined reference to `EGifCloseFile'
vo_gif89a.c:(.text+0xf0): undefined reference to `FreeMapObject'
libvo/vo_gif89a.o: In function `gif_reduce':
vo_gif89a.c:(.text+0x1ce): undefined reference to `QuantizeBuffer'
libvo/vo_gif89a.o: In function `flip_page':
vo_gif89a.c:(.text+0x2e7): undefined reference to `EGifPutExtension'
vo_gif89a.c:(.text+0x327): undefined reference to `EGifPutImageDesc'
vo_gif89a.c:(.text+0x34d): undefined reference to `EGifPutLine'
libvo/vo_gif89a.o: In function `config':
vo_gif89a.c:(.text+0x549): undefined reference to `EGifOpenFileName'
vo_gif89a.c:(.text+0x5af): undefined reference to `MakeMapObject'
vo_gif89a.c:(.text+0x60d): undefined reference to `EGifPutScreenDesc'
libmpdemux/demux_gif.o: In function `demux_close_gif':
demux_gif.c:(.text+0x1d): undefined reference to `DGifCloseFile'
demux_gif.c:(.text+0x41): undefined reference to `PrintGifError'
libmpdemux/demux_gif.o: In function `demux_open_gif':
demux_gif.c:(.text+0xde): undefined reference to `DGifOpen'
demux_gif.c:(.text+0x1b1): undefined reference to `PrintGifError'
libmpdemux/demux_gif.o: In function `demux_gif_fill_buffer':
demux_gif.c:(.text+0x4c1): undefined reference to `DGifGetRecordType'
demux_gif.c:(.text+0x500): undefined reference to `DGifGetExtension'
demux_gif.c:(.text+0x544): undefined reference to `DGifGetImageDesc'
demux_gif.c:(.text+0x631): undefined reference to `DGifGetLine'
demux_gif.c:(.text+0x95c): undefined reference to `DGifGetScreenDesc'
demux_gif.c:(.text+0x9bf): undefined reference to `DGifGetExtensionNext'
demux_gif.c:(.text+0x9c9): undefined reference to `PrintGifError'
demux_gif.c:(.text+0x9fd): undefined reference to `DGifGetExtensionNext'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1

Experiences of other users and the solution to the problem can be found here: http://bbs.archlinux.org/viewtopic.php?id=81345

Seems like the new default LDFLAGS break the build. Thus just add "unset LDFLAGS" to the PKGBUILD.

After that mplayer compiles successfully, but it doesn't play Matroska files anymore:

MPlayer SVN-r29411-4.4.1 (C) 2000-2009 MPlayer Team
137 audio & 299 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing video.mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Video", -vid 0
[mkv] Track ID 2: audio (A_DTS) "DTS 5.1 @ 1.5 Mbps", -aid 0, -alang jpn
[mkv] Track ID 3: subtitles (S_TEXT/ASS), -sid 0, -slang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO: [avc1] 1280x688 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
[VO_XV] Could not grab port 73.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [libdca] DTS decoding with libdca


MPlayer interrupted by signal 11 in module: init_audio_codec
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.

Again the solution can be found in the forums: http://bbs.archlinux.org/viewtopic.php?id=79119

Adding the "./configure" option "--extra-cflags=-fno-strict-aliasing" lets MPlayer play .mkv files again.

Just filing this for easier reference.
This task depends upon

Closed by  Hugo Doria (hdoria)
Sunday, 18 October 2009, 01:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed on mplayer 29776-1
Comment by quantax (quantax) - Saturday, 17 October 2009, 13:27 GMT
BTW, you can cut the size of the tarred snapshot by removing the .svn directories.

$ cd /var/abs/extra/mplayer
$ makepkg -o
[...]
$ find src -type d -name '.svn' | wc -l
105
$ find src -type d -name '.svn' | xargs du -ch | tail -n 1
57M total
% du -chs src
103M src
103M total
Comment by Ionut Biru (wonder) - Saturday, 17 October 2009, 14:28 GMT
add unset LDFLAGS before configure

Loading...