Skip to content
This repository has been archived by the owner on Jan 3, 2021. It is now read-only.

Errors building in 4.14.15: dmx_* undeclared #15

Open
OJFord opened this issue Feb 4, 2018 · 3 comments
Open

Errors building in 4.14.15: dmx_* undeclared #15

OJFord opened this issue Feb 4, 2018 · 3 comments

Comments

@OJFord
Copy link

OJFord commented Feb 4, 2018

Many thanks for your work on this!

Unfortunately there are some issues building with the latest kernel:

Kernel build directory is /lib/modules/4.14.15-1-ARCH/build
make -C /lib/modules/4.14.15-1-ARCH/build SUBDIRS=/usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l CFLAGS="-I/usr/include -D__KERNEL__ -I/include -DEXPORT_SYMTAB" modules
make[1]: Entering directory '/usr/lib/modules/4.14.15-1-ARCH/build'
  CC [M]  /usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/tuner-simple.o
  CC [M]  /usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/tuner-types.o
  CC [M]  /usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/tda18271-maps.o
  CC [M]  /usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/tda18271-common.o
  CC [M]  /usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/tda18271-fe.o
  CC [M]  /usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/dvbdev.o
  CC [M]  /usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/dmxdev.o
In file included from /usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/dmxdev.h:40:0,
                 from /usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/dmxdev.c:32:
/usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/demux.h:233:51: warning: 'struct dmx_caps' declared inside parameter list will not be visible outside of this definition or declaration
  int (*get_caps) (struct dmx_demux* demux, struct dmx_caps *caps);
                                                   ^~~~~~~~
/usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/demux.h:235:52: error: unknown type name 'dmx_source_t'
  int (*set_source) (struct dmx_demux* demux, const dmx_source_t *src);
                                                    ^~~~~~~~~~~~
/usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/dmxdev.c: In function 'dvb_dmxdev_start_feed':
/usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/dmxdev.c:563:2: error: unknown type name 'dmx_output_t'; did you mean 'dio_submit_t'?
  dmx_output_t otype;
  ^~~~~~~~~~~~
  dio_submit_t
/usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/dmxdev.c: At top level:
/usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/dmxdev.c:788:32: error: unknown type name 'dmx_filter_t'; did you mean 'vm_flags_t'?
 static inline void invert_mode(dmx_filter_t *filter)
                                ^~~~~~~~~~~~
                                vm_flags_t
/usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/dmxdev.c: In function 'dvb_dmxdev_filter_set':
/usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/dmxdev.c:857:2: error: implicit declaration of function 'invert_mode'; did you mean 'user_mode'? [-Werror=implicit-function-declaration]
  invert_mode(&dmxdevfilter->params.sec.filter);
  ^~~~~~~~~~~
  user_mode
/usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/dmxdev.c: In function 'dvb_demux_do_ioctl':
/usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/dmxdev.c:1026:7: error: 'DMX_GET_CAPS' undeclared (first use in this function); did you mean 'DMX_OUT_TAP'?
  case DMX_GET_CAPS:
       ^~~~~~~~~~~~
       DMX_OUT_TAP
/usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/dmxdev.c:1026:7: note: each undeclared identifier is reported only once for each function it appears in
/usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/dmxdev.c:1034:7: error: 'DMX_SET_SOURCE' undeclared (first use in this function); did you mean 'DMX_GET_STC'?
  case DMX_SET_SOURCE:
       ^~~~~~~~~~~~~~
       DMX_GET_STC
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:320: /usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l/dmxdev.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1507: _module_/usr/src/BGT3xxx/bgt-linux-pcie-drv/v4l] Error 2
make[1]: Leaving directory '/usr/lib/modules/4.14.15-1-ARCH/build'
make: *** [Makefile:44: default] Error 2
@cbtrident
Copy link

@marcusbirkin
Copy link
Owner

Glad someone has continued my work.
I don't have any BGT hardware anymore due to continued hardware quality issues and lack of any support from the manufacturer

@OJFord
Copy link
Author

OJFord commented Sep 2, 2018

Thanks @cbtrident, BlackGold support actually pointed me to the same, I haven't got around to trying it though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants