Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compiling errors on v4l on Centos 8 #177

Open
MasterOfDesaster111 opened this issue Nov 15, 2021 · 0 comments
Open

compiling errors on v4l on Centos 8 #177

MasterOfDesaster111 opened this issue Nov 15, 2021 · 0 comments

Comments

@MasterOfDesaster111
Copy link

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

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

No branches or pull requests

1 participant