unixer / vtuner

Automatically exported from code.google.com/p/vtuner
0 stars 0 forks source link

error: field ‘prop’ has incomplete type #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, i tried to compile vtuner.ko ì, but i get en error (see below):

linux  distro : xubuntu 8.04
kernel : 2.6.24-19-generic
gcc : 4.2

leo@laptop:/usr/src/linux-headers-2.6.24-19-generic/vtuner.linux-driver$ sudo 
make KDIR=/usr/src/linux-headers-2.6.24-19-generic
make -C /usr/src/linux-headers-2.6.24-19-generic 
SUBDIRS=/usr/src/linux-headers-2.6.24-19-generic/vtuner.linux-driver modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-19-generic'
  CC [M]  /usr/src/linux-headers-2.6.24-19-generic/vtuner.linux-driver/vtunerc_main.o
In file included from 
/usr/src/linux-headers-2.6.24-19-generic/vtuner.linux-driver/vtunerc_priv.h:31,
                 from /usr/src/linux-headers-2.6.24-19-generic/vtuner.linux-driver/vtunerc_main.c:33:
/usr/src/linux-headers-2.6.24-19-generic/vtuner.linux-driver/vtuner.h:86: 
error: field ‘prop’ has incomplete type
/usr/src/linux-headers-2.6.24-19-generic/vtuner.linux-driver/vtunerc_main.c:37: 
warning: data definition has no type or storage class
/usr/src/linux-headers-2.6.24-19-generic/vtuner.linux-driver/vtunerc_main.c:37: 
warning: type defaults to ‘int’ in declaration of 
‘DVB_DEFINE_MOD_OPT_ADAPTER_NR’
/usr/src/linux-headers-2.6.24-19-generic/vtuner.linux-driver/vtunerc_main.c:37: 
warning: parameter names (without types) in function declaration
/usr/src/linux-headers-2.6.24-19-generic/vtuner.linux-driver/vtunerc_main.c: In 
function ‘vtunerc_init’:
/usr/src/linux-headers-2.6.24-19-generic/vtuner.linux-driver/vtunerc_main.c:282:
 error: ‘adapter_nr’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.24-19-generic/vtuner.linux-driver/vtunerc_main.c:282:
 error: (Each undeclared identifier is reported only once
/usr/src/linux-headers-2.6.24-19-generic/vtuner.linux-driver/vtunerc_main.c:282:
 error: for each function it appears in.)
/usr/src/linux-headers-2.6.24-19-generic/vtuner.linux-driver/vtunerc_main.c:282:
 error: too many arguments to function ‘dvb_register_adapter’
make[2]: *** 
[/usr/src/linux-headers-2.6.24-19-generic/vtuner.linux-driver/vtunerc_main.o] 
Error 1
make[1]: *** 
[_module_/usr/src/linux-headers-2.6.24-19-generic/vtuner.linux-driver] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-19-generic'
make: *** [default] Error 2

Original issue reported on code.google.com by elisa.ma...@gmail.com on 18 Jun 2012 at 9:43

GoogleCodeExporter commented 9 years ago
I think that the problem is /linux/dvb/frontend.h version in 
linux-headers-2.6.24-19-generic sources.

Original comment by armando....@gmail.com on 19 Jun 2012 at 2:01

GoogleCodeExporter commented 9 years ago
Yes, as Amando already noted, the problem is because of parameter handling in 
earlier DVB API versions. 

Unfortunatelly, the driver required version 5.0  DVB API or newer.

You have to update your kernel's DVB subsystem to 5.0 or newer to get driver 
compiled. Or do some local source "cooking" like adding necessary defines from 
newer headers or so. I would recommend to update linux DVB core, it is simpler 
and works pretty good.
Or switch to some newer kernel, which has version 5 API included already.

You can check if kernel has version 5.0 or newer DVB API included by checking 
include/linux/dvb/version.h:

#define DVB_API_VERSION 5

/Honza

Original comment by jpetrous on 19 Jun 2012 at 6:22

GoogleCodeExporter commented 9 years ago
Any update on it?

Original comment by jpetrous on 19 Sep 2012 at 9:17

GoogleCodeExporter commented 9 years ago
Seems no more answers from reporter. Closing.

Please reopen if needed.

Original comment by jpetrous on 18 Feb 2014 at 7:45