All of lore.kernel.org
 help / color / mirror / Atom feed
* v4l-dvb and old kernels
@ 2009-05-26 13:03 Antonio Beamud Montero
  2009-05-26 16:47 ` Alexey Klimov
  2009-05-27 18:34 ` Mauro Carvalho Chehab
  0 siblings, 2 replies; 3+ messages in thread
From: Antonio Beamud Montero @ 2009-05-26 13:03 UTC (permalink / raw)
  To: Linux Media Mailing List

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: v4l-dvb and old kernels
  2009-05-26 13:03 v4l-dvb and old kernels Antonio Beamud Montero
@ 2009-05-26 16:47 ` Alexey Klimov
  2009-05-27 18:34 ` Mauro Carvalho Chehab
  1 sibling, 0 replies; 3+ messages in thread
From: Alexey Klimov @ 2009-05-26 16:47 UTC (permalink / raw)
  To: Antonio Beamud Montero; +Cc: Linux Media Mailing List

Hello, Antonio

On Tue, May 26, 2009 at 5:03 PM, Antonio Beamud Montero
<antonio.beamud@gmail.com> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: v4l-dvb and old kernels
  2009-05-26 13:03 v4l-dvb and old kernels Antonio Beamud Montero
  2009-05-26 16:47 ` Alexey Klimov
@ 2009-05-27 18:34 ` Mauro Carvalho Chehab
  1 sibling, 0 replies; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2009-05-27 18:34 UTC (permalink / raw)
  To: Antonio Beamud Montero; +Cc: Linux Media Mailing List

Em Tue, 26 May 2009 15:03:56 +0200
Antonio Beamud Montero <antonio.beamud@gmail.com> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-27 18:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-26 13:03 v4l-dvb and old kernels Antonio Beamud Montero
2009-05-26 16:47 ` Alexey Klimov
2009-05-27 18:34 ` Mauro Carvalho Chehab

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.