Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 392405 - medi-video/mplayer-9999 doesn't compile: fmt-conversion.c:60:43: error: 'PIX_FMT_0RGB32' undeclared here
Summary: medi-video/mplayer-9999 doesn't compile: fmt-conversion.c:60:43: error: 'PIX_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 394829 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-29 14:39 UTC by Herbert Wantesh
Modified: 2012-01-09 16:51 UTC (History)
4 users (show)

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


Attachments
log file (mplayer.log,59.87 KB, text/plain)
2011-11-29 14:45 UTC, Herbert Wantesh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Herbert Wantesh 2011-11-29 14:39:55 UTC
mplayer-9999 doesn't compile
the error is 
fmt-conversion.c:60:43: error: 'PIX_FMT_0RGB32' undeclared here (not in a function)

compiling mplayer from a local svn checkout works fine

Reproducible: Always
Comment 1 Herbert Wantesh 2011-11-29 14:45:10 UTC
Created attachment 294181 [details]
log file
Comment 2 dE 2011-12-01 09:35:54 UTC
I confirm this on amd64.
Comment 3 Alexis Ballier gentoo-dev 2011-12-15 12:30:37 UTC
fixed by depending on ffmpeg-0.9
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2011-12-15 16:46:59 UTC
*** Bug 394829 has been marked as a duplicate of this bug. ***
Comment 5 Kamen Dokov 2011-12-15 16:57:28 UTC
(In reply to comment #3)
> fixed by depending on ffmpeg-0.9

this is media-video/ffmpeg right?
Because it conflicts now with libav and virtual/ffmpeg.
Are there any chances next version to be compatible with virtual/ffmpeg&libav ?
I just want to know should i mask the troublesome version of mplayer or remove it completely from my system.?
Comment 6 Alexis Ballier gentoo-dev 2011-12-15 19:40:25 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > fixed by depending on ffmpeg-0.9
> 
> this is media-video/ffmpeg right?
> Because it conflicts now with libav and virtual/ffmpeg.
> Are there any chances next version to be compatible with virtual/ffmpeg&libav ?
> I just want to know should i mask the troublesome version of mplayer or remove
> it completely from my system.?

does it work if you emerge -1O mplayer ?
i switched to media-video/ffmpeg mainly because upstream uses ffmpeg, not libav, and this bug showed some incompatibilities with older versions. I dont know if libav is fully api/abi compatible, so i stayed on the safe side.

if you want to go back to the virtual/ffmpeg dep, please file a new bug with success reports of building and using mplayer with libav (and include which libav version work and which not)
Comment 7 Alexis Ballier gentoo-dev 2011-12-15 19:47:58 UTC
(In reply to comment #6)
> i switched to media-video/ffmpeg mainly because upstream uses ffmpeg, not
> libav, and this bug showed some incompatibilities with older versions.

to clarify: these older versions are where the libav fork started
Comment 8 Kamen Dokov 2011-12-15 19:52:47 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #3)
> > > fixed by depending on ffmpeg-0.9
> > 
> > this is media-video/ffmpeg right?
> > Because it conflicts now with libav and virtual/ffmpeg.
> > Are there any chances next version to be compatible with virtual/ffmpeg&libav ?
> > I just want to know should i mask the troublesome version of mplayer or remove
> > it completely from my system.?
> 
> does it work if you emerge -1O mplayer ?
> i switched to media-video/ffmpeg mainly because upstream uses ffmpeg, not
> libav, and this bug showed some incompatibilities with older versions. I dont
> know if libav is fully api/abi compatible, so i stayed on the safe side.
> 
> if you want to go back to the virtual/ffmpeg dep, please file a new bug with
> success reports of building and using mplayer with libav (and include which
> libav version work and which not)

It does not compile with -1O! 
Sigh, so it's time for me to decide: mplayer1+ffmpeg or mplayer2+libav.
Do you have any recommendations/advice  ?
Comment 9 Alexis Ballier gentoo-dev 2011-12-15 20:15:40 UTC
(In reply to comment #8)
> It does not compile with -1O! 

so we're stuck with this dep :( 

> Sigh, so it's time for me to decide: mplayer1+ffmpeg or mplayer2+libav.
> Do you have any recommendations/advice  ?

i prefer mplayer1 because it has mencoder. if you dont need it, mplayer2 should be very fine (though, note that mplayer2 is a fork, not a new version)
i prefer ffmpeg vs libav because ffmpeg (is supposed to) pull libav changes/improvements, where i've not seen the converse to be true (and thus, you see this bug where libav is lacking a PIX_FMT needed by mplayer).
Comment 10 Kamen Dokov 2011-12-15 20:19:35 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > It does not compile with -1O! 
> 
> so we're stuck with this dep :( 
> 
> > Sigh, so it's time for me to decide: mplayer1+ffmpeg or mplayer2+libav.
> > Do you have any recommendations/advice  ?
> 
> i prefer mplayer1 because it has mencoder. if you dont need it, mplayer2 should
> be very fine (though, note that mplayer2 is a fork, not a new version)
> i prefer ffmpeg vs libav because ffmpeg (is supposed to) pull libav
> changes/improvements, where i've not seen the converse to be true (and thus,
> you see this bug where libav is lacking a PIX_FMT needed by mplayer).

Thank you for the tips, you are very kind!
Comment 11 dE 2011-12-17 05:19:46 UTC
(In reply to comment #3)
> fixed by depending on ffmpeg-0.9

Just wait a second -- I've 2 issues.

First, I'm running ffmpeg-9999

Second, I've heard mplayer uses it's own internal version of ffmpeg.
Comment 12 Tina 2011-12-22 11:46:03 UTC
this is not a sollution imo wtf is it set to RESOLVED FIXED ??!! :s

this is no fun however people in #libav (freenode) say , you can rm the line for  fmt-conversion ; 
bit from the log :
<violetina> any reason why fmt-conversion.c:60:43: error: 'PIX_FMT_0RGB32' undeclared here (not in a function)  when you try to build new  mplayer with libav ? 
<violetina> see https://bugs.gentoo.org/392405  
<JEEB> <elenril> libav and ffmpeg have been incompatible in some details for a long time
<JEEB> <elenril> this is one of those
<JEEB> <elenril> patch it
<JEEB> <elenril> i think that line in fmt-cnversion.c can be safely removed
<JEEB> basically mplayer is using something specific to ffmpeg
<JEEB> It was brought up just 1.5h or so ago
<violetina> hmm so patch mplayer? any link / howto 
<JEEB> well, elenril said one recommendation, I have no idea about the source code of mplayer's
<violetina> i understand it is bit of topic ;)
<KotH> you can safely remove it
<KotH> and blame cehoyos for it
<KotH> but i think that was deliberately... he hates libav and everyone involved
<violetina> :(
<JEEB> unneeded_drama.jpg
<jannau> or just add a #define PIX_FMT_0RGB32 PIX_FMT_RGB32


so can someone try to write a patch dont have the skills :(
Comment 13 Andreas Sturmlechner gentoo-dev 2011-12-22 21:52:12 UTC
latest libav-0.8* bump fixes things, mplayer builds fine now (manually edited the ebuild to depend on virtual/ffmpeg-0.9).
Comment 14 DaggyStyle 2012-01-09 16:51:01 UTC
as bug 394829 is duplicate of this and that bug is not fixed, what is the status of this bug?

Calculating dependencies... done!
[nomerge       ] app-doc/doxygen-1.7.5.1  USE="qt4 -debug -doc -latex -nodot"  [0]
[ebuild     U ~]  media-gfx/graphviz-2.26.3-r4 [2.26.3-r3] USE="cairo gtk java nls perl python -doc -examples -lasi -ruby -static-libs -tcl" 16,692 kB [0]                                                                                                      
[nomerge       ] media-video/dvdrip-0.98.11-r1  USE="ffmpeg mplayer ogg subtitles vcd vorbis xine xvid -fping"  [0]
[ebuild     U ~]  media-video/mplayer-1.0_rc4_p20120109 [1.0_rc4_p20110322-r1] USE="X a52 alsa ass bidi cddb cdio cdparanoia dga dts dv dvb dvd dvdnav enca encode faad ftp gif iconv jpeg jpeg2k live mad mmx mng mp3 nas network opengl osdmenu oss png quicktime radio rar real rtc samba sdl shm speex sse sse2 ssse3 theora toolame tremor truetype twolame unicode v4l vdpau vorbis x264 xinerama xscreensaver xv xvid xvmc -3dnow -3dnowext -aalib (-altivec) (-aqua) -bindist -bl -bluray -bs2b -cpudetection -debug -directfb -doc (-dxr3) (-esd) -faac* -fbcon -ggi -gsm -ipv6 -jack -joystick -ladspa -libcaca -libmpeg2 -lirc -lzo -md5sum -mmxext -nut -openal -pnm -pulseaudio -pvr -rtmp -tga (-vidix) (-win32codecs) -xanim -zoran (-amr%*) (-custom-cpuopts%) (-dirac%*) (-mpg123%) (-schroedinger%*) (-vpx%*)" VIDEO_CARDS="-mga -s3virge -tdfx (-vesa%*)" 5,276 kB [0]                                       
[ebuild     U ~] net-misc/knemo-0.7.3 [0.7.2] USE="wifi%* (-aqua) -debug (-kdeenablefinal)" LINGUAS="es -ar -bg -br -bs% -cs -cy -da -de -el -en_GB -eo -et -fi -fr -ga -gl -hr -hu -is -it -ja -ka -km -lt -ms -nb -nds -nl -pl -pt -pt_BR -ro -ru -rw -sk -sr -sv -tr -uk -zh_CN -zh_TW" 630 kB [0]                                                                                           
[nomerge       ] media-video/devede-3.16.9  USE="(-psyco)"  [0]
[nomerge       ]  media-video/mplayer-1.0_rc4_p20120109 [1.0_rc4_p20110322-r1] USE="X a52 alsa ass bidi cddb cdio cdparanoia dga dts dv dvb dvd dvdnav enca encode faad ftp gif iconv jpeg jpeg2k live mad mmx mng mp3 nas network opengl osdmenu oss png quicktime radio rar real rtc samba sdl shm speex sse sse2 ssse3 theora toolame tremor truetype twolame unicode v4l vdpau vorbis x264 xinerama xscreensaver xv xvid xvmc -3dnow -3dnowext -aalib (-altivec) (-aqua) -bindist -bl -bluray -bs2b -cpudetection -debug -directfb -doc (-dxr3) (-esd) -faac* -fbcon -ggi -gsm -ipv6 -jack -joystick -ladspa -libcaca -libmpeg2 -lirc -lzo -md5sum -mmxext -nut -openal -pnm -pulseaudio -pvr -rtmp -tga (-vidix) (-win32codecs) -xanim -zoran (-amr%*) (-custom-cpuopts%) (-dirac%*) (-mpg123%) (-schroedinger%*) (-vpx%*)" VIDEO_CARDS="-mga -s3virge -tdfx (-vesa%*)"  [0]                                               
[ebuild  N    ~]   media-video/ffmpeg-0.9.1  USE="X aac alsa bzip2 encode frei0r hardcoded-tables jpeg2k mmx mp3 network oss qt-faststart sdl ssse3 theora threads truetype v4l vdpau vorbis vpx x264 xvid zlib -3dnow -3dnowext -aacplus (-altivec) -amr -ass -avconv -avx -bindist -cdio (-celt) -cpudetection -debug -dirac -doc -faac -gnutls -gsm -ieee1394 (-iwmmxt) -jack -libv4l -mmxext -modplug (-neon) -openal -openssl -pic -pulseaudio -rtmp -schroedinger -speex -static-libs -test -vaapi (-vis)" 4,859 kB [0]
[ebuild     U  ]    dev-lang/yasm-1.2.0 [1.1.0-r1] USE="nls python" 1,403 kB [0]
[nomerge       ] media-tv/sopcast-player-0.7.2  [1]
[nomerge       ]  dev-python/pygobject-3.0.3  USE="cairo threads -examples -test"  [0]
[ebuild     U ~]   dev-libs/gobject-introspection-1.30.0-r2 [1.30.0-r1] USE="-doc -test" 0 kB [0]
[blocks B      ] media-video/ffmpeg ("media-video/ffmpeg" is blocking media-video/libav-0.8_pre20111222)

Total: 6 packages (5 upgrades, 1 new), Size of downloads: 28,858 kB
Conflict: 1 block (1 unsatisfied)
Portage tree and overlays:
 [0] /usr/portage
 [1] /var/lib/layman/vmware

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (media-video/libav-0.8_pre20111222::gentoo, installed) pulled in by
    media-video/libav required by @selected

  (media-video/ffmpeg-0.9.1::gentoo, ebuild scheduled for merge) pulled in by
    >=media-video/ffmpeg-0.9.1 required by (media-video/mplayer-1.0_rc4_p20120109::gentoo, ebuild scheduled for merge)
    >=media-video/ffmpeg-0.9[X,encode,jpeg2k,mp3,sdl,theora,threads,-vaapi,vdpau,x264] required by (virtual/ffmpeg-0.9::gentoo, installed)

I'll not reopen this bug because I'm pretty sure that one of the mods will close it.

please, just fix the bug.