Page 1 of 1

Drriver compile problems on OpenSuse 15.4

PostPosted: Thu Apr 06, 2023 10:58 pm
by AndersG
I upgraded as tthe previous 15.2 was out of support. Drivers did not load when I restarted so I tried building them again and got:


CC [M] /usr/src/media_build/v4l/bttv-input.o
CC [M] /usr/src/media_build/v4l/bttv-audio-hook.o
/usr/src/media_build/v4l/bttv-gpio.c:64:12: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.remove = bttv_sub_remove,
^~~~~~~~~~~~~~~
/usr/src/media_build/v4l/bttv-gpio.c:64:12: note: (near initialization for 'bttv_sub_bus_type.remove')
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-5.14.21-150400.24.55/scripts/Makefile.build:272: /usr/src/media_build/v4l/bttv-gpio.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [/usr/src/linux-5.14.21-150400.24.55/Makefile:1888: /usr/src/media_build/v4l] Error 2
make[2]: *** [../../../linux-5.14.21-150400.24.55/Makefile:220: __sub-make] Error 2
make[2]: Leaving directory '/usr/src/linux-5.14.21-150400.24.55-obj/x86_64/default'
make[1]: *** [Makefile:53: default] Error 2
make[1]: Leaving directory '/usr/src/media_build/v4l'
make: *** [Makefile:26: all] Error 2
tvburk:/usr/src/media_build # ^C
tvburk:/usr/src/media_build # uname -a
Linux tvburk 5.14.21-150400.24.55-default #1 SMP PREEMPT_DYNAMIC Mon Mar 27 15:25:48 UTC 2023 (cc75cf8) x86_64 x86_64 x86_64 GNU/Linux
tvburk:/usr/src/media_build #

I found an old message that said to mail tbssupport@tbsdtv.com but that did not work. Any ideas?

Re: Drriver compile problems on OpenSuse 15.4

PostPosted: Fri Apr 07, 2023 12:54 am
by AndersG
The function returns an int where it should be a void or vice versa. You need to go into backports.txt in backports, under media_build and rem out one tiny line:

[5.14.1023]
#add v5.14_bus_void_return.patch

The way I have had it explained for me is that SuSe has stuff from newer kernels included and thus backports that would be needed on other distros will break things.

The problem is as always to figure out what backport to remove. Not always trivial.