lecotex / vtuner

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

vtuner-driver fails to build with kernel-3.3 #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
building against kernel 3.3-rc4:

make -C 
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/li
nux-3.3-rc4 
SUBDIRS=/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-
devel/vtuner-driver-9 modules
make[1]: Entering directory 
`/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/l
inux-3.3-rc4'
  CC [M]  /home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vtuner-driver-9/vtunerc_proxyfe.o
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:104:13: warning: 'struct 
dvb_frontend_parameters' declared inside parameter list [enabled by default]
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:104:13: warning: its scope is only this 
definition or declaration, which is probably not what you want [enabled by 
default]
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c: In function 'dvb_proxyfe_get_frontend':
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:118:39: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:120:6: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:121:6: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:126:39: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:128:6: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:129:6: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:130:6: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:131:6: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:132:6: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:133:6: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:134:6: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:140:38: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:142:6: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:143:6: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:144:6: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:152:3: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:153:3: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c: At top level:
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:158:13: warning: 'struct 
dvb_frontend_parameters' declared inside parameter list [enabled by default]
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c: In function 'dvb_proxyfe_set_frontend':
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:165:34: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:166:34: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:172:39: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:175:46: error: dereferencing pointer to 
incomplete type
g pointer to incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:257:39: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:259:44: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:260:47: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:261:47: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:262:48: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:263:52: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:264:49: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:265:56: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:271:38: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:273:45: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:274:43: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:275:44: error: dereferencing pointer to 
incomplete type
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c: At top level:
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:470:2: warning: initialization from 
incompatible pointer type [enabled by default]
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:470:2: warning: (near initialization for 
'dvb_proxyfe_ofdm_ops.set_frontend') [enabled by default]
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:471:2: warning: initialization from 
incompatible pointer type [enabled by default]
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:471:2: warning: (near initialization for 
'dvb_proxyfe_ofdm_ops.get_frontend') [enabled by default]
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:500:2: warning: initialization from 
incompatible pointer type [enabled by default]
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:500:2: warning: (near initialization for 
'dvb_proxyfe_qam_ops.set_frontend') [enabled by default]
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:501:2: warning: initialization from 
incompatible pointer type [enabled by default]
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:501:2: warning: (near initialization for 
'dvb_proxyfe_qam_ops.get_frontend') [enabled by default]
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:532:2: warning: initialization from 
incompatible pointer type [enabled by default]
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:532:2: warning: (near initialization for 
'dvb_proxyfe_qpsk_ops.get_frontend') [enabled by default]
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:535:2: warning: initialization from 
incompatible pointer type [enabled by default]
/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/vt
uner-driver-9/vtunerc_proxyfe.c:535:2: warning: (near initialization for 
'dvb_proxyfe_qpsk_ops.set_frontend') [enabled by default]
make[2]: *** 
[/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/v
tuner-driver-9/vtunerc_proxyfe.o] Error 1
make[1]: *** 
[_module_/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64
-devel/vtuner-driver-9] Error 2
make[1]: Leaving directory 
`/home/stephan/projects/openelec-master/build.OpenELEC_PVR-Fusion.x86_64-devel/l
inux-3.3-rc4'
make: *** [default] Error 2

Original issue reported on code.google.com by stephan....@gmail.com on 22 Feb 2012 at 12:18

GoogleCodeExporter commented 9 years ago
Mauro (linux-media maintainer) did very big change inside dvb-core subsystem in 
kernel 3.3.

See more here: http://patchwork.linuxtv.org/patch/9157/

I'm just investigating it. Patches follow asap.

Honza

Original comment by jpetrous on 4 Mar 2012 at 9:38

GoogleCodeExporter commented 9 years ago
I just did very quick'n'dirty patch for linux 3.3. 

Please replace vtunerc_proxyfe.c by attached variant and recheck.

Honza

Original comment by jpetrous on 4 Mar 2012 at 10:23

Attachments:

GoogleCodeExporter commented 9 years ago
many thanks and sorry for the delay, with this updated vtunerc_proxyfe.c the 
driver compiles with 3.3-rc7, i cant test byself but will let test the driver 
the next days and report back. Thanks much again

Original comment by stephan....@gmail.com on 14 Mar 2012 at 4:26

GoogleCodeExporter commented 9 years ago
Hi,

i have just tested your fixed vtunerc_proxyfe.c with kernel 3.3.5 an i get this 
issue:

vdr01 vtuner.linux-driver # make
make -C /usr/src/linux-3.3.5-gentoo SUBDIRS=/tmp/vtuner.linux-driver modules
make[1]: Entering directory `/usr/src/linux-3.3.5-gentoo'
  CC [M]  /tmp/vtuner.linux-driver/vtunerc_proxyfe.o
  LD [M]  /tmp/vtuner.linux-driver/vtunerc.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: "dvb_dmx_init" [/tmp/vtuner.linux-driver/vtunerc.ko] undefined!
WARNING: "dvb_unregister_adapter" [/tmp/vtuner.linux-driver/vtunerc.ko] 
undefined!
WARNING: "dvb_register_frontend" [/tmp/vtuner.linux-driver/vtunerc.ko] 
undefined!
WARNING: "dvb_unregister_frontend" [/tmp/vtuner.linux-driver/vtunerc.ko] 
undefined!
WARNING: "dvb_dmxdev_release" [/tmp/vtuner.linux-driver/vtunerc.ko] undefined!
WARNING: "dvb_dmx_release" [/tmp/vtuner.linux-driver/vtunerc.ko] undefined!
WARNING: "dvb_dmx_swfilter_packets" [/tmp/vtuner.linux-driver/vtunerc.ko] 
undefined!
WARNING: "dvb_register_adapter" [/tmp/vtuner.linux-driver/vtunerc.ko] undefined!
WARNING: "dvb_dmxdev_init" [/tmp/vtuner.linux-driver/vtunerc.ko] undefined!
  CC      /tmp/vtuner.linux-driver/vtunerc.mod.o
  LD [M]  /tmp/vtuner.linux-driver/vtunerc.ko
make[1]: Leaving directory `/usr/src/linux-3.3.5-gentoo'
vdr01 vtuner.linux-driver #

is this OK??

greets.

Original comment by d_sping...@gmx.de on 21 May 2012 at 6:39

GoogleCodeExporter commented 9 years ago
Getting back to the theme :)

I can say that my patch was technically correct. But still is not everything 
correct.

As other testers said, only DVB-S channels are working. DVB-S2 nope.
Investigation is ongoing.

Original comment by jpetrous on 30 Jul 2012 at 8:54

GoogleCodeExporter commented 9 years ago
Finally some good progress: seems the following simple patch (on top on already 
patched vtunerc_proxy.c) does the job:

diff -r ace6c943cc40 vtunerc_proxyfe.c
--- a/vtunerc_proxyfe.c Sun Oct 23 07:19:08 2011 +0200
+++ b/vtunerc_proxyfe.c Sun Sep 16 21:31:10 2012 +0200
@@ -414,7 +411,8 @@
        memcpy(&fe->ops, &dvb_proxyfe_qpsk_ops, sizeof(struct dvb_frontend_ops))
;
        if (can_2g_modulation) {
                fe->ops.info.caps |= FE_CAN_2G_MODULATION;
-               strcpy(fe->ops.info.name, "vTuner proxyFE DVB-S2");
+               fe->ops.delsys[1] = SYS_DVBS2;
+               strcpy(fe->ops.info.name, "vTuner proxyFE DVB-S/S2");
        }

        return fe;

---

We have started verification. If all goes well, I will release a fixed version 
ASAP.

/Honza

Original comment by jpetrous on 16 Sep 2012 at 7:37

GoogleCodeExporter commented 9 years ago
Version 1.3 of vtuner kernel driver was just released in repository.

This is a major fix for compilation on kernels >= 3.3.0, which are using 
internal DVB API 5.5

Please reopen the issue if it not fixed the issue for you.

/Honza

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