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.
Created attachment 283693 [details] emerge --info =media-video/mplayer-9999
# 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"
Created attachment 283695 [details] complete build log
Created attachment 283697 [details] ebuild environment
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 \
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
After removing --disable-ffmpeg_a \ compilation was successful.
After removing --disable-ffmpeg_a \ compilation was successful. This was fixed today. --disable-ffmpeg_a works again.
(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