Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379623 - media-video/mplayer-9999 fail to compile due to missing ffmpeg file(s)
Summary: media-video/mplayer-9999 fail to compile due to missing ffmpeg file(s)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-17 21:43 UTC by Dominique Michel
Modified: 2011-11-09 12:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info =media-video/mplayer-9999 (emerge.info,17.10 KB, text/plain)
2011-08-17 21:46 UTC, Dominique Michel
Details
complete build log (build.log,190.73 KB, text/plain)
2011-08-17 21:48 UTC, Dominique Michel
Details
ebuild environment (environment,139.55 KB, text/plain)
2011-08-17 21:50 UTC, Dominique Michel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominique Michel 2011-08-17 21:43:03 UTC
mplayer-9999 fail with

In file included from ffmpeg/libavformat/riff.h:33:0,
                 from libmpdemux/mp_taglists.c:23:
ffmpeg/libavformat/internal.h:107:5: warning: no previous prototype for 'ff_url_join'
ffmpeg/libavformat/internal.h: In function 'ff_url_join':
ffmpeg/libavformat/internal.h:109:49: error: expected declaration specifiers before 'av_printf_format'
ffmpeg/libavformat/internal.h:181:16: error: storage class specified for parameter 'ff_parse_key_val_cb'
ffmpeg/libavformat/internal.h:192:42: error: expected declaration specifiers or '...' before 'ff_parse_key_val_cb'
In file included from libmpdemux/mp_taglists.c:23:0:
ffmpeg/libavformat/riff.h:50:25: error: storage class specified for parameter 'ff_codec_bmp_tags'
ffmpeg/libavformat/riff.h:51:25: error: storage class specified for parameter 'ff_codec_wav_tags'
ffmpeg/libavformat/riff.h:57:17: error: storage class specified for parameter 'ff_asf_guid'
ffmpeg/libavformat/riff.h:65:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
ffmpeg/libavformat/riff.h:69:34: error: expected declaration specifiers or '...' before 'ff_asf_guid'
ffmpeg/libavformat/riff.h:73:5: error: expected specifier-qualifier-list before 'ff_asf_guid'
....

Reproducible: Always

Steps to Reproduce:
1. emerge mplayer
2.
3.
Actual Results:  
portage fail to compile mplayer-9999


After commented out 3 lines into the ebuild, portage did it fine.

The commented out lines are in src_unpack(), the following:

#		cp "${FILESDIR}/dump_ffmpeg.sh" . || die
#		chmod +x dump_ffmpeg.sh
#		./dump_ffmpeg.sh || die

That way, the ebuild use all the files in the ffmpeg directory.
Comment 1 Dominique Michel 2011-08-17 21:46:07 UTC
Created attachment 283693 [details]
emerge --info =media-video/mplayer-9999
Comment 2 Dominique Michel 2011-08-17 21:47:01 UTC
# emerge -pqv =media-video/mplayer-9999
[ebuild   R   ] media-video/mplayer-9999  USE="3dnow 3dnowext X a52 alsa ass bidi cddb cdio cdparanoia dga directfb dts dv dvb dvd dvdnav enca encode faad fbcon ftp gif gsm iconv ipv6 jack jpeg jpeg2k ladspa libmpeg2 lirc live lzo mad mmx mmxext mng mp3 mpg123 nas network nut openal opengl osdmenu oss png pnm pulseaudio pvr quicktime radio rar real rtc rtmp samba sdl shm speex sse sse2 ssse3 theora toolame tremor truetype twolame unicode v4l v4l2 vdpau vorbis x264 xanim xscreensaver xv xvid xvmc -aalib (-altivec) (-aqua) -bindist -bl -bluray -bs2b -cpudetection -custom-cpuopts -debug -doc -dxr3 -esd -faac -ggi -joystick -libcaca -md5sum -tga (-vidix) (-win32codecs) -xinerama -zoran" VIDEO_CARDS="vesa -mga -s3virge -tdfx"
Comment 3 Dominique Michel 2011-08-17 21:48:55 UTC
Created attachment 283695 [details]
complete build log
Comment 4 Dominique Michel 2011-08-17 21:50:50 UTC
Created attachment 283697 [details]
ebuild environment
Comment 5 Dominique Michel 2011-08-17 22:26:54 UTC
Also, for the codecs to work well with my workaround, it is necessary to remove the folloing line at the end of src_configure()

		--disable-ffmpeg_a \
Comment 6 wbrana 2011-10-22 11:53:07 UTC
After I commented out those 3 lines, compilation fails at link time

libmpcodecs/ae_lavc.o: In function `mpae_init_lavc':
ae_lavc.c:(.text+0x217): undefined reference to `avcodec_open2'
libmpcodecs/ve_lavc.o: In function `config':
ve_lavc.c:(.text+0x15a1): undefined reference to `avcodec_open2'
libmpcodecs/ad_ffmpeg.o: In function `init':
ad_ffmpeg.c:(.text+0x637): undefined reference to `avcodec_open2'
libmpcodecs/vd_ffmpeg.o: In function `init':
vd_ffmpeg.c:(.text+0x9b5): undefined reference to `avcodec_open2'
libmpdemux/demux_lavf.o: In function `demux_open_lavf':
demux_lavf.c:(.text+0x22af): undefined reference to `avformat_find_stream_info'
collect2: ld returned 1 exit status
make: *** [mencoder] Error 1
make: *** Waiting for unfinished jobs....
libmpcodecs/ad_ffmpeg.o: In function `init':
ad_ffmpeg.c:(.text+0x637): undefined reference to `avcodec_open2'
libmpcodecs/vd_ffmpeg.o: In function `init':
vd_ffmpeg.c:(.text+0x9b5): undefined reference to `avcodec_open2'
libmpdemux/demux_lavf.o: In function `demux_open_lavf':
demux_lavf.c:(.text+0x22af): undefined reference to `avformat_find_stream_info'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
Comment 7 wbrana 2011-10-22 11:59:41 UTC
After removing 
--disable-ffmpeg_a \
compilation was successful.
Comment 8 Jonathan Isom 2011-10-23 16:00:20 UTC
After removing 
--disable-ffmpeg_a \
compilation was successful.


This was fixed today.  --disable-ffmpeg_a works again.
Comment 9 Alexis Ballier gentoo-dev 2011-11-09 12:57:32 UTC
(In reply to comment #8)
> After removing 
> --disable-ffmpeg_a \
> compilation was successful.
> 
> 
> This was fixed today.  --disable-ffmpeg_a works again.

-> fixed ?

otherwise, please give the exact ffmpeg version which is installed on your system