linux_media icon indicating copy to clipboard operation
linux_media copied to clipboard

compiling errors on v4l on Centos 8

Open MasterOfDesaster111 opened this issue 3 years ago • 0 comments

Hi there, I'm trying to compile the driver for a TBS6902 on Centos 8 with Kernel 4.18.0-348.el8.x86_64 and after executing make I get 2 errors.

first one is this:

In file included from ././include/linux/compiler_types.h:58, from : /tmp/ljalves-tbsdriver/media_build/v4l/../linux/include/linux/compiler-gcc.h:2:2: error: #error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead." #error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."

second one is this one:

/tmp/ljalves-tbsdriver/media_build/v4l/compat.h: In function 'i2c_lock_adapter': /tmp/ljalves-tbsdriver/media_build/v4l/compat.h:1081:21: error: dereferencing pointer to incomplete type 'struct i2c_adapter' mutex_lock(&adapter->bus_lock); ^~ /tmp/ljalves-tbsdriver/media_build/v4l/compat.h: At top level: /tmp/ljalves-tbsdriver/media_build/v4l/compat.h:1083:46: warning: 'struct i2c_adapter' declared inside parameter list will not be visible outside of this definition or declaration static inline void i2c_unlock_adapter(struct i2c_adapter *adapter) ^~~~~~~~~~~ /tmp/ljalves-tbsdriver/media_build/v4l/compat.h: In function 'i2c_unlock_adapter': /tmp/ljalves-tbsdriver/media_build/v4l/compat.h:1085:23: error: dereferencing pointer to incomplete type 'struct i2c_adapter' mutex_unlock(&adapter->bus_lock);

I have also tried the tbs forked driver but it fails too but with:

In file included from : /tmp/tbsdriver/media_build/v4l/compat.h:721:10: fatal error: linux/frame.h: No such file or directory #include <linux/frame.h> ^~~~~~~~~~~~~~~ compilation terminated. make[3]: *** [scripts/Makefile.build:315: /tmp/tbsdriver/media_build/v4l/msp3400-driver.o] Fehler 1 make[3]: *** Es wird auf noch nicht beendete Prozesse gewartet.... In file included from : /tmp/tbsdriver/media_build/v4l/compat.h:721:10: fatal error: linux/frame.h: No such file or directory #include <linux/frame.h> ^~~~~~~~~~~~~~~ compilation terminated. make[3]: *** [scripts/Makefile.build:315: /tmp/tbsdriver/media_build/v4l/msp3400-kthreads.o] Fehler 1 In file included from : /tmp/tbsdriver/media_build/v4l/compat.h:721:10: fatal error: linux/frame.h: No such file or directory #include <linux/frame.h> ^~~~~~~~~~~~~~~ compilation terminated. make[3]: *** [scripts/Makefile.build:315: /tmp/tbsdriver/media_build/v4l/ccs-core.o] Fehler 1 In file included from : /tmp/tbsdriver/media_build/v4l/compat.h:721:10: fatal error: linux/frame.h: No such file or directory #include <linux/frame.h>

What can I do to get rid of it?

Thank you

Andreas

error output.txt

MasterOfDesaster111 avatar Nov 15 '21 15:11 MasterOfDesaster111