• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Compilation error under openSUSE
#1
pilight usually compiles and runs fine under openSUSE, but using newer commits from the rewrite branch, wiringx no longer compiles:

Code:
martin@linux-027e:~/builds/pilight/rewrite>  mkdir build
martin@linux-027e:~/builds/pilight/rewrite>  cd build
martin@linux-027e:~/builds/pilight/rewrite/build>  cmake ..
-- The C compiler identification is GNU 4.8.3
-- The CXX compiler identification is GNU 4.8.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for libpcap - found (/usr/lib64/libpcap.so)
-- Looking for libunwind - found (/usr/lib64/libunwind.so)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  

-- WARNING --
Manually compiling and installing pilight will also clear all module folders:
/usr/local/lib/pilight/protocols/                                                                                                                                                  
/usr/local/lib/pilight/hardware/                                                                                                                                                  
/usr/local/lib/pilight/actions/                                                                                                                                                    
/usr/local/lib/pilight/operators/                                                                                                                                                  
-- WARNING --

-- Configuring done
-- Generating done
-- Build files have been written to: /home/martin/builds/pilight/rewrite/build
martin@linux-027e:~/builds/pilight/rewrite/build>  make -j5
Scanning dependencies of target pilight
[  0%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/gcm.c.o
[  0%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_cookie.c.o
[  0%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/arc4.c.o
[  0%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecdsa.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pem.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/version.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/asn1write.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/cipher.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/bignum.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ctr_drbg.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/version_features.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/aesni.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_ciphersuites.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/threading.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/padlock.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/sha256.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecp.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/entropy_poll.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/des.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/camellia.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/sha1.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/oid.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_cache.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/platform.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md4.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pk_wrap.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/memory_buffer_alloc.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkcs12.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/debug.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/havege.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/xtea.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/hmac_drbg.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ripemd160.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_create.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/dhm.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/rsa.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md5.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/sha512.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkwrite.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/aes.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509write_csr.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecp_curves.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecjpake.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_csr.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/net.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_tls.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkcs5.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecdh.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pk.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_crl.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509write_crt.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md_wrap.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkcs11.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/asn1parse.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/cipher_wrap.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/timing.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/entropy.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkparse.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_cli.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/error.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_srv.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/blowfish.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/base64.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/certs.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ccm.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md2.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_crt.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_ticket.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/lemaker/bananapi.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/lemaker/bananapim2.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/linksprite/pcduino1.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/platform.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/hardkernel/odroidc1.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/hardkernel/odroidxu4.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/hardkernel/odroidc2.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_gate_edge_dq.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_gate_edge_sdl.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_base_pro_sdl.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_base_pro_dq.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi1b2.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi2.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi1b+.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi3.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi1b1.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/wiringx/i2c-dev.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/wiringx/wiringX.c.o
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:15:27: fatal error: linux/i2c-dev.h: No such file or directory
#include <linux/i2c-dev.h>
                           ^
compilation terminated.
CMakeFiles/pilight.dir/build.make:2039: recipe for target 'CMakeFiles/pilight.dir/libs/wiringx/i2c-dev.c.o' failed
make[2]: *** [CMakeFiles/pilight.dir/libs/wiringx/i2c-dev.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 23%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/nxp/imx6dqrm.c.o
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:24:0:
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:19:27: fatal error: linux/i2c-dev.h: No such file or directory
#include <linux/i2c-dev.h>
                           ^
compilation terminated.
CMakeFiles/pilight.dir/build.make:2062: recipe for target 'CMakeFiles/pilight.dir/libs/wiringx/wiringX.c.o' failed
make[2]: *** [CMakeFiles/pilight.dir/libs/wiringx/wiringX.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/pilight.dir/all' failed
make[1]: *** [CMakeFiles/pilight.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
martin@linux-027e:~/builds/pilight/rewrite/build>

Installing the i2c-tools package from the opensuse repository I get this:
Code:
martin@linux-027e:~/builds/pilight/rewrite>  mkdir build
martin@linux-027e:~/builds/pilight/rewrite>  cd build
martin@linux-027e:~/builds/pilight/rewrite/build>  cmake ..
-- The C compiler identification is GNU 4.8.3
-- The CXX compiler identification is GNU 4.8.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for libpcap - found (/usr/lib64/libpcap.so)
-- Looking for libunwind - found (/usr/lib64/libunwind.so)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  

-- WARNING --
Manually compiling and installing pilight will also clear all module folders:
/usr/local/lib/pilight/protocols/                                                                                                                                                  
/usr/local/lib/pilight/hardware/                                                                                                                                                  
/usr/local/lib/pilight/actions/                                                                                                                                                    
/usr/local/lib/pilight/operators/                                                                                                                                                  
-- WARNING --

-- Configuring done
-- Generating done
-- Build files have been written to: /home/martin/builds/pilight/rewrite/build
martin@linux-027e:~/builds/pilight/rewrite/build>  make -j5
Scanning dependencies of target pilight
[  0%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecdsa.c.o
[  0%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/arc4.c.o
[  0%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/gcm.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_cookie.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pem.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/version.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/asn1write.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/cipher.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/bignum.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ctr_drbg.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/version_features.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/aesni.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/threading.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/padlock.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_ciphersuites.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/sha256.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecp.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/entropy_poll.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/des.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/camellia.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/sha1.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/oid.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_cache.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/platform.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pk_wrap.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md4.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkcs12.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/memory_buffer_alloc.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/debug.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/havege.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/xtea.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/hmac_drbg.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ripemd160.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_create.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/dhm.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/rsa.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md5.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/sha512.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkwrite.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/aes.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecjpake.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509write_csr.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecp_curves.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_csr.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/net.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_tls.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkcs5.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecdh.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pk.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509write_crt.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_crl.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md_wrap.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkcs11.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/asn1parse.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/cipher_wrap.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/timing.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/entropy.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkparse.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_cli.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/error.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_srv.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/blowfish.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/base64.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/certs.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ccm.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_crt.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md2.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_ticket.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/lemaker/bananapi.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/lemaker/bananapim2.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/linksprite/pcduino1.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/platform.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/hardkernel/odroidc1.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/hardkernel/odroidxu4.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_gate_edge_sdl.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/hardkernel/odroidc2.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_gate_edge_dq.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_base_pro_sdl.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_base_pro_dq.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi1b2.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi1b+.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi2.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi3.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi1b1.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/wiringx/i2c-dev.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/wiringx/wiringX.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/nxp/imx6dqrm.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/nxp/imx6sdlrm.c.o
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:15:0:
/usr/include/linux/i2c-dev.h:37:8: error: redefinition of ‘struct i2c_msg’
struct i2c_msg {
        ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:14:0:
/usr/include/linux/i2c.h:68:8: note: originally defined here
struct i2c_msg {
        ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:15:0:
/usr/include/linux/i2c-dev.h:89:7: error: redefinition of ‘union i2c_smbus_data’
union i2c_smbus_data {
       ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:14:0:
/usr/include/linux/i2c.h:128:7: note: originally defined here
union i2c_smbus_data {
       ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:16:0:
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:21:14: error: conflicting types for ‘i2c_smbus_access’
inline __s32 i2c_smbus_access(int fd, char rw, int cmd, int size, union i2c_smbus_data *data);
              ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:15:0:
/usr/include/linux/i2c-dev.h:156:21: note: previous definition of ‘i2c_smbus_access’ was here
static inline __s32 i2c_smbus_access(int file, char read_write, __u8 command,
                     ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:16:0:
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:23:14: error: conflicting types for ‘i2c_smbus_write_byte’
inline __s32 i2c_smbus_write_byte(int fd, int value);
              ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:15:0:
/usr/include/linux/i2c-dev.h:183:21: note: previous definition of ‘i2c_smbus_write_byte’ was here
static inline __s32 i2c_smbus_write_byte(int file, __u8 value)
                     ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:16:0:
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:24:14: error: conflicting types for ‘i2c_smbus_read_byte_data’
inline __s32 i2c_smbus_read_byte_data(int fd, int cmd);
              ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:15:0:
/usr/include/linux/i2c-dev.h:189:21: note: previous definition of ‘i2c_smbus_read_byte_data’ was here
static inline __s32 i2c_smbus_read_byte_data(int file, __u8 command)
                     ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:16:0:
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:25:14: error: conflicting types for ‘i2c_smbus_write_byte_data’
inline __s32 i2c_smbus_write_byte_data(int fd, int cmd, int value);
              ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:15:0:
/usr/include/linux/i2c-dev.h:199:21: note: previous definition of ‘i2c_smbus_write_byte_data’ was here
static inline __s32 i2c_smbus_write_byte_data(int file, __u8 command,
                     ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:16:0:
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:26:14: error: conflicting types for ‘i2c_smbus_read_word_data’
inline __s32 i2c_smbus_read_word_data(int fd, int cmd);
              ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:15:0:
/usr/include/linux/i2c-dev.h:208:21: note: previous definition of ‘i2c_smbus_read_word_data’ was here
static inline __s32 i2c_smbus_read_word_data(int file, __u8 command)
                     ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:16:0:
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:27:14: error: conflicting types for ‘i2c_smbus_write_word_data’
inline __s32 i2c_smbus_write_word_data(int fd, int cmd, __u16 value);
              ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:15:0:
/usr/include/linux/i2c-dev.h:218:21: note: previous definition of ‘i2c_smbus_write_word_data’ was here
static inline __s32 i2c_smbus_write_word_data(int file, __u8 command,
                     ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:29:21: error: redefinition of ‘i2c_smbus_read_byte’
extern inline __s32 i2c_smbus_read_byte(int fd) {
                     ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.c:15:0:
/usr/include/linux/i2c-dev.h:174:21: note: previous definition of ‘i2c_smbus_read_byte’ was here
static inline __s32 i2c_smbus_read_byte(int file)
                     ^
CMakeFiles/pilight.dir/build.make:2039: recipe for target 'CMakeFiles/pilight.dir/libs/wiringx/i2c-dev.c.o' failed
make[2]: *** [CMakeFiles/pilight.dir/libs/wiringx/i2c-dev.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:19:0,
                 from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:24:
/usr/include/linux/i2c-dev.h:37:8: error: redefinition of ‘struct i2c_msg’
struct i2c_msg {
        ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:18:0,
                 from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:24:
/usr/include/linux/i2c.h:68:8: note: originally defined here
struct i2c_msg {
        ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:19:0,
                 from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:24:
/usr/include/linux/i2c-dev.h:89:7: error: redefinition of ‘union i2c_smbus_data’
union i2c_smbus_data {
       ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:18:0,
                 from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:24:
/usr/include/linux/i2c.h:128:7: note: originally defined here
union i2c_smbus_data {
       ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:24:0:
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:21:14: error: conflicting types for ‘i2c_smbus_access’
inline __s32 i2c_smbus_access(int fd, char rw, int cmd, int size, union i2c_smbus_data *data);
              ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:19:0,
                 from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:24:
/usr/include/linux/i2c-dev.h:156:21: note: previous definition of ‘i2c_smbus_access’ was here
static inline __s32 i2c_smbus_access(int file, char read_write, __u8 command,
                     ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:24:0:
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:23:14: error: conflicting types for ‘i2c_smbus_write_byte’
inline __s32 i2c_smbus_write_byte(int fd, int value);
              ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:19:0,
                 from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:24:
/usr/include/linux/i2c-dev.h:183:21: note: previous definition of ‘i2c_smbus_write_byte’ was here
static inline __s32 i2c_smbus_write_byte(int file, __u8 value)
                     ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:24:0:
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:24:14: error: conflicting types for ‘i2c_smbus_read_byte_data’
inline __s32 i2c_smbus_read_byte_data(int fd, int cmd);
              ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:19:0,
                 from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:24:
/usr/include/linux/i2c-dev.h:189:21: note: previous definition of ‘i2c_smbus_read_byte_data’ was here
static inline __s32 i2c_smbus_read_byte_data(int file, __u8 command)
                     ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:24:0:
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:25:14: error: conflicting types for ‘i2c_smbus_write_byte_data’
inline __s32 i2c_smbus_write_byte_data(int fd, int cmd, int value);
              ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:19:0,
                 from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:24:
/usr/include/linux/i2c-dev.h:199:21: note: previous definition of ‘i2c_smbus_write_byte_data’ was here
static inline __s32 i2c_smbus_write_byte_data(int file, __u8 command,
                     ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:24:0:
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:26:14: error: conflicting types for ‘i2c_smbus_read_word_data’
inline __s32 i2c_smbus_read_word_data(int fd, int cmd);
              ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:19:0,
                 from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:24:
/usr/include/linux/i2c-dev.h:208:21: note: previous definition of ‘i2c_smbus_read_word_data’ was here
static inline __s32 i2c_smbus_read_word_data(int file, __u8 command)
                     ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:24:0:
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:27:14: error: conflicting types for ‘i2c_smbus_write_word_data’
inline __s32 i2c_smbus_write_word_data(int fd, int cmd, __u16 value);
              ^
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:19:0,
                 from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:24:
/usr/include/linux/i2c-dev.h:218:21: note: previous definition of ‘i2c_smbus_write_word_data’ was here
static inline __s32 i2c_smbus_write_word_data(int file, __u8 command,
                     ^
CMakeFiles/pilight.dir/build.make:2062: recipe for target 'CMakeFiles/pilight.dir/libs/wiringx/wiringX.c.o' failed
make[2]: *** [CMakeFiles/pilight.dir/libs/wiringx/wiringX.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/pilight.dir/all' failed
make[1]: *** [CMakeFiles/pilight.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
martin@linux-027e:~/builds/pilight/rewrite/build>
 
Reply
#2
What version of openSUSE?
 
Reply
#3
13.2
 
Reply
#4
Should be fixed.
 
Reply
#5
Yes, works again Smile
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Compilation errors pilino1234 3 1,421 03-05-2017, 06:14 PM
Last Post: pilino1234
  [Solved] openSUSE 13.2 "pilight-daemon -H" segfault pilino1234 2 1,899 04-22-2016, 08:39 AM
Last Post: pilino1234
Bug [Solved] no gpio-platform configured koos147 5 7,985 04-20-2016, 08:01 PM
Last Post: ksmedts
  [Solved] First transmission causes full cpu usage andiwand 11 4,555 04-19-2016, 06:16 AM
Last Post: curlymo
  [Solved] pilight-receive fills log with empty DEBUG messages pilino1234 1 1,638 04-12-2016, 07:29 PM
Last Post: curlymo
  [Solved] wiringX initialisation error ksmedts 6 4,418 04-11-2016, 08:06 PM
Last Post: ksmedts
  [Solved] Crash on invalid config.json syntax pilino1234 10 4,915 04-01-2016, 05:40 PM
Last Post: curlymo
  [Solved] Time Stamp Information wo_rasp 5 2,329 03-05-2016, 11:29 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)