[linux-dvb] Make errors for CVS drivers

Jon Burgess jburgess at uklinux.net
Wed Oct 19 23:54:03 CEST 2005

cardboil wrote:
> In file included from /home/mythtv/dvb-kernel/build-2.6/saa7146_i2c.c:1:
> /home/mythtv/dvb-kernel/build-2.6/compat.h:5:18: error: bttv.h: No such 
> file or directory

It is because the FC4 kernel-devel package only contains a subset of the 
header files present in the kernel source tree. The headers in 
drivers/media/video are missing and cause this problem. You could try 
filing a bug with the Fedora bugzilla.

You could install the latest kernel from rawhide, this is currently at 
2.6.14-rc4-git6 which is reasonably close to the dvb-kernel CVS so you 
shouldn't need to recompile the drivers.

Alternatively, assuming that you don't need to use the particular 
drivers that depend on these headers you could comment out all the ones 
that you don't need in the Makefile.

To fix the problem properly you'll need to add a couple of the header 
files  into /lib/modules/`uname -r`/build/drivers/media/video/...
You could get these from the kernel-`uname -r`.src.rpm file.

BTW - there is one incompatible change which prevents the cinergyT2.c 
file from compiling on linux-2.6.14-rc4:

   CC [M]  /home/jburgess/dvb/dvb-kernel/build-2.6/cinergyT2.o
/home/jburgess/dvb/dvb-kernel/build-2.6/cinergyT2.c: In function 
/home/jburgess/dvb/dvb-kernel/build-2.6/cinergyT2.c:909: error: invalid 
operands to binary >

It seems this change is the cause...

--- linux-2.6.13/include/linux/pm.h     2005-09-28 23:49:38.000000000 +0100
+++ linux-2.6.14-rc4/include/linux/pm.h 2005-10-13 23:28:51.000000000 +0100
@@ -186,7 +186,9 @@

  struct device;

-typedef u32 __bitwise pm_message_t;
+typedef struct pm_message {
+       int event;
+} pm_message_t;


More information about the linux-dvb mailing list