After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 142664 - v4l2_buffer redeclaration : won't compile with -Werror
v4l2_buffer redeclaration : won't compile with -Werror
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other Linux
: Normal normal
: 0.8.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-05-17 14:48 UTC by Stephane Loeuillet
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6


Attachments
/usr/include/linux/videodev2.h from kernel 2.6.5 (28.71 KB, text/plain)
2004-05-17 14:49 UTC, Stephane Loeuillet
Details
full config.log (bz2) (22.66 KB, application/octet-stream)
2004-05-17 16:35 UTC, Stephane Loeuillet
Details

Description Stephane Loeuillet 2004-05-17 14:48:34 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
Comment 1 Stephane Loeuillet 2004-05-17 14:49:26 UTC
Created attachment 27776 [details]
/usr/include/linux/videodev2.h from kernel 2.6.5
Comment 2 Stephane Loeuillet 2004-05-17 15:02:08 UTC
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
Comment 3 Stephane Loeuillet 2004-05-17 15:03:31 UTC
and in config.log :
#define GST_V4L2_MISSING_BUFDECL 1
Comment 4 Stephane Loeuillet 2004-05-17 16:35:51 UTC
Created attachment 27785 [details]
full config.log (bz2)
Comment 5 Stephane Loeuillet 2004-05-17 16:58:25 UTC
fixed in CVS