[MPlayer-dev-eng] [PATCH] Fix compilation error in libmpdemux/demux_gif.c

Nicolas Coiffier coiffier.ni at gmail.com
Mon Jul 15 19:10:18 CEST 2013


Hi Alexander,

[...]
> > > On 2013-07-13 17:55 +0200, Nicolas Coiffier wrote:
> > > > When I tried to compile mplayer, I got the following errors:
> > > >
> > > > libmpdemux/demux_gif.c: In function 'demux_gif_fill_buffer':
> > > > libmpdemux/demux_gif.c:97:7: error: implicit declaration of function
> > > > 'PrintGifError' [-Werror=implicit-function-declaration]
> > > >        PrintGifError();
> > > >        ^
> > > > cc1: some warnings being treated as errors
> > > > make: *** [libmpdemux/demux_gif.o] Error 1
> > > >
> > > > A little googling give me the following link:
> > > > https://bugs.archlinux.org/task/36039
> > > >
> > > > I applied it on svn revision 36356, and it worked fine for me. So I
> > > > transfer this patch to the appropriate mplayer mailing-list.
>
>   If you like you could do something in the mean time. Build
> MPlayer with the patch applied. Afterwards if it all built fine,
> do:
>
>   rm libmpdemux/demux_gif.o
>   make ibmpdemux/demux_gif.o
>
> Then post the complete output of the second command here.
>
>
Here is the output of the make command (with the patch applied):

make libmpdemux/demux_gif.o
cc -MMD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith
-Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes
-Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement
-std=gnu99 -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112
-D_XOPEN_SOURCE=600 -D_ISOC99_SOURCE -I. -Iffmpeg -O4 -march=native
-mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
-Ilibdvdread4  -fpie -DPIC -D_REENTRANT -I/usr/include/   -D_REENTRANT
-I/usr/include/freetype2 -I/usr/include/opus
-I/usr/include/schroedinger-1.0 -I/usr/include/orc-0.4  -c -o
libmpdemux/demux_gif.o libmpdemux/demux_gif.c

Nicolas


More information about the MPlayer-dev-eng mailing list