Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15989 - gst-plugins-0.6.0-r2 fails to compile, v4l header dependancy linux/videodev2.h
Summary: gst-plugins-0.6.0-r2 fails to compile, v4l header dependancy linux/videodev2.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-19 06:36 UTC by Paul Giordano
Modified: 2003-04-03 08:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Giordano 2003-02-19 06:36:55 UTC
emerge media-libs/gst-plugins-0.6.0-r2 fails, looks like videodev2.h is not at
the correct level - installled with sys-kernel/linux-headers-2.4.20. 


Reproducible: Always
Steps to Reproduce:
1. emerge gst-plugins
2.
3.

Actual Results:  
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../gst-libs -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/gstreamer-0.6
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
-DGST_DISABLE_DEPRECATED -g -march=athlon-mp -O2 -pipe -c gstv4l2element.c -MT
libgstv4l2element_la-gstv4l2element.lo -MD -MP -MF
.deps/libgstv4l2element_la-gstv4l2element.TPlo  -fPIC -DPIC -o
libgstv4l2element_la-gstv4l2element.lo
In file included from v4l2_calls.h:23,
                 from gstv4l2element.c:24:
gstv4l2element.h:26:29: linux/videodev2.h: No such file or directory
In file included from v4l2_calls.h:23,
                 from gstv4l2element.c:24:
gstv4l2element.h:45: `V4L2_CTRL_TYPE_INTEGER' undeclared here (not in a function)
gstv4l2element.h:45: enumerator value for
`GST_V4L2_ATTRIBUTE_VALUE_TYPE_INTEGER' not integer constant
gstv4l2element.h:46: `V4L2_CTRL_TYPE_BOOLEAN' undeclared here (not in a function)
gstv4l2element.h:46: enumerator value for
`GST_V4L2_ATTRIBUTE_VALUE_TYPE_BOOLEAN' not integer constant
gstv4l2element.h:47: `V4L2_CTRL_TYPE_MENU' undeclared here (not in a function)
gstv4l2element.h:47: enumerator value for `GST_V4L2_ATTRIBUTE_VALUE_TYPE_MENU'
not integer constant
gstv4l2element.h:48: `V4L2_CTRL_TYPE_BUTTON' undeclared here (not in a function)
gstv4l2element.h:48: enumerator value for `GST_V4L2_ATTRIBUTE_VALUE_TYPE_BUTTON'
not integer constant
gstv4l2element.h:79: field `vcap' has incomplete type
gstv4l2element.h:93: confused by earlier errors, bailing out


Expected Results:  
clean compile

picked up the patches in http://bytesex.org/patches/2.4, updated the header with
those. That cleared it up.
Comment 1 foser (RETIRED) gentoo-dev 2003-02-19 07:07:08 UTC
which patches did you need exactly ?
Comment 2 foser (RETIRED) gentoo-dev 2003-02-19 15:10:54 UTC
disabling v4l for now.. since header fixing might take some time. question still stands
Comment 3 Paul Giordano 2003-02-26 22:01:09 UTC
linux-2.4.20/include/linux/videodev2.h out of 11-v4l2-api-2.4.20.diff.gz is where the enumerators are.
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2003-04-03 05:58:47 UTC
this had been reported and fixed in GStreamer CVS:

http://bugzilla.gnome.org/show_bug.cgi?id=105467

patching the linux-headers is not a good idea since it'll break for people running 2.4.19. although how many are still running this, i don't know.
Comment 5 foser (RETIRED) gentoo-dev 2003-04-03 08:09:01 UTC
v4l is disabled in current gst-plugins ebuilds, we'll just re-enable when the fix is in a release.