[vlc-devel] Build rrrors v4l2 (different errors on different versions of openSUSE)

Rémi Denis-Courmont remi at remlab.net
Mon Oct 3 18:01:42 CEST 2011


Le lundi 3 octobre 2011 18:14:36 Dominique Leuenberger, vous avez écrit :
> On Factory the 'issue' is likely only that we do not yet have the '3.1
> final kernel', as we have 'only' rc7 available, which in turn might not
> yet have the right header version (The check implies version 3.1.0)
> 
> The build Failure on Factory looks like this:
> ### Factory failure
> v4l2/controls.c: In function 'ControlAddInteger':
> v4l2/controls.c:363:25: error: 'V4L2_CTRL_FLAG_VOLATILE' undeclared
> (first use in this function)
> v4l2/controls.c:363:25: note: each undeclared identifier is reported
> only once for each function it appears in
> ### End Factory failure

I wrongly assumed it'd in the next release as it was in the official 
documentation. It should be fixed now.

> On 11.4, the error is like this:
> ### 11.4 failure
> In file included from v4l2/controls.c:30:0:
> v4l2/v4l2.h:35:4: warning: #warning Please update Video4Linux2 headers!
> v4l2/controls.c:76:25: error: 'V4L2_CID_ILLUMINATORS_1' undeclared here
> (not in a function)
> v4l2/controls.c:76:5: warning: missing initializer
> v4l2/controls.c:76:5: warning: (near initialization for
> 'controls[31].cid')
> v4l2/controls.c:77:25: error: 'V4L2_CID_ILLUMINATORS_2' undeclared here
> (not in a function)
> v4l2/controls.c:77:5: warning: missing initializer
> v4l2/controls.c:77:5: warning: (near initialization for
> 'controls[32].cid')
> ### End 11.4 failure

Fixed.

> And on 11.4 the error is like this:
> ### 11.3 failure
> In file included from v4l2/video.c:40:0:
> v4l2/v4l2.h:35:4: warning: #warning Please update Video4Linux2 headers!
> v4l2/video.c:164:42: error: 'V4L2_COLORFX_NEGATIVE' undeclared here (not
> in a function)
> v4l2/video.c:165:5: error: 'V4L2_COLORFX_EMBOSS' undeclared here (not in
> a function)
> v4l2/video.c:165:26: error: 'V4L2_COLORFX_SKETCH' undeclared here (not
> in a function)
> v4l2/video.c:165:47: error: 'V4L2_COLORFX_SKY_BLUE' undeclared here (not
> in a function)
> v4l2/video.c:166:5: error: 'V4L2_COLORFX_GRASS_GREEN' undeclared here
> (not in a function)
> v4l2/video.c:166:31: error: 'V4L2_COLORFX_SKIN_WHITEN' undeclared here
> (not in a function)
> v4l2/video.c:166:57: error: 'V4L2_COLORFX_VIVID' undeclared here (not in
> a function)
> v4l2/video.c: In function 'InitVideo':
> ### End 11.3 failure

Antique kernel version. Not fixed.

> Amazing how this code could break in so many different ways! I would be
> surprised if no other distro is facing these errors!

Next time you report something like this, you may want to either:
 - be less sarcastic,
and/or
 - provide a patch.
Otherwise grumpy overworked unpaid developers will not care.

-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis



More information about the vlc-devel mailing list