[linux-dvb] Error compiling v4l-dvb

Klaus Frahm frahm at irsamc.ups-tlse.fr
Sun Aug 6 18:59:45 CEST 2006


On  6 Aug, Ralf Schneider wrote:
> Hi,
> 
> I'm very new to DVB. I installed my DVB card (a Hauppauge WinTV Nova-S Plus) 
> and it works fine with the delivered software on Windows XP (installed only 
> for testing :-).
> 
> I then followed the instructions at 
> http://linuxtv.org/v4lwiki/index.php/How_to_build_from_CVS and downloaded the 
> sources of the v4l drivers. I executed the "hg clone" command in the 
> directory /usr/src/linux, so I got a new subdirectory called v4l-dvb. I moved 
> to this directory and typed "make". Many of the modules compiled without 
> errors, but then I get a compiler error saying:
> 
>   CC [M]  /usr/src/linux-2.6.13-15.11/v4l-dvb/v4l/em28xx-core.o
> /usr/src/linux-2.6.13-15.11/v4l-dvb/v4l/em28xx-core.c: In function 'rvmalloc':
> /usr/src/linux-2.6.13-15.11/v4l-dvb/v4l/em28xx-core.c:80: error: implicit 
> declaration of function 'SetPageReserved'
> /usr/src/linux-2.6.13-15.11/v4l-dvb/v4l/em28xx-core.c:80: error: implicit 
> declaration of function 'vmalloc_to_page'
> /usr/src/linux-2.6.13-15.11/v4l-dvb/v4l/em28xx-core.c: In function 'rvfree':
> /usr/src/linux-2.6.13-15.11/v4l-dvb/v4l/em28xx-core.c:99: error: implicit 
> declaration of function 'ClearPageReserved'
> 
> What is the problem here? And how can I solve this? I try to compile the 
> drivers on a SuSE 10.0 with a kernel 2.6.13.
> 

The compiliation works fine on a 2.6.18-rc3 kernel (I just tried). It
may be possible that 2.6.13 is simply a bit to old for certain modules
to compile properly (because of the kernel header files). I suggest that
you upgrade your kernel, for exemple to the latest 2.6.17.7 or to the
kernel rpm-packages from Suse 10.1, which is 2.6.16-blabla (install also
the source package !!). In the first case you have to compile the kernel
your self. Furthermore it is quite possible that the v4l_dvb subtree in
the 2.6.17.7 kernel is already good enough for your dvb card, i.e. you
only need to select the proper modules when configuring the kernel
before compilation and the rest is automatic. 
If you install the binary rpm-package 2.6.16... for Suse 10.1 it may
even be completely automatic, i.e. it may work directly if you have an
USB device. 


You only need the latest v4l_dvb sources (to obtain by "hg clone ...")
in case you suffer from a bug which has only recently be solved (maybe
during the last 1-2 months).

Greetings, Klaus.



More information about the linux-dvb mailing list