[MPlayer-users] Latest svn fails to build

Giorgio mywing81 at gmail.com
Sun Jun 20 20:08:46 CEST 2010


Hello,

r31495 fails to build with the following error:

cc -MD -MP -Wstrict-prototypes -Wmissing-prototypes -Wundef
-Wdisabled-optimization -Wno-pointer-sign
-Wdeclaration-after-statement -std=gnu99 -Wall -Wno-switch
-Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native
-pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I.
-D_REENTRANT -I/usr/include/   -I/usr/include/kde/artsc -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  -D_REENTRANT
-I/usr/include/freetype2    -DPNG_NO_MMX_CODE -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 -I/usr/include/pixman-1   -c -o
libmpcodecs/vf.o libmpcodecs/vf.c
libmpcodecs/vf.c:218: error: conflicting type qualifiers for 'vf_obj_list'
libmpcodecs/vf.h:26: error: previous declaration of 'vf_obj_list' was here
libmpcodecs/vf.c:219: warning: dereferencing type-punned pointer will
break strict-aliasing rules
make: *** [libmpcodecs/vf.o] Errore 1


Probably something like this should solve the problem:

Index: libmpcodecs/vf.h
===================================================================
--- libmpcodecs/vf.h	(revision 31495)
+++ libmpcodecs/vf.h	(working copy)
@@ -23,7 +23,7 @@
 #include "mp_image.h"

 extern m_obj_settings_t* vf_settings;
-extern m_obj_list_t vf_obj_list;
+extern const m_obj_list_t vf_obj_list;

 struct vf_instance;
 struct vf_priv_s;

Regards,

Giorgio Vazzana


More information about the MPlayer-users mailing list