v4l-dvb and old kernels
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.
Hello, Antonio
Quoted 2 lines · 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?)
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).
Quoted 13 lines
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 'structi2c_board_info'/root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' to incomplete type 'structi2c_board_info'/root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' to incomplete type 'structi2c_board_info'/root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' to incomplete type 'structi2c_board_info'
Quoted 8 lines
/root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' to incomplete type 'structi2c_board_info'/root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' to incomplete type 'structi2c_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.
Signature · 1 line
Best regards, Klimov Alexey
Em Tue, 26 May 2009 15:03:56 +0200
Antonio Beamud Montero <[email protected]> escreveu:
Quoted 16 lines
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 'structi2c_board_info'/root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' to incomplete type 'structi2c_board_info'/root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' to incomplete type 'structi2c_board_info'/root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' to incomplete type 'structi2c_board_info'
Quoted 8 lines
/root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' to incomplete type 'structi2c_board_info'/root/v4l-dvb/v4l/bttv-i2c.c:425: error: invalid application of 'sizeof' to incomplete type 'structi2c_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