[MPlayer-cvslog] r26175 - in trunk/libmpdemux: demux_avs.h demuxer.h ebml.h matroska.h mp3_hdr.h mpeg_packetizer.h muxer.h parse_es.h stheader.h

Diego Biurrun diego at biurrun.de
Thu Mar 6 01:59:54 CET 2008


On Thu, Mar 06, 2008 at 12:32:01AM +0100, diego wrote:
> 
> Log:
> Add missing header #includes to fix 'make checkheaders'.
> 
> --- trunk/libmpdemux/muxer.h	(original)
> +++ trunk/libmpdemux/muxer.h	Thu Mar  6 00:32:01 2008
> @@ -1,6 +1,12 @@
>  #ifndef MPLAYER_MUXER_H
>  #define MPLAYER_MUXER_H
>  
> +#include <stdint.h>
> +#include <sys/types.h>
> +#include "aviheader.h"
> +#include "ms_hdr.h"
> +#include "stream/stream.h"

We got ourselves the first bug uncovered by the new #include scheme:

cc  -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I.. -I../libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=k6-3 -mtune=k6-3 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/usr/include/directfb -I/usr/include/  -I/usr/include/SDL -D_REENTRANT -I/usr/include/kde/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/freetype2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12     -c -o ve_vfw.o ve_vfw.c
In file included from ../libmpdemux/muxer.h:7,
                 from ve_vfw.c:31:
../libmpdemux/aviheader.h:78: error: conflicting types for 'MainAVIHeader'
../loader/wine/avifmt.h:186: error: previous declaration of 'MainAVIHeader' was here
../libmpdemux/aviheader.h:102: error: conflicting types for 'AVIStreamHeader'
../loader/wine/avifmt.h:212: error: previous declaration of 'AVIStreamHeader' was here
../libmpdemux/aviheader.h:120: error: conflicting types for 'AVIINDEXENTRY'
../loader/wine/avifmt.h:230: error: previous declaration of 'AVIINDEXENTRY' was here
make[1]: *** [ve_vfw.o] Error 1
make[1]: Leaving directory `/var/tmp/mplayer_vanilla/libmpcodecs'
make: *** [libmpcodecs/libmpcodecs.a] Error 2

libmpdemux/aviheader.h and loader/wine/avifmt.h have duplicate
declarations with conflicting types.

Uoti suggested just removing the loader/wine/avifmt.h #include from
ve_vfw.c, I'll look into it when I have had more sleep.

Diego



More information about the MPlayer-cvslog mailing list