GNOME Bugzilla – Bug 142664
v4l2_buffer redeclaration : won't compile with -Werror
Last modified: 2004-12-22 21:47:04 UTC
use kernel+headers 2.6.5 (unpatched 2.6.5) breaks while compiling because of the redefinition of this structure attaching my header now
Created attachment 27776 [details] /usr/include/linux/videodev2.h from kernel 2.6.5
the error itself : gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../gst-libs -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/gstreamer-0.8 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -DGST_DISABLE_DEPRECATED -g -Wall -Wno-sign-compare -Werror -DG_DISABLE_DEPRECATED -I/usr/X11R6/include -O0 -ggdb -Wall -Werror -MT libgstvideo4linux2_la-gstv4l2element.lo -MD -MP -MF .deps/libgstvideo4linux2_la-gstv4l2element.Tpo -c gstv4l2element.c -fPIC -DPIC -o .libs/libgstvideo4linux2_la-gstv4l2element.o In file included from v4l2_calls.h:23, from gstv4l2element.c:29: gstv4l2element.h:51: error: redefinition of `struct v4l2_buffer' make[3]: *** [libgstvideo4linux2_la-gstv4l2element.lo] Erreur 1 make[3]: Leaving directory `/usr/portage/tmp/portage/gst-plugins-0.8.9/work/gst-plugins/sys/v4l2' make[2]: *** [all-recursive] Erreur 1 make[2]: Leaving directory `/usr/portage/tmp/portage/gst-plugins-0.8.9/work/gst-plugins/sys' make[1]: *** [all-recursive] Erreur 1 make[1]: Leaving directory `/usr/portage/tmp/portage/gst-plugins-0.8.9/work/gst-plugins' make: *** [all] Erreur 2
and in config.log : #define GST_V4L2_MISSING_BUFDECL 1
Created attachment 27785 [details] full config.log (bz2)
fixed in CVS