Re: v4l-dvb and old kernels

2009-05-27 Thread Mauro Carvalho Chehab
Em Tue, 26 May 2009 15:03:56 +0200
Antonio Beamud Montero  escreveu:

> It would compile today's snapshot of v4l-dvb with an old kernel version 
> (for example 2.6.16)? (or is better to upgrade the kernel?)
> 
> Trying to compile today's mercurial snapshot in a SuSE 10.1 (2.6.16-21), 
> give the next errors:
> 
> /root/v4l-dvb/v4l/bttv-i2c.c: In function 'init_bttv_i2c':
> /root/v4l-dvb/v4l/bttv-i2c.c:411: error: storage size of 'info' isn't known
> /root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' 
> to incomplete type 'struct i2c_board_info'
> /root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' 
> to incomplete type 'struct i2c_board_info'
> /root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' 
> to incomplete type 'struct i2c_board_info'
> /root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' 
> to incomplete type 'struct i2c_board_info'
> /root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' 
> to incomplete type 'struct i2c_board_info'
> /root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' 
> to incomplete type 'struct i2c_board_info'
> /root/v4l-dvb/v4l/bttv-i2c.c:427: error: implicit declaration of 
> function 'i2c_new_probed_device'
> /root/v4l-dvb/v4l/bttv-i2c.c:411: warning: unused variable 'info'
> make[5]: *** [/root/v4l-dvb/v4l/bttv-i2c.o] Error 1

The issue should be fixed with the current tip. I just added a backport patch
that will restore backward compilation starting from 2.6.16



Cheers,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: v4l-dvb and old kernels

2009-05-26 Thread Alexey Klimov
Hello, Antonio

On Tue, May 26, 2009 at 5:03 PM, Antonio Beamud Montero
 wrote:
> It would compile today's snapshot of v4l-dvb with an old kernel version (for
> example 2.6.16)? (or is better to upgrade the kernel?)

Not long time ago v4l-dvb community had discussions about dropping
support for kernels older than 2.6.22. And community decided to
support kernels 2.6.22 - 2.6.30+. One of the reason that it's big work
to support code to make it compiles and works in old kernels. Well,
developers want to spend more time working on new code.

So, the best way to you is to upgrade your kernel.

Second way to correct mistakes. Probably developers can help you here.

One more way, probably you can take old snapshot of v4l-dvb repository
that compiles and work on 2.6.16 if you need. Someone can point to
link to it (i don' know).

> Trying to compile today's mercurial snapshot in a SuSE 10.1 (2.6.16-21),
> give the next errors:
>
> /root/v4l-dvb/v4l/bttv-i2c.c: In function 'init_bttv_i2c':
> /root/v4l-dvb/v4l/bttv-i2c.c:411: error: storage size of 'info' isn't known
> /root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' to
> incomplete type 'struct i2c_board_info'
> /root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' to
> incomplete type 'struct i2c_board_info'
> /root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' to
> incomplete type 'struct i2c_board_info'
> /root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' to
> incomplete type 'struct i2c_board_info'
> /root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' to
> incomplete type 'struct i2c_board_info'
> /root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' to
> incomplete type 'struct i2c_board_info'
> /root/v4l-dvb/v4l/bttv-i2c.c:427: error: implicit declaration of function
> 'i2c_new_probed_device'
> /root/v4l-dvb/v4l/bttv-i2c.c:411: warning: unused variable 'info'
> make[5]: *** [/root/v4l-dvb/v4l/bttv-i2c.o] Error 1

Well, this mistakes appear in v4l-dvb daily build too.

-- 
Best regards, Klimov Alexey
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


v4l-dvb and old kernels

2009-05-26 Thread Antonio Beamud Montero
It would compile today's snapshot of v4l-dvb with an old kernel version 
(for example 2.6.16)? (or is better to upgrade the kernel?)


Trying to compile today's mercurial snapshot in a SuSE 10.1 (2.6.16-21), 
give the next errors:


/root/v4l-dvb/v4l/bttv-i2c.c: In function 'init_bttv_i2c':
/root/v4l-dvb/v4l/bttv-i2c.c:411: error: storage size of 'info' isn't known
/root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' 
to incomplete type 'struct i2c_board_info'
/root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' 
to incomplete type 'struct i2c_board_info'
/root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' 
to incomplete type 'struct i2c_board_info'
/root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' 
to incomplete type 'struct i2c_board_info'
/root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' 
to incomplete type 'struct i2c_board_info'
/root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' 
to incomplete type 'struct i2c_board_info'
/root/v4l-dvb/v4l/bttv-i2c.c:427: error: implicit declaration of 
function 'i2c_new_probed_device'

/root/v4l-dvb/v4l/bttv-i2c.c:411: warning: unused variable 'info'
make[5]: *** [/root/v4l-dvb/v4l/bttv-i2c.o] Error 1

Greetings.
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html