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

Compile fails i2c_msg & i2c_smbus_data redefined in pi_i2c.c #15

Open
DougieLawson opened this issue Feb 3, 2015 · 1 comment
Open

Comments

@DougieLawson
Copy link

I'm trying to install this on a Raspbian Jessie system, RPi B.
gcc version 4.9.1 (Raspbian 4.9.1-19)

gcc -I/usr/local/include -I/usr/lib/erlang/lib/erl_interface-3.7.9/include -I/usr/lib/erlang/usr/include/ -Ideps/erlang_portutil -Ideps/pihwm/lib -c -o priv/pi_i2c.o deps/pihwm/lib/pi_i2c.c
In file included from deps/pihwm/lib/pi_i2c.c:29:0:
/usr/include/linux/i2c-dev.h:37:8: error: redefinition of ‘struct i2c_msg’
 struct i2c_msg {
        ^
In file included from deps/pihwm/lib/pi_i2c.c:28:0:
/usr/include/linux/i2c.h:68:8: note: originally defined here
 struct i2c_msg {
        ^
In file included from deps/pihwm/lib/pi_i2c.c:29:0:
/usr/include/linux/i2c-dev.h:89:7: error: redefinition of ‘union i2c_smbus_data’
 union i2c_smbus_data {
       ^
In file included from deps/pihwm/lib/pi_i2c.c:28:0:
/usr/include/linux/i2c.h:128:7: note: originally defined here
 union i2c_smbus_data {
       ^
Makefile:40: recipe for target 'pihwm' failed
make: *** [pihwm] Error 1
@DougieLawson
Copy link
Author

It works OK on Raspbian wheezy with gcc version 4.6.3 (Debian 4.6.3-14+rpi1)

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