I'm getting the following error when compiling on a Raspberry PI 2 with Raspbian.
In file included from src/i2c.c:21:0:
/usr/include/linux/i2c-dev.h:37:8: error: redefinition of ‘struct i2c_msg’
struct i2c_msg {
^~~
In file included from src/i2c.c:20:0:
/usr/include/linux/i2c.h:68:8: note: originally defined here
struct i2c_msg {
^~~
In file included from src/i2c.c:21:0:
/usr/include/linux/i2c-dev.h:89:7: error: redefinition of ‘union i2c_smbus_data’
union i2c_smbus_data {
^~~~~~
In file included from src/i2c.c:20:0:
/usr/include/linux/i2c.h:131:7: note: originally defined here
union i2c_smbus_data {
It happens with both Luarocks, and via source compilation. Any ideas?
Hi,
I'm getting the following error when compiling on a Raspberry PI 2 with Raspbian.
In file included from src/i2c.c:21:0: /usr/include/linux/i2c-dev.h:37:8: error: redefinition of ‘struct i2c_msg’ struct i2c_msg { ^
~~ In file included from src/i2c.c:20:0: /usr/include/linux/i2c.h:68:8: note: originally defined here struct i2c_msg { ^~~ In file included from src/i2c.c:21:0: /usr/include/linux/i2c-dev.h:89:7: error: redefinition of ‘union i2c_smbus_data’ union i2c_smbus_data { ^~~~~~ In file included from src/i2c.c:20:0: /usr/include/linux/i2c.h:131:7: note: originally defined here union i2c_smbus_data {It happens with both Luarocks, and via source compilation. Any ideas?
Thanks in advance.
-dev