Page 1 of 1

TBS-6280

PostPosted: Thu Mar 10, 2016 10:29 pm
by brutus2675
Under Mageia 5, kernel-4.1.5-desktop-2.mga5 I am getting errors when compiling.

The previous kernel modules were wiped and 'make distclean' executed.

The driver used was downloaded last night: tbs-linux-drivers_v160219.zip

./v4l/tbs-x86_64.sh was successfully executed

'make' ran OK until:

/home/thelma/Programs/tbs/linux-tbs-drivers/v4l/saa7146_core.c: In function 'saa7146_init_one':
/home/thelma/Programs/tbs/linux-tbs-drivers/v4l/saa7146_core.c:414:58: error: 'IRQF_DISABLED' undeclared (first use in this function)
err = request_irq(pci->irq, interrupt_hw, IRQF_SHARED | IRQF_DISABLED,
^
/home/thelma/Programs/tbs/linux-tbs-drivers/v4l/saa7146_core.c:414:58: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:258: recipe for target '/home/thelma/Programs/tbs/linux-tbs-drivers/v4l/saa7146_core.o' failed
make[3]: *** [/home/thelma/Programs/tbs/linux-tbs-drivers/v4l/saa7146_core.o] Error 1
Makefile:1377: recipe for target '_module_/home/thelma/Programs/tbs/linux-tbs-drivers/v4l' failed
make[2]: *** [_module_/home/thelma/Programs/tbs/linux-tbs-drivers/v4l] Error 2
make[2]: Leaving directory '/usr/src/kernel-4.1.15-desktop-2.mga5'
Makefile:51: recipe for target 'default' failed
make[1]: *** [default] Error 2
make[1]: Leaving directory '/home/thelma/Programs/tbs/linux-tbs-drivers/v4l'
Makefile:26: recipe for target 'all' failed
make: *** [all] Error 2
[root@origen linux-tbs-drivers]#


I would really appreciate your help. Alan

Re: TBS-6280

PostPosted: Mon Mar 14, 2016 10:17 am
by cody
in some Linux kernels IRQF_DISABLED is not defined. that's why you get it's "undeclared", but the value of that constant is '0'. so, you can open the driver source code file in any text editor and replace every occurrence of IRQF_DISABLED with 0 - then save and build. if there are many such files where IRQF_DISABLED is used and it's slow and boring to edit so many files, one faster approach would be to open "./v4l/compat.h" and define IRQF_DISABLED to 0 there:
#define IRQF_DISABLED 0

Re: TBS-6280

PostPosted: Tue Mar 15, 2016 12:54 am
by brutus2675
That moved things and make and make install were concluded successfully.
BUT dmesg revealed this:
[ 5.883425] saa716x_core: disagrees about version of symbol dvb_frontend_detach
[ 5.883426] saa716x_core: Unknown symbol dvb_frontend_detach (err -22)
[ 5.883432] saa716x_core: disagrees about version of symbol dvb_unregister_frontend
[ 5.883432] saa716x_core: Unknown symbol dvb_unregister_frontend (err -22)
[ 5.883436] saa716x_core: disagrees about version of symbol dvb_register_frontend
[ 5.883436] saa716x_core: Unknown symbol dvb_register_frontend (err -22)

Re: TBS-6280

PostPosted: Tue Mar 15, 2016 1:17 am
by brutus2675
It is OK I followed advice given elsewhere on the forum about purging the drivers and starting again.
Thanks for your help.