gcc-4.8: error: invalid use of undefined type

Orcan Ogetbil oget.fedora at gmail.com
Sat Feb 2 09:55:51 UTC 2013


On Sat, Feb 2, 2013 at 4:33 AM, Julian Sikorski wrote:
> Hi,
>
> I am having issues building mplayer using gcc-4.8. An updated srpm [1]
> builds fine in mock for fedora-18-x86_64-rpmfusion_free target (when
> chain-built with ffmpeg-1.1.1), but on
> fedora-rawhide-x86_64-rpmfusion_free, it fails with the following error:
>
> libvo/vo_png.c: In function 'config':
> libvo/vo_png.c:135:9: error: invalid use of undefined type 'enum
> AVPixelFormat'
>          avctx->pix_fmt = imgfmt2pixfmt(format);
>          ^
>
> Full build log is attached. How do I fix this issue? Thank you in advance.
>

First, it would be easier to get an answer from the mplayer or ffmpeg
mailing lists. My second suggestion is to search for the definition of
that enum (AVPixelFormat) and add an #include to the corresponding
header file.

Good luck,
Orcan


More information about the devel mailing list