• 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
rewrite fails to compile
#1
The latest rewrite code fails to compile.

Code:
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/storage/storage.c.o
/build/libs/pilight/storage/storage.c: In function 'config_values_update':
/build/libs/pilight/storage/storage.c:138:18: error: 'struct reason_code_sent_t' has no member named 'settings'
    if(strlen(data->settings) > 0) {
                  ^
/build/libs/pilight/storage/storage.c:139:20: error: 'struct reason_code_sent_t' has no member named 'settings'
     settings = data->settings;
                    ^
CMakeFiles/pilight.dir/build.make:3771: recipe for target 'CMakeFiles/pilight.dir/libs/pilight/storage/storage.c.o' failed
make[2]: *** [CMakeFiles/pilight.dir/libs/pilight/storage/storage.c.o] Error 1
CMakeFiles/Makefile2:130: recipe for target 'CMakeFiles/pilight.dir/all' failed
make[1]: *** [CMakeFiles/pilight.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2

This is the complete output.

Code:
$ make
Scanning dependencies of target DSO
[  0%] Building C object CMakeFiles/DSO.dir/tests/libdso.c.o
[  0%] Built target DSO
Scanning dependencies of target dso_shared
Linking C shared library libdso.so
[  0%] Built target dso_shared
Scanning dependencies of target pilight
[  0%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/cipher_wrap.c.o
[  0%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/asn1parse.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/sha512.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/entropy.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ctr_drbg.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecp.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecjpake.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/xtea.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/rsa.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/version.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/timing.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkcs11.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_crl.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pem.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/oid.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/bignum.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/version_features.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/aes.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_create.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md4.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_tls.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_cache.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/havege.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/base64.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_srv.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_crt.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/platform.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/arc4.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkcs5.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/padlock.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_cli.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecp_curves.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/des.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md_wrap.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/blowfish.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ccm.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_cookie.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/camellia.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/memory_buffer_alloc.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/hmac_drbg.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_ciphersuites.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/error.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecdsa.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pk.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_csr.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkwrite.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkcs12.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509write_crt.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/gcm.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/cipher.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md5.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/dhm.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/sha256.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/net.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/entropy_poll.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509write_csr.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ripemd160.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/asn1write.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/threading.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkparse.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_ticket.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md2.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/aesni.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecdh.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pk_wrap.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/certs.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/debug.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/sha1.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/xunlong/orangepipc+.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_base_pro_dq.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_gate_edge_sdl.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_gate_edge_dq.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_base_pro_sdl.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi1b2.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi1b+.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi2.c.o
[ 24%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi3.c.o
[ 24%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypizero.c.o
[ 24%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi1b1.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/platform.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/hardkernel/odroidxu4.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/hardkernel/odroidc1.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/hardkernel/odroidc2.c.o
[ 26%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/lemaker/bananapi1.c.o
[ 26%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/lemaker/bananapim2.c.o
[ 26%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/linksprite/pcduino1.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/broadcom/2836.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/broadcom/2835.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/allwinner/h3.c.o
[ 28%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/allwinner/a10.c.o
[ 28%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/allwinner/a31s.c.o
[ 28%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/soc.c.o
[ 29%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/nxp/imx6sdlrm.c.o
[ 29%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/nxp/imx6dqrm.c.o
[ 29%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/samsung/exynos5422.c.o
[ 29%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/amlogic/s805.c.o
[ 30%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/amlogic/s905.c.o
[ 30%] Building C object CMakeFiles/pilight.dir/libs/wiringx/wiringX.c.o
[ 30%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrbitbang.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avr.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/avrdude/ser_posix.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/avrdude/fileio.c.o
[ 32%] Building C object CMakeFiles/pilight.dir/libs/avrdude/ser_win32.c.o
[ 32%] Building C object CMakeFiles/pilight.dir/libs/avrdude/pgm.c.o
[ 32%] Building C object CMakeFiles/pilight.dir/libs/avrdude/arduino.c.o
[ 32%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrgpio.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/avrdude/safemode.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrpart.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrconfig.c.o
[ 34%] Building C object CMakeFiles/pilight.dir/libs/avrdude/stk500.c.o
/build/libs/avrdude/stk500.c: In function 'stk500_initpgm':
/build/libs/avrdude/stk500.c:635:22: warning: assignment from incompatible pointer type [enabled by default]
  pgm->cmd            = stk500_cmd;
                      ^
[ 34%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrupd.c.o
[ 34%] Building C object CMakeFiles/pilight.dir/libs/libuv/threadpool.c.o
[ 35%] Building C object CMakeFiles/pilight.dir/libs/libuv/inet.c.o
[ 35%] Building C object CMakeFiles/pilight.dir/libs/libuv/version.c.o
[ 35%] Building C object CMakeFiles/pilight.dir/libs/libuv/fs-poll.c.o
[ 35%] Building C object CMakeFiles/pilight.dir/libs/libuv/uv-common.c.o
[ 36%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/signal.c.o
[ 36%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-inotify.c.o
[ 36%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/loop.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/loop-watcher.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/process.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/fs.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/core.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/poll.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/udp.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/async.c.o
[ 39%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/tty.c.o
[ 39%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-core.c.o
[ 39%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-syscalls.c.o
[ 40%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/tcp.c.o
[ 40%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/pthread-fixes.c.o
[ 40%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/getnameinfo.c.o
[ 41%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/stream.c.o
[ 41%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/dl.c.o
[ 41%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/proctitle.c.o
[ 41%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/pipe.c.o
[ 42%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/timer.c.o
[ 42%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/thread.c.o
[ 42%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/getaddrinfo.c.o
[ 43%] Building C object CMakeFiles/pilight.dir/libs/lirc/config_file.c.o
[ 43%] Building C object CMakeFiles/pilight.dir/libs/lirc/transmit.c.o
[ 43%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/socket.c.o
[ 44%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/pilight.c.o
[ 44%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/cast.c.o
[ 44%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/dso.c.o
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/sha256cache.c.o
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ssdp.c.o
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/common.c.o
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/datetime.c.o
[ 46%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/proc.c.o
[ 46%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/gc.c.o
[ 46%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/eventpool.c.o
[ 47%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/json.c.o
[ 47%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ntp.c.o
[ 47%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/CuTest.c.o
[ 48%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/log.c.o
[ 48%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/binary.c.o
[ 48%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/network.c.o
[ 48%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/webserver.c.o
[ 49%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/mem.c.o
[ 49%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/firmware.c.o
[ 49%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ssl.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ping.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/mail.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/http.c.o
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/options.c.o
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/storage/json.c.o
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/storage/storage.c.o
/build/libs/pilight/storage/storage.c: In function 'config_values_update':
/build/libs/pilight/storage/storage.c:138:18: error: 'struct reason_code_sent_t' has no member named 'settings'
    if(strlen(data->settings) > 0) {
                  ^
/build/libs/pilight/storage/storage.c:139:20: error: 'struct reason_code_sent_t' has no member named 'settings'
     settings = data->settings;
                    ^
CMakeFiles/pilight.dir/build.make:3771: recipe for target 'CMakeFiles/pilight.dir/libs/pilight/storage/storage.c.o' failed
make[2]: *** [CMakeFiles/pilight.dir/libs/pilight/storage/storage.c.o] Error 1
CMakeFiles/Makefile2:130: recipe for target 'CMakeFiles/pilight.dir/all' failed
make[1]: *** [CMakeFiles/pilight.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
 
Reply
#2
Fixed
 
Reply
#3
The latest rewrite code fails to compile.

Code:
[ 77%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/IRgpio.c.o
/build/libs/pilight/hardware/IRgpio.c:21:35: fatal error: ../../wiringx/wiringX.h: No such file or directory
#include "../../wiringx/wiringX.h"
                                   ^
compilation terminated.
CMakeFiles/pilight.dir/build.make:3969: recipe for target 'CMakeFiles/pilight.dir/libs/pilight/hardware/IRgpio.c.o' failed
make[2]: *** [CMakeFiles/pilight.dir/libs/pilight/hardware/IRgpio.c.o] Error 1
CMakeFiles/Makefile2:130: recipe for target 'CMakeFiles/pilight.dir/all' failed
make[1]: *** [CMakeFiles/pilight.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
 
Reply
#4
The latest commit still fails to compile.

Code:
[ 77%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/IRgpio.c.o
/build/libs/pilight/hardware/IRgpio.c:52:35: warning: 'struct eventpool_fd_t' declared inside parameter list [enabled by default]
static int client_callback(struct eventpool_fd_t *node, int event) {
                                   ^
/build/libs/pilight/hardware/IRgpio.c:52:35: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
/build/libs/pilight/hardware/IRgpio.c: In function 'client_callback':
/build/libs/pilight/hardware/IRgpio.c:53:28: error: dereferencing pointer to incomplete type
  struct data_t *data = node->userdata;
                            ^
/build/libs/pilight/hardware/IRgpio.c:67:19: error: dereferencing pointer to incomplete type
    (void)read(node->fd, &c, 1);
                   ^
/build/libs/pilight/hardware/IRgpio.c:68:14: error: dereferencing pointer to incomplete type
    lseek(node->fd, 0, SEEK_SET);
              ^
In file included from /build/libs/pilight/hardware/../core/pilight.h:45:0,
                 from /build/libs/pilight/hardware/IRgpio.c:16:
/build/libs/pilight/hardware/IRgpio.c:101:13: error: dereferencing pointer to incomplete type
    FREE(node->userdata);
             ^
/build/libs/pilight/hardware/../core/mem.h:30:33: note: in definition of macro 'FREE'
#define FREE(a) __free((void *)(a), __FILE__, __LINE__),(a)=NULL
                                 ^
/build/libs/pilight/hardware/IRgpio.c:101:13: error: dereferencing pointer to incomplete type
    FREE(node->userdata);
             ^
/build/libs/pilight/hardware/../core/mem.h:30:58: note: in definition of macro 'FREE'
#define FREE(a) __free((void *)(a), __FILE__, __LINE__),(a)=NULL
                                                          ^
/build/libs/pilight/hardware/../core/mem.h:30:56: warning: left-hand operand of comma expression has no effect [-Wunused-value]
#define FREE(a) __free((void *)(a), __FILE__, __LINE__),(a)=NULL
                                                        ^
/build/libs/pilight/hardware/IRgpio.c:101:4: note: in expansion of macro 'FREE'
    FREE(node->userdata);
    ^
/build/libs/pilight/hardware/IRgpio.c: At top level:
/build/libs/pilight/hardware/IRgpio.c:52:12: warning: 'client_callback' defined but not used [-Wunused-function]
static int client_callback(struct eventpool_fd_t *node, int event) {
            ^
CMakeFiles/pilight.dir/build.make:3947: recipe for target 'CMakeFiles/pilight.dir/libs/pilight/hardware/IRgpio.c.o' failed
make[2]: *** [CMakeFiles/pilight.dir/libs/pilight/hardware/IRgpio.c.o] Error 1
CMakeFiles/Makefile2:130: recipe for target 'CMakeFiles/pilight.dir/all' failed
make[1]: *** [CMakeFiles/pilight.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2

And if I add the IRgpio.c and IRgpio.h to the libs/pilight/hardware/CMakeExclude.txt then the compile fails with:

Code:
[ 78%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/433gpio.c.o
[ 78%] Built target pilight
Scanning dependencies of target pilight_shared
Linking C shared library libpilight.so
[ 78%] Built target pilight_shared
Scanning dependencies of target pilight-control
[ 79%] Building C object CMakeFiles/pilight-control.dir/control.c.o
Linking C executable pilight-control
libpilight.so: undefined reference to `mbedtls_x509_crt_parse_der'
libpilight.so: undefined reference to `mbedtls_x509_crt_init'
libpilight.so: undefined reference to `mbedtls_x509_crt_free'
libpilight.so: undefined reference to `mbedtls_x509_crt_parse'
libpilight.so: undefined reference to `mbedtls_x509_crt_profile_suiteb'
libpilight.so: undefined reference to `mbedtls_x509_crt_verify_with_profile'
libpilight.so: undefined reference to `mbedtls_x509_crt_check_extended_key_usage'
libpilight.so: undefined reference to `mbedtls_x509_crt_info'
libpilight.so: undefined reference to `mbedtls_x509_crt_profile_default'
libpilight.so: undefined reference to `mbedtls_x509_crt_parse_file'
libpilight.so: undefined reference to `mbedtls_x509_crt_check_key_usage'
collect2: error: ld returned 1 exit status
CMakeFiles/pilight-control.dir/build.make:89: recipe for target 'pilight-control' failed
make[2]: *** [pilight-control] Error 1
CMakeFiles/Makefile2:165: recipe for target 'CMakeFiles/pilight-control.dir/all' failed
make[1]: *** [CMakeFiles/pilight-control.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2

Code:
$ ls -l /usr/local/lib/libmbed*
-rw-r--r-- 1 root staff 372222 Jun 30 15:18 /usr/local/lib/libmbedcrypto.a
-rw-r--r-- 1 root staff 174632 Jun 30 15:18 /usr/local/lib/libmbedtls.a
-rw-r--r-- 1 root staff  79758 Jun 30 15:18 /usr/local/lib/libmbedx509.a
 
Reply
#5
No issues what so ever here:
Code:
root@dev-ubuntu:/home/pilight/source# git clone -b rewrite https://github.com/pilight/pilight.git pilight-rewrite
Cloning into 'pilight-rewrite'...
remote: Counting objects: 17251, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 17251 (delta 0), reused 1 (delta 0), pack-reused 17243
Receiving objects: 100% (17251/17251), 12.04 MiB | 6.66 MiB/s, done.
Resolving deltas: 100% (13243/13243), done.
Checking out files: 100% (885/885), done.
root@dev-ubuntu:/home/pilight/source# cd pilight-rewrite/
root@dev-ubuntu:/home/pilight/source/pilight-rewrite# mkdir build
root@dev-ubuntu:/home/pilight/source/pilight-rewrite# cd build/
root@dev-ubuntu:/home/pilight/source/pilight-rewrite/build# cmake ..
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- 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/lib/x86_64-linux-gnu/libpcap.so)
-- Looking for libunwind - found (/usr/lib/x86_64-linux-gnu/libunwind.so)
-- Looking for libwiringx - found (/usr/lib/libwiringx.so)
-- Looking for libmbedtls - found (/usr/lib/x86_64-linux-gnu/libmbedtls.so)
-- Looking for libmbedcrypto - found (/usr/lib/x86_64-linux-gnu/libmbedcrypto.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/pilight/source/pilight-rewrite/build
root@dev-ubuntu:/home/pilight/source/pilight-rewrite/build# make -j4
Scanning dependencies of target DSO
Scanning dependencies of target pilight
[  0%] Building C object CMakeFiles/DSO.dir/tests/libdso.c.o
[  0%] Built target DSO
Scanning dependencies of target dso_shared
[  0%] Linking C shared library libdso.so
[  0%] Built target dso_shared
[  1%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avr.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrconfig.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/avrdude/arduino.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrbitbang.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrgpio.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrpart.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrupd.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/avrdude/pgm.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/avrdude/fileio.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/avrdude/safemode.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/avrdude/ser_posix.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/avrdude/ser_win32.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/avrdude/stk500.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/libuv/fs-poll.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/libuv/inet.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/libuv/threadpool.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/libuv/uv-common.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/libuv/version.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/async.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/core.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/dl.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/fs.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/getaddrinfo.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/getnameinfo.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-core.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-syscalls.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-inotify.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/loop.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/loop-watcher.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/pipe.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/poll.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/process.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/proctitle.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/pthread-fixes.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/signal.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/stream.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/sysinfo-loadavg.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/sysinfo-memory.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/tcp.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/thread.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/timer.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/tty.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/udp.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/lirc/config_file.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/lirc/transmit.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/CuTest.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/arp.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/cast.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/binary.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/common.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/datetime.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/dso.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/eventpool.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/firmware.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/gc.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/http.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/json.c.o
[ 24%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/log.c.o
[ 24%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/mail.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/mem.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/network.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ntp.c.o
[ 26%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/options.c.o
[ 26%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/pilight.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/proc.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ping.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/sha256cache.c.o
[ 28%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/socket.c.o
[ 28%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ssdp.c.o
[ 29%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/webserver.c.o
[ 29%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ssl.c.o
[ 29%] Building C object CMakeFiles/pilight.dir/libs/pilight/storage/json.c.o
[ 30%] Building C object CMakeFiles/pilight.dir/libs/pilight/storage/storage.c.o
[ 30%] Building C object CMakeFiles/pilight.dir/libs/pilight/psutil/linux.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/label.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/dim.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/pushbullet.c.o
[ 32%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/pushover.c.o
[ 32%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/sendmail.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/switch.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/toggle.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/functions/date_add.c.o
[ 34%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/functions/date_format.c.o
[ 34%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/functions/random.c.o
[ 35%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/and.c.o
[ 35%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/divide.c.o
[ 35%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/eq.c.o
[ 36%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/ge.c.o
[ 36%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/gt.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/intdivide.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/le.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/lt.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/minus.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/modulus.c.o
[ 39%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/multiply.c.o
[ 39%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/ne.c.o
[ 39%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/or.c.o
[ 40%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/plus.c.o
[ 40%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/action.c.o
[ 41%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/function.c.o
[ 41%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/events.c.o
[ 41%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operator.c.o
[ 42%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/alecto_ws1700.c.o
[ 42%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/alecto_wsd17.c.o
[ 43%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/alecto_wx500.c.o
[ 43%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_contact.c.o
[ 44%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_dimmer.c.o
[ 44%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_dusk.c.o
[ 44%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_motion.c.o
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_screen.c.o
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_screen_old.c.o
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_switch.c.o
[ 46%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_switch_old.c.o
[ 46%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/auriol.c.o
[ 47%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/beamish_switch.c.o
[ 47%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/clarus.c.o
[ 47%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/cleverwatts.c.o
[ 48%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/conrad_rsl_contact.c.o
[ 48%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/conrad_rsl_switch.c.o
[ 49%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/daycom.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/ehome.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_300_switch.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_400_switch.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_800_contact.c.o
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/eurodomest_switch.c.o
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_800_switch.c.o
[ 52%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/ev1527.c.o
[ 52%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/heitech.c.o
[ 52%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/impuls.c.o
[ 53%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/livolo_switch.c.o
[ 53%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/logilink_switch.c.o
[ 54%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/ninjablocks_weather.c.o
[ 54%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/mumbi.c.o
[ 54%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/pollin.c.o
[ 55%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_gt1000.c.o
[ 55%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_gt7000.c.o
[ 56%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_gt9000.c.o
[ 56%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_screen.c.o
[ 56%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rc101.c.o
[ 57%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rev_v1.c.o
[ 57%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rev_v2.c.o
[ 58%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rev_v3.c.o
[ 58%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rsl366.c.o
[ 58%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/sc2262.c.o
[ 59%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/secudo_smoke.c.o
[ 59%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/selectremote.c.o
[ 60%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/silvercrest.c.o
[ 60%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/techlico_switch.c.o
[ 60%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/teknihall.c.o
[ 61%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/tfa.c.o
[ 61%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/tfa30.c.o
[ 62%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/x10.c.o
[ 62%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/IR/generic.c.o
[ 62%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/cpu_temp.c.o
[ 63%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/datetime.c.o
[ 63%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/lirc.c.o
[ 64%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/openweathermap.c.o
[ 64%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/sunriseset.c.o
[ 64%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/wunderground.c.o
[ 65%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/xbmc.c.o
[ 65%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_dimmer.c.o
[ 66%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_label.c.o
[ 66%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_screen.c.o
[ 66%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_switch.c.o
[ 67%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_weather.c.o
[ 67%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_webcam.c.o
[ 68%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/network/arping.c.o
[ 68%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/network/ping.c.o
[ 68%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/bmp180.c.o
[ 69%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/dht11.c.o
[ 69%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/dht22.c.o
[ 70%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/ds18b20.c.o
[ 70%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/ds18s20.c.o
[ 70%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/gpio_switch.c.o
[ 71%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/lm75.c.o
[ 71%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/lm76.c.o
[ 72%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/relay.c.o
[ 72%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/core/raw.c.o
[ 72%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/protocol.c.o
[ 72%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/433nano.c.o
[ 73%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/433gpio.c.o
[ 74%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/IRgpio.c.o
[ 74%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/hardware.c.o
[ 75%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/none.c.o
[ 75%] Built target pilight
Scanning dependencies of target pilight_static
Scanning dependencies of target pilight_shared
[ 76%] Linking C shared library libpilight.so
[ 76%] Linking C static library libpilight.a
[ 76%] Built target pilight_shared
Scanning dependencies of target pilight-daemon
Scanning dependencies of target pilight-flash
Scanning dependencies of target pilight-control
[ 76%] Built target pilight_static
[ 76%] Building C object CMakeFiles/pilight-control.dir/control.c.o
Scanning dependencies of target pilight-unittest
[ 77%] Building C object CMakeFiles/pilight-flash.dir/flash.c.o
[ 77%] Building C object CMakeFiles/pilight-daemon.dir/daemon.c.o
/home/pilight/source/pilight-rewrite/daemon.c: In function ‘receive_parse_code’:
/home/pilight/source/pilight-rewrite/daemon.c:402:26: warning: passing argument 1 of ‘protocol-><U4098>.parseCode’ from incompatible pointer type [-Wincompatible-pointer-types]
      protocol->parseCode(message);
                          ^~~~~~~
/home/pilight/source/pilight-rewrite/daemon.c:402:26: note: expected ‘char **’ but argument is of type ‘char *’
/home/pilight/source/pilight-rewrite/daemon.c: In function ‘send_queue’:
/home/pilight/source/pilight-rewrite/daemon.c:645:36: warning: passing argument 2 of ‘protocol->createCode’ from incompatible pointer type [-Wincompatible-pointer-types]
     if(protocol->createCode(jcode, message) == 0 && main_loop == 1) {
                                    ^~~~~~~
/home/pilight/source/pilight-rewrite/daemon.c:645:36: note: expected ‘char **’ but argument is of type ‘char *’
[ 78%] Linking C executable pilight-flash
[ 78%] Linking C executable pilight-control
[ 78%] Building C object CMakeFiles/pilight-unittest.dir/tests/alltests.c.o
[ 78%] Linking C executable pilight-daemon
[ 78%] Built target pilight-flash
[ 78%] Built target pilight-control
[ 79%] Building C object CMakeFiles/pilight-unittest.dir/tests/arp.c.o
Scanning dependencies of target pilight-raw
[ 79%] Built target pilight-daemon
[ 79%] Building C object CMakeFiles/pilight-unittest.dir/tests/binary.c.o
Scanning dependencies of target pilight-receive
[ 80%] Building C object CMakeFiles/pilight-unittest.dir/tests/cast.c.o
[ 80%] Building C object CMakeFiles/pilight-raw.dir/raw.c.o
Scanning dependencies of target pilight-debug
[ 80%] Building C object CMakeFiles/pilight-receive.dir/receive.c.o
[ 80%] Building C object CMakeFiles/pilight-unittest.dir/tests/common.c.o
[ 81%] Linking C executable pilight-raw
[ 81%] Building C object CMakeFiles/pilight-unittest.dir/tests/datetime.c.o
[ 81%] Linking C executable pilight-receive
[ 81%] Built target pilight-raw
[ 82%] Building C object CMakeFiles/pilight-debug.dir/debug.c.o
[ 82%] Built target pilight-receive
[ 83%] Building C object CMakeFiles/pilight-unittest.dir/tests/dso.c.o
Scanning dependencies of target pilight-send
Scanning dependencies of target pilight-uuid
[ 83%] Building C object CMakeFiles/pilight-unittest.dir/tests/event_actions_dim.c.o
[ 83%] Linking C executable pilight-debug
[ 84%] Building C object CMakeFiles/pilight-send.dir/send.c.o
[ 84%] Building C object CMakeFiles/pilight-uuid.dir/uuid.c.o
[ 84%] Built target pilight-debug
[ 85%] Building C object CMakeFiles/pilight-unittest.dir/tests/event_actions_label.c.o
[ 85%] Building C object CMakeFiles/pilight-unittest.dir/tests/event_actions_mail.c.o
[ 86%] Linking C executable pilight-send
[ 86%] Linking C executable pilight-uuid
[ 86%] Building C object CMakeFiles/pilight-unittest.dir/tests/event_actions_switch.c.o
[ 86%] Built target pilight-send
[ 86%] Built target pilight-uuid
Scanning dependencies of target pilight-sha256
[ 87%] Building C object CMakeFiles/pilight-unittest.dir/tests/event_actions_toggle.c.o
[ 88%] Building C object CMakeFiles/pilight-sha256.dir/sha256.c.o
[ 88%] Building C object CMakeFiles/pilight-unittest.dir/tests/event_functions.c.o
[ 89%] Building C object CMakeFiles/pilight-unittest.dir/tests/event_operators.c.o
[ 89%] Building C object CMakeFiles/pilight-unittest.dir/tests/eventpool.c.o
[ 89%] Linking C executable pilight-sha256
[ 89%] Building C object CMakeFiles/pilight-unittest.dir/tests/events.c.o
[ 89%] Built target pilight-sha256
[ 90%] Building C object CMakeFiles/pilight-unittest.dir/tests/http.c.o
[ 90%] Building C object CMakeFiles/pilight-unittest.dir/tests/json.c.o
[ 91%] Building C object CMakeFiles/pilight-unittest.dir/tests/libdso.c.o
[ 91%] Building C object CMakeFiles/pilight-unittest.dir/tests/log.c.o
[ 91%] Building C object CMakeFiles/pilight-unittest.dir/tests/mail.c.o
[ 92%] Building C object CMakeFiles/pilight-unittest.dir/tests/network.c.o
[ 92%] Building C object CMakeFiles/pilight-unittest.dir/tests/ntp.c.o
[ 93%] Building C object CMakeFiles/pilight-unittest.dir/tests/options.c.o
[ 93%] Building C object CMakeFiles/pilight-unittest.dir/tests/ping.c.o
[ 93%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_433.c.o
[ 93%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_api_lirc.c.o
[ 94%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_api.c.o
[ 95%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_api_openweathermap.c.o
[ 95%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_api_wunderground.c.o
[ 95%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_api_xbmc.c.o
[ 96%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_core.c.o
[ 96%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_generic.c.o
[ 97%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_gpio_ds18x20.c.o
[ 97%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_i2c.c.o
[ 97%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_network_ping.c.o
[ 98%] Building C object CMakeFiles/pilight-unittest.dir/tests/sha256cache.c.o
[ 98%] Building C object CMakeFiles/pilight-unittest.dir/tests/socket.c.o
[ 99%] Building C object CMakeFiles/pilight-unittest.dir/tests/strptime.c.o
[ 99%] Building C object CMakeFiles/pilight-unittest.dir/tests/ssdp.c.o
[ 99%] Building C object CMakeFiles/pilight-unittest.dir/tests/webserver.c.o
[100%] Linking C executable pilight-unittest
[100%] Built target pilight-unittest
root@dev-ubuntu:/home/pilight/source/pilight-rewrite/build#
 
Reply
#6
Cannot confirm this either. Did you try this:

Code:
make clean
rm CMakeCache.txt

and then run cmake and make again.
 
Reply
#7
This is on Raspbian Jessie.

Code:
pi@raspb:~ $ git clone -b rewrite https://github.com/pilight/pilight.git pilight-rewrite
Cloning into 'pilight-rewrite'...
remote: Counting objects: 17259, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 17259 (delta 5), reused 7 (delta 5), pack-reused 17243
Receiving objects: 100% (17259/17259), 12.05 MiB | 3.33 MiB/s, done.
Resolving deltas: 100% (13248/13248), done.
Checking connectivity... done.
pi@raspb:~ $ cd pilight-rewrite/
pi@raspb:~/pilight-rewrite $ mkdir build
pi@raspb:~/pilight-rewrite $ cd build/
pi@raspb:~/pilight-rewrite/build $ cmake ..
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- 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
-- 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
-- Looking for libpcap - found (/usr/lib/arm-linux-gnueabihf/libpcap.so)
-- Looking for libunwind - found (/usr/lib/arm-linux-gnueabihf/libunwind.so)
-- Looking for libwiringx - found (/usr/lib/libwiringx.so)
-- Looking for libmbedtls - found (/usr/local/lib/libmbedtls.a)
-- Looking for libmbedcrypto - found (/usr/local/lib/libmbedcrypto.a)
-- Looking for include file pthread.h
-- Looking for include file 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/pi/pilight-rewrite/build
pi@raspb:~/pilight-rewrite/build $ make
Scanning dependencies of target DSO
[  0%] Building C object CMakeFiles/DSO.dir/tests/libdso.c.o
[  0%] Built target DSO
Scanning dependencies of target dso_shared
Linking C shared library libdso.so
[  0%] Built target dso_shared
Scanning dependencies of target pilight
[  0%] Building C object CMakeFiles/pilight.dir/libs/avrdude/ser_posix.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/avrdude/arduino.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrupd.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/avrdude/stk500.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrgpio.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrconfig.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrbitbang.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrpart.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/avrdude/safemode.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/avrdude/fileio.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/avrdude/pgm.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/avrdude/ser_win32.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avr.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/libuv/inet.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/libuv/version.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/libuv/threadpool.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/libuv/fs-poll.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/libuv/uv-common.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/loop.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/thread.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/udp.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/sysinfo-loadavg.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/dl.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/poll.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/timer.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/process.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/pthread-fixes.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-inotify.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/getnameinfo.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/getaddrinfo.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/core.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-syscalls.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/pipe.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/stream.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/loop-watcher.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/tty.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/fs.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/proctitle.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/tcp.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-core.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/signal.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/sysinfo-memory.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/async.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/lirc/config_file.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/lirc/transmit.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/mail.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/socket.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/common.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/gc.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/cast.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/arp.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ssdp.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/proc.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/firmware.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/datetime.c.o
[ 24%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ssl.c.o
[ 24%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/pilight.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/CuTest.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/webserver.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ping.c.o
[ 26%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/network.c.o
[ 26%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/options.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ntp.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/binary.c.o
[ 28%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/mem.c.o
[ 28%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/log.c.o
[ 28%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/dso.c.o
[ 29%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/http.c.o
[ 29%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/sha256cache.c.o
[ 30%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/eventpool.c.o
[ 30%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/json.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/pilight/storage/storage.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/pilight/storage/json.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/pilight/psutil/linux.c.o
[ 32%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/toggle.c.o
[ 32%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/pushover.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/dim.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/switch.c.o
[ 34%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/label.c.o
[ 34%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/sendmail.c.o
[ 34%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/pushbullet.c.o
[ 35%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/functions/date_format.c.o
[ 35%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/functions/date_add.c.o
[ 36%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/functions/random.c.o
[ 36%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/lt.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/modulus.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/divide.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/intdivide.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/minus.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/ge.c.o
[ 39%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/le.c.o
[ 39%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/and.c.o
[ 40%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/multiply.c.o
[ 40%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/plus.c.o
[ 40%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/eq.c.o
[ 41%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/gt.c.o
[ 41%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/ne.c.o
[ 42%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/or.c.o
[ 42%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/events.c.o
[ 42%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operator.c.o
[ 43%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/action.c.o
[ 43%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/function.c.o
[ 44%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_motion.c.o
[ 44%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/selectremote.c.o
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_800_switch.c.o
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/mumbi.c.o
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/tfa.c.o
[ 46%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/ev1527.c.o
[ 46%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_800_contact.c.o
[ 47%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_gt1000.c.o
[ 47%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/secudo_smoke.c.o
[ 48%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_dimmer.c.o
[ 48%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/daycom.c.o
[ 48%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/alecto_wx500.c.o
[ 49%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_gt9000.c.o
[ 49%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/teknihall.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/alecto_wsd17.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rev_v2.c.o
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/logilink_switch.c.o
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/x10.c.o
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_400_switch.c.o
[ 52%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/cleverwatts.c.o
[ 52%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/auriol.c.o
[ 53%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/conrad_rsl_switch.c.o
[ 53%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rsl366.c.o
[ 54%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_contact.c.o
[ 54%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/impuls.c.o
[ 54%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/silvercrest.c.o
[ 55%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_switch.c.o
[ 55%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_screen.c.o
[ 56%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/clarus.c.o
[ 56%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/eurodomest_switch.c.o
[ 57%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_screen_old.c.o
[ 57%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/beamish_switch.c.o
[ 57%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/conrad_rsl_contact.c.o
[ 58%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/techlico_switch.c.o
[ 58%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/livolo_switch.c.o
[ 59%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/alecto_ws1700.c.o
[ 59%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/sc2262.c.o
[ 60%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_dusk.c.o
[ 60%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_gt7000.c.o
[ 60%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/heitech.c.o
[ 61%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rc101.c.o
[ 61%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/ehome.c.o
[ 62%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rev_v1.c.o
[ 62%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/tfa30.c.o
[ 62%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/pollin.c.o
[ 63%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_switch_old.c.o
[ 63%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/ninjablocks_weather.c.o
[ 64%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_screen.c.o
[ 64%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_300_switch.c.o
[ 65%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rev_v3.c.o
[ 65%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/IR/generic.c.o
[ 65%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/datetime.c.o
[ 66%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/openweathermap.c.o
[ 66%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/sunriseset.c.o
[ 67%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/lirc.c.o
[ 67%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/wunderground.c.o
[ 68%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/cpu_temp.c.o
[ 68%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/xbmc.c.o
[ 68%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_screen.c.o
[ 69%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_webcam.c.o
[ 69%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_weather.c.o
[ 70%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_dimmer.c.o
[ 70%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_switch.c.o
[ 71%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_label.c.o
[ 71%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/network/arping.c.o
[ 71%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/network/ping.c.o
[ 72%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/lm76.c.o
[ 72%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/dht22.c.o
[ 73%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/ds18b20.c.o
[ 73%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/relay.c.o
[ 74%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/lm75.c.o
[ 74%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/dht11.c.o
[ 74%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/gpio_switch.c.o
[ 75%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/bmp180.c.o
[ 75%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/ds18s20.c.o
[ 76%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/core/raw.c.o
[ 76%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/protocol.c.o
[ 77%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/hardware.c.o
[ 77%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/IRgpio.c.o
/home/pi/pilight-rewrite/libs/pilight/hardware/IRgpio.c:52:35: warning: ‘struct eventpool_fd_t’ declared inside parameter list
static int client_callback(struct eventpool_fd_t *node, int event) {
                                   ^
/home/pi/pilight-rewrite/libs/pilight/hardware/IRgpio.c:52:35: warning: its scope is only this definition or declaration, which is probably not what you want
/home/pi/pilight-rewrite/libs/pilight/hardware/IRgpio.c: In function ‘client_callback’:
/home/pi/pilight-rewrite/libs/pilight/hardware/IRgpio.c:53:28: error: dereferencing pointer to incomplete type
  struct data_t *data = node->userdata;
                            ^
/home/pi/pilight-rewrite/libs/pilight/hardware/IRgpio.c:67:19: error: dereferencing pointer to incomplete type
    (void)read(node->fd, &c, 1);
                   ^
/home/pi/pilight-rewrite/libs/pilight/hardware/IRgpio.c:68:14: error: dereferencing pointer to incomplete type
    lseek(node->fd, 0, SEEK_SET);
              ^
In file included from /home/pi/pilight-rewrite/libs/pilight/hardware/../core/pilight.h:45:0,
                 from /home/pi/pilight-rewrite/libs/pilight/hardware/IRgpio.c:16:
/home/pi/pilight-rewrite/libs/pilight/hardware/IRgpio.c:101:13: error: dereferencing pointer to incomplete type
    FREE(node->userdata);
             ^
/home/pi/pilight-rewrite/libs/pilight/hardware/../core/mem.h:30:33: note: in definition of macro ‘FREE’
#define FREE(a) __free((void *)(a), __FILE__, __LINE__),(a)=NULL
                                 ^
/home/pi/pilight-rewrite/libs/pilight/hardware/IRgpio.c:101:13: error: dereferencing pointer to incomplete type
    FREE(node->userdata);
             ^
/home/pi/pilight-rewrite/libs/pilight/hardware/../core/mem.h:30:58: note: in definition of macro ‘FREE’
#define FREE(a) __free((void *)(a), __FILE__, __LINE__),(a)=NULL
                                                          ^
/home/pi/pilight-rewrite/libs/pilight/hardware/../core/mem.h:30:56: warning: left-hand operand of comma expression has no effect [-Wunused-value]
#define FREE(a) __free((void *)(a), __FILE__, __LINE__),(a)=NULL
                                                        ^
/home/pi/pilight-rewrite/libs/pilight/hardware/IRgpio.c:101:4: note: in expansion of macro ‘FREE’
    FREE(node->userdata);
    ^
/home/pi/pilight-rewrite/libs/pilight/hardware/IRgpio.c: At top level:
/home/pi/pilight-rewrite/libs/pilight/hardware/IRgpio.c:52:12: warning: ‘client_callback’ defined but not used [-Wunused-function]
static int client_callback(struct eventpool_fd_t *node, int event) {
            ^
CMakeFiles/pilight.dir/build.make:4013: recipe for target 'CMakeFiles/pilight.dir/libs/pilight/hardware/IRgpio.c.o' failed
make[2]: *** [CMakeFiles/pilight.dir/libs/pilight/hardware/IRgpio.c.o] Error 1
CMakeFiles/Makefile2:130: recipe for target 'CMakeFiles/pilight.dir/all' failed
make[1]: *** [CMakeFiles/pilight.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
 
Reply
#8
Got another compilation error latest rewrite branch (23.07.2017)
Quote:compile/pilight/libs/pilight/hardware/IRgpio.c:53:28: error: dereferencing pointer to incomplete type ‘struct eventpool_fd_t’
struct data_t *data = node->userdata;
 
Reply
#9
So disable the IR module. Travis still works.
https://travis-ci.org/pilight/pilight/bu...tification
 
Reply
#10
On the Raspberry Pi 3 the rewrite compile succeeds only after recompiling wiringX with the following line commented out in wiringX/CMakeLists.txt

Code:
#set_target_properties(wiringx_shared PROPERTIES C_VISIBILITY_PRESET hidden VISIBILITY_INLINES_HIDDEN 1)

and also removing the libs/pilight/hardware/IRgpio.* files.

Code:
pi@raspb:~ $ git clone -b rewrite https://github.com/pilight/pilight.git pilight-rewrite
Cloning into 'pilight-rewrite'...
remote: Counting objects: 17467, done.
remote: Compressing objects: 100% (154/154), done.
remote: Total 17467 (delta 65), reused 60 (delta 26), pack-reused 17287
Receiving objects: 100% (17467/17467), 12.51 MiB | 3.56 MiB/s, done.
Resolving deltas: 100% (13345/13345), done.
Checking connectivity... done.

pi@raspb:~ $ rm pilight-rewrite/libs/pilight/hardware/IRgpio.*

pi@raspb:~ $ mkdir pilight-rewrite/build

pi@raspb:~ $ cd pilight-rewrite/build

pi@raspb:~/pilight-rewrite/build $ cmake ..
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- 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
-- 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
-- Looking for libpcap - found (/usr/lib/arm-linux-gnueabihf/libpcap.so)
-- Looking for libunwind - found (/usr/lib/arm-linux-gnueabihf/libunwind.so)
-- Looking for libwiringx - found (/usr/lib/libwiringx.so)
-- Looking for libmbedtls - found (/usr/local/lib/libmbedtls.a)
-- Looking for libmbedcrypto - found (/usr/local/lib/libmbedcrypto.a)
-- Looking for libmbedx509 - found (/usr/local/lib/libmbedx509.a)
-- Looking for include file pthread.h
-- Looking for include file 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/pi/pilight-rewrite/build

pi@raspb:~/pilight-rewrite/build $ make
Scanning dependencies of target DSO
[  0%] Building C object CMakeFiles/DSO.dir/tests/libdso.c.o
[  0%] Built target DSO
Scanning dependencies of target dso_shared
Linking C shared library libdso.so
[  0%] Built target dso_shared
Scanning dependencies of target pilight
[  0%] Building C object CMakeFiles/pilight.dir/libs/avrdude/ser_posix.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/avrdude/arduino.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrupd.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/avrdude/stk500.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrgpio.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrconfig.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrbitbang.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrpart.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/avrdude/safemode.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/avrdude/fileio.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/avrdude/pgm.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/avrdude/ser_win32.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avr.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/libuv/inet.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/libuv/version.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/libuv/threadpool.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/libuv/fs-poll.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/libuv/uv-common.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/loop.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/thread.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/udp.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/sysinfo-loadavg.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/dl.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/poll.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/timer.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/process.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/pthread-fixes.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-inotify.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/getnameinfo.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/getaddrinfo.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/core.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-syscalls.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/pipe.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/stream.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/loop-watcher.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/tty.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/fs.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/proctitle.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/tcp.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-core.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/signal.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/sysinfo-memory.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/async.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/lirc/config_file.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/lirc/transmit.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/mail.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/socket.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/common.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/gc.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/cast.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/arp.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ssdp.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/proc.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/firmware.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/datetime.c.o
[ 24%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ssl.c.o
[ 24%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/pilight.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/CuTest.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/webserver.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ping.c.o
[ 26%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/network.c.o
[ 26%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/options.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ntp.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/binary.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/mem.c.o
[ 28%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/log.c.o
[ 28%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/dso.c.o
[ 29%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/http.c.o
[ 29%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/sha256cache.c.o
[ 30%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/eventpool.c.o
[ 30%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/json.c.o
[ 30%] Building C object CMakeFiles/pilight.dir/libs/pilight/storage/storage.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/pilight/storage/json.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/pilight/psutil/linux.c.o
[ 32%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/toggle.c.o
[ 32%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/pushover.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/dim.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/switch.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/label.c.o
[ 34%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/sendmail.c.o
[ 34%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/pushbullet.c.o
[ 35%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/functions/date_format.c.o
[ 35%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/functions/date_add.c.o
[ 36%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/functions/random.c.o
[ 36%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/lt.c.o
[ 36%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/modulus.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/divide.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/intdivide.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/minus.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/ge.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/le.c.o
[ 39%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/and.c.o
[ 39%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/multiply.c.o
[ 40%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/plus.c.o
[ 40%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/eq.c.o
[ 41%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/gt.c.o
[ 41%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/ne.c.o
[ 41%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/or.c.o
[ 42%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/events.c.o
[ 42%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operator.c.o
[ 43%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/action.c.o
[ 43%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/function.c.o
[ 44%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_motion.c.o
[ 44%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/selectremote.c.o
[ 44%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_800_switch.c.o
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/mumbi.c.o
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/tfa.c.o
[ 46%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/ev1527.c.o
[ 46%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_800_contact.c.o
[ 47%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_gt1000.c.o
[ 47%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/secudo_smoke.c.o
[ 47%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_dimmer.c.o
[ 48%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/daycom.c.o
[ 48%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/alecto_wx500.c.o
[ 49%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_gt9000.c.o
[ 49%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/teknihall.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/alecto_wsd17.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rev_v2.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/logilink_switch.c.o
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/x10.c.o
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_400_switch.c.o
[ 52%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/cleverwatts.c.o
[ 52%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/auriol.c.o
[ 52%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/conrad_rsl_switch.c.o
[ 53%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rsl366.c.o
[ 53%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_contact.c.o
[ 54%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/impuls.c.o
[ 54%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/silvercrest.c.o
[ 55%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_switch.c.o
[ 55%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_screen.c.o
[ 55%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/clarus.c.o
[ 56%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/eurodomest_switch.c.o
[ 56%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_screen_old.c.o
[ 57%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/beamish_switch.c.o
[ 57%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/conrad_rsl_contact.c.o
[ 58%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/techlico_switch.c.o
[ 58%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/livolo_switch.c.o
[ 58%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/alecto_ws1700.c.o
[ 59%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/sc2262.c.o
[ 59%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_dusk.c.o
[ 60%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_gt7000.c.o
[ 60%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/heitech.c.o
[ 61%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rc101.c.o
[ 61%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/ehome.c.o
[ 61%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rev_v1.c.o
[ 62%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/tfa30.c.o
[ 62%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/pollin.c.o
[ 63%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_switch_old.c.o
[ 63%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/ninjablocks_weather.c.o
[ 63%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_screen.c.o
[ 64%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_300_switch.c.o
[ 64%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rev_v3.c.o
[ 65%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/IR/generic.c.o
[ 65%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/datetime.c.o
[ 66%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/openweathermap.c.o
[ 66%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/sunriseset.c.o
[ 66%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/lirc.c.o
[ 67%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/wunderground.c.o
[ 67%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/cpu_temp.c.o
[ 68%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/xbmc.c.o
[ 68%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_screen.c.o
[ 69%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_webcam.c.o
[ 69%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_weather.c.o
[ 69%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_dimmer.c.o
[ 70%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_switch.c.o
[ 70%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_label.c.o
[ 71%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/network/arping.c.o
[ 71%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/network/ping.c.o
[ 72%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/lm76.c.o
[ 72%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/dht22.c.o
[ 72%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/ds18b20.c.o
[ 73%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/relay.c.o
[ 73%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/lm75.c.o
[ 74%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/dht11.c.o
[ 74%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/gpio_switch.c.o
[ 75%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/bmp180.c.o
[ 75%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/ds18s20.c.o
[ 75%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/core/raw.c.o
[ 76%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/protocol.c.o
[ 76%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/hardware.c.o
[ 77%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/433nano.c.o
[ 77%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/433gpio.c.o
[ 77%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/none.c.o
[ 77%] Built target pilight
Scanning dependencies of target pilight_shared
Linking C shared library libpilight.so
[ 77%] Built target pilight_shared
Scanning dependencies of target pilight-control
[ 78%] Building C object CMakeFiles/pilight-control.dir/control.c.o
Linking C executable pilight-control
[ 78%] Built target pilight-control
Scanning dependencies of target pilight-daemon
[ 78%] Building C object CMakeFiles/pilight-daemon.dir/daemon.c.o
/home/pi/pilight-rewrite/daemon.c: In function ‘receive_parse_code’:
/home/pi/pilight-rewrite/daemon.c:402:26: warning: passing argument 1 of ‘protocol-><U40000>.parseCode’ from incompatible pointer type
      protocol->parseCode(message);
                          ^
/home/pi/pilight-rewrite/daemon.c:402:26: note: expected ‘char **’ but argument is of type ‘char *’
/home/pi/pilight-rewrite/daemon.c: In function ‘send_queue’:
/home/pi/pilight-rewrite/daemon.c:645:36: warning: passing argument 2 of ‘protocol->createCode’ from incompatible pointer type
     if(protocol->createCode(jcode, message) == 0 && main_loop == 1) {
                                    ^
/home/pi/pilight-rewrite/daemon.c:645:36: note: expected ‘char **’ but argument is of type ‘char *’
/home/pi/pilight-rewrite/daemon.c: In function ‘start_pilight’:
/home/pi/pilight-rewrite/daemon.c:1674:3: warning: implicit declaration of function ‘platform_iterate_name’ [-Wimplicit-function-declaration]
   while((tmp = platform_iterate_name(z++)) != NULL) {
   ^
/home/pi/pilight-rewrite/daemon.c:1674:14: warning: assignment makes pointer from integer without a cast
   while((tmp = platform_iterate_name(z++)) != NULL) {
              ^
Linking C executable pilight-daemon
[ 78%] Built target pilight-daemon
Scanning dependencies of target pilight-debug
[ 79%] Building C object CMakeFiles/pilight-debug.dir/debug.c.o
Linking C executable pilight-debug
[ 79%] Built target pilight-debug
Scanning dependencies of target pilight-flash
[ 79%] Building C object CMakeFiles/pilight-flash.dir/flash.c.o
Linking C executable pilight-flash
[ 79%] Built target pilight-flash
Scanning dependencies of target pilight-raw
[ 80%] Building C object CMakeFiles/pilight-raw.dir/raw.c.o
Linking C executable pilight-raw
[ 80%] Built target pilight-raw
Scanning dependencies of target pilight-receive
[ 80%] Building C object CMakeFiles/pilight-receive.dir/receive.c.o
Linking C executable pilight-receive
[ 80%] Built target pilight-receive
Scanning dependencies of target pilight-send
[ 80%] Building C object CMakeFiles/pilight-send.dir/send.c.o
Linking C executable pilight-send
[ 80%] Built target pilight-send
Scanning dependencies of target pilight-sha256
[ 81%] Building C object CMakeFiles/pilight-sha256.dir/sha256.c.o
Linking C executable pilight-sha256
[ 81%] Built target pilight-sha256
Scanning dependencies of target pilight-unittest
[ 81%] Building C object CMakeFiles/pilight-unittest.dir/tests/alltests.c.o
[ 82%] Building C object CMakeFiles/pilight-unittest.dir/tests/mail.c.o
[ 82%] Building C object CMakeFiles/pilight-unittest.dir/tests/socket.c.o
[ 83%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_api_lirc.c.o
[ 83%] Building C object CMakeFiles/pilight-unittest.dir/tests/event_actions_label.c.o
[ 83%] Building C object CMakeFiles/pilight-unittest.dir/tests/event_actions_mail.c.o
[ 84%] Building C object CMakeFiles/pilight-unittest.dir/tests/common.c.o
[ 84%] Building C object CMakeFiles/pilight-unittest.dir/tests/cast.c.o
[ 85%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_generic.c.o
[ 85%] Building C object CMakeFiles/pilight-unittest.dir/tests/events.c.o
[ 86%] Building C object CMakeFiles/pilight-unittest.dir/tests/arp.c.o
[ 86%] Building C object CMakeFiles/pilight-unittest.dir/tests/ssdp.c.o
[ 86%] Building C object CMakeFiles/pilight-unittest.dir/tests/libdso.c.o
[ 87%] Building C object CMakeFiles/pilight-unittest.dir/tests/datetime.c.o
[ 87%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_api_xbmc.c.o
[ 88%] Building C object CMakeFiles/pilight-unittest.dir/tests/event_actions_switch.c.o
[ 88%] Building C object CMakeFiles/pilight-unittest.dir/tests/event_actions_dim.c.o
[ 88%] Building C object CMakeFiles/pilight-unittest.dir/tests/webserver.c.o
[ 89%] Building C object CMakeFiles/pilight-unittest.dir/tests/ping.c.o
[ 89%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_network_ping.c.o
[ 90%] Building C object CMakeFiles/pilight-unittest.dir/tests/network.c.o
[ 90%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_api_wunderground.c.o
[ 91%] Building C object CMakeFiles/pilight-unittest.dir/tests/event_operators.c.o
[ 91%] Building C object CMakeFiles/pilight-unittest.dir/tests/cutest.c.o
/home/pi/pilight-rewrite/tests/cutest.c: In function ‘test_unittest15’:
/home/pi/pilight-rewrite/tests/cutest.c:78:2: warning: this decimal constant is unsigned only in ISO C90
  CuAssertULongEquals(tc, 4294967295, 4294967295); // success
  ^
/home/pi/pilight-rewrite/tests/cutest.c:78:2: warning: this decimal constant is unsigned only in ISO C90
/home/pi/pilight-rewrite/tests/cutest.c: In function ‘test_unittest16’:
/home/pi/pilight-rewrite/tests/cutest.c:82:2: warning: this decimal constant is unsigned only in ISO C90
  CuAssertULongEquals(tc, 4294967295, 4294967294); // fail
  ^
/home/pi/pilight-rewrite/tests/cutest.c:82:2: warning: this decimal constant is unsigned only in ISO C90
/home/pi/pilight-rewrite/tests/cutest.c: In function ‘test_unittest17’:
/home/pi/pilight-rewrite/tests/cutest.c:86:2: warning: this decimal constant is unsigned only in ISO C90
  CuAssertULongEquals_Msg(tc, "foo", 4294967295, 4294967295); // success
  ^
/home/pi/pilight-rewrite/tests/cutest.c:86:2: warning: this decimal constant is unsigned only in ISO C90
/home/pi/pilight-rewrite/tests/cutest.c: In function ‘test_unittest18’:
/home/pi/pilight-rewrite/tests/cutest.c:90:2: warning: this decimal constant is unsigned only in ISO C90
  CuAssertULongEquals_Msg(tc, "bar", 4294967295, 4294967294); // fail
  ^
/home/pi/pilight-rewrite/tests/cutest.c:90:2: warning: this decimal constant is unsigned only in ISO C90
/home/pi/pilight-rewrite/tests/cutest.c: In function ‘test_unittest’:
/home/pi/pilight-rewrite/tests/cutest.c:278:7: warning: unused variable ‘len’ [-Wunused-variable]
   int len = strlen(output->buffer);
       ^
[ 91%] Building C object CMakeFiles/pilight-unittest.dir/tests/options.c.o
[ 92%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_gpio_ds18x20.c.o
[ 92%] Building C object CMakeFiles/pilight-unittest.dir/tests/ntp.c.o
[ 93%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_433.c.o
[ 93%] Building C object CMakeFiles/pilight-unittest.dir/tests/strptime.c.o
[ 94%] Building C object CMakeFiles/pilight-unittest.dir/tests/binary.c.o
In file included from /home/pi/pilight-rewrite/tests/binary.c:14:0:
/home/pi/pilight-rewrite/tests/binary.c: In function ‘test_binary’:
/home/pi/pilight-rewrite/tests/../libs/pilight/core/CuTest.h:87:103: warning: large integer implicitly truncated to unsigned type [-Woverflow]
#define CuAssertULongEquals(tc,ex,ac)         CuAssertULongEquals_LineMsg((tc),__FILE__,__LINE__,NULL,(ex),(ac))
                                                                                                       ^
/home/pi/pilight-rewrite/tests/binary.c:64:2: note: in expansion of macro ‘CuAssertULongEquals’
  CuAssertULongEquals(tc, 12297829382473034410U, binToDecUl(binary, 0, 63));
  ^
/home/pi/pilight-rewrite/tests/../libs/pilight/core/CuTest.h:87:103: warning: large integer implicitly truncated to unsigned type [-Woverflow]
#define CuAssertULongEquals(tc,ex,ac)         CuAssertULongEquals_LineMsg((tc),__FILE__,__LINE__,NULL,(ex),(ac))
                                                                                                       ^
/home/pi/pilight-rewrite/tests/binary.c:65:2: note: in expansion of macro ‘CuAssertULongEquals’
  CuAssertULongEquals(tc, 6148914691236517205, binToDecRevUl(binary, 0, 63));
  ^
/home/pi/pilight-rewrite/tests/../libs/pilight/core/CuTest.h:87:103: warning: large integer implicitly truncated to unsigned type [-Woverflow]
#define CuAssertULongEquals(tc,ex,ac)         CuAssertULongEquals_LineMsg((tc),__FILE__,__LINE__,NULL,(ex),(ac))
                                                                                                       ^
/home/pi/pilight-rewrite/tests/binary.c:70:2: note: in expansion of macro ‘CuAssertULongEquals’
  CuAssertULongEquals(tc, 6148914691236517205, binToDecUl(binary, 0, 63));
  ^
/home/pi/pilight-rewrite/tests/../libs/pilight/core/CuTest.h:87:103: warning: large integer implicitly truncated to unsigned type [-Woverflow]
#define CuAssertULongEquals(tc,ex,ac)         CuAssertULongEquals_LineMsg((tc),__FILE__,__LINE__,NULL,(ex),(ac))
                                                                                                       ^
/home/pi/pilight-rewrite/tests/binary.c:71:2: note: in expansion of macro ‘CuAssertULongEquals’
  CuAssertULongEquals(tc, 3074457345618258602, binToDecRevUl(binary, 0, 63));
  ^
[ 94%] Building C object CMakeFiles/pilight-unittest.dir/tests/event_functions.c.o
[ 94%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_api_openweathermap.c.o
[ 95%] Building C object CMakeFiles/pilight-unittest.dir/tests/event_actions_toggle.c.o
[ 95%] Building C object CMakeFiles/pilight-unittest.dir/tests/log.c.o
[ 96%] Building C object CMakeFiles/pilight-unittest.dir/tests/dso.c.o
[ 96%] Building C object CMakeFiles/pilight-unittest.dir/tests/http.c.o
[ 97%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_i2c.c.o
[ 97%] Building C object CMakeFiles/pilight-unittest.dir/tests/sha256cache.c.o
[ 97%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_core.c.o
[ 98%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_network_arping.c.o
[ 98%] Building C object CMakeFiles/pilight-unittest.dir/tests/eventpool.c.o
[ 99%] Building C object CMakeFiles/pilight-unittest.dir/tests/json.c.o
[ 99%] Building C object CMakeFiles/pilight-unittest.dir/tests/protocols_api.c.o
Linking C executable pilight-unittest
[ 99%] Built target pilight-unittest
Scanning dependencies of target pilight-uuid
[100%] Building C object CMakeFiles/pilight-uuid.dir/uuid.c.o
Linking C executable pilight-uuid
[100%] Built target pilight-uuid
Scanning dependencies of target pilight_static
Linking C static library libpilight.a
[100%] Built target pilight_static
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  program protocol missing in rewrite Niek 1 486 10-07-2017, 08:55 PM
Last Post: curlymo
  daemon crashes in rewrite ma-ca 1 631 08-05-2017, 03:40 PM
Last Post: curlymo
  dim action fails in rewrite ma-ca 1 511 08-04-2017, 05:16 PM
Last Post: curlymo
  pilight rewrite branch fails to compile ebk 0 757 06-30-2017, 01:07 PM
Last Post: ebk
  Rewrite development status TopdRob 1 1,163 12-10-2016, 10:31 PM
Last Post: curlymo
  [fixed] bug fix for ds18b20.c rewrite branch beaming 1 1,102 05-13-2016, 06:27 AM
Last Post: curlymo
  HowTo Move your 3rd party code code from development to rewrite wo_rasp 0 1,022 03-15-2016, 02:10 PM
Last Post: wo_rasp

Forum Jump:


Browsing: 1 Guest(s)