Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: help: compliation problems (Nova-T on redhat 9)



Hello,

Holger Waechtler wrote:
> 
> John Pullan wrote:
> > Hi I'm looking for some help to get my Nova-t card working. I've
> > downloaded version 1.0.1 of the dvb code and tried to compiler it but I
> > get the following error :
> >
> > make[4]: Entering directory `/home/jmp/cvs/DVB/driver/av7110'
> > gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-8/include -Wall
> > -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> > -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
> > -DMODULE -DMODVERSIONS -include
> > /usr/src/linux-2.4.20-8/include/linux/modversions.h -I.. -I.
> > -DCONFIG_DVB_AV7110_OSD -MD -I../../include -nostdinc -iwithprefix
> > include -DKBUILD_BASENAME=saa7146_core  -c -o saa7146_core.o
> > saa7146_core.c
> > In file included from saa7146_core.c:37:
> > ../compat.h:37:1: warning: "video_usercopy" redefined
> > In file included from
> > /usr/src/linux-2.4.20-8/include/linux/modversions.h:297,
> >                  from <command line>:1:
> > /usr/src/linux-2.4.20-8/include/linux/modules/videodev.ver:10:1:
> > warning: this is the location of the previous definition
> > In file included from saa7146_core.c:37:
> > ../compat.h:62:1: warning: "video_devdata" redefined
> > In file included from
> > /usr/src/linux-2.4.20-8/include/linux/modversions.h:297,
> >                  from <command line>:1:
> > /usr/src/linux-2.4.20-8/include/linux/modules/videodev.ver:8:1: warning:
> > this is the location of the previous definition
> > saa7146_core.c: In function `saa7146_core_command':
> > saa7146_core.c:378: warning: passing arg 1 of
> > `remap_page_range_R2baf18f2' makes pointer from integer without a cast
> > saa7146_core.c:378: incompatible type for argument 4 of
> > `remap_page_range_R2baf18f2'
> > saa7146_core.c:378: too few arguments to function
> > `remap_page_range_R2baf18f2'
> >
> > Could someone point out to me what I've done wrong?
> 
> are you using a RedHat system? If so please fetch a fresh kernel from
> http://www.kernel.org/, configure+build it and then build the DVB driver
> again. The kernels delivered with a Redhat distribution are heavily
> patched so that the version checks in the compatiblity workaround code fail.
> 
> As alternative you also might to try these issues manually, you'll have
> to adjust the version defines in compat.h so that the execute code
> matches the code in your kernel includes. But this is tricky and will
> cause some troubles if you are not experienced, so better fetch+install
> a clean+fresh kernel without proprietary patches.
> 
> Holger
> 
> --
> Info:
> To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.

I had to apply the attached patch to compat.h to make the drivers
compile with RH9 2.4.20 default kernel. Maybe it gives some hints
for finetuning compat.h.

Tjuess
  Heino
--- compat.h.org	2003-02-07 13:22:51.000000000 +0100
+++ compat.h	2003-08-26 17:14:23.000000000 +0200
@@ -66,7 +66,7 @@
 extern struct page * vmalloc_to_page(void *addr);
 #endif
 
-
+/*
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
 
 #if defined(MODVERSIONS)
@@ -79,7 +79,7 @@
 	remap_page_range(from,to,size,prot)
 #endif
 #endif
-
+*/
 
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0))
 extern u32 crc32_le (u32 crc, unsigned char const *p, size_t len);

Home | Main Index | Thread Index