• 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 unit tests
#1
A message to all. Please help us extending the protocol unit tests. Protocols will be ensured to work properly in the future when development continues, based on these tests.

The current unit test with the first few protocols can be found in this commit:
https://github.com/pilight/pilight/commi...f804a2b1f8

As said, this is far from complete.



When you are done compiling run pilight-unittest. If all test run and you want to add something to the protocol unit test, just disable the other tests in tests/alltests.c beginning at line #172.

Excepted output at 06-01-2017 10:15UTC
Code:
[ test_explode                                     ]
[ test_nrcpu                                       ]
[ test_isrunning                                   ]
[ test_isnummeric                                  ]
[ test_name2uid                                    ]
[ test_strstr                                      ]
[ test_ishex                                       ]
[ test_urldecode                                   ]
[ test_urlencode                                   ]
[ test_base64decode                                ]
[ test_base64encode                                ]
[ test_hostname                                    ]
[ test_distroname                                  ]
[ test_file_exists                                 ]
[ test_path_exists                                 ]
[ test_vercmp                                      ]
[ test_uniq_space                                  ]
[ test_str_replace                                 ]
[ test_stricmp                                     ]
[ test_file_get_contents                           ]
[ test_inet_devs                                   ]
[ test_dev2mac                                     ]
[ test_host2ip                                     ]
[ test_whitelist_check                             ]
[ test_binary                                      ]
[ test_coord2tz                                    ]
[ test_datetime2ts                                 ]
[ test_localtime_l                                 ]
[ test_datefix                                     ]
[ test_json_encode                                 ]
[ test_json_decode                                 ]
[ test_sha256cache                                 ]
[ test_strptime                                    ]
[ test_options_valid                               ]
[ test_options_invalid                             ]
[ test_options_merge                               ]
[ test_dso                                         ]
[ test_eventpool_callback_nothreads                ]
[ test_eventpool_callback_threaded                 ]
[ test_log                                         ]
(/media/rpi/pilight/tests/log.c #42) [Jan 06 10:12:17:259140] emergency
(/media/rpi/pilight/tests/log.c #43) [Jan 06 10:12:17:259389] alert
(/media/rpi/pilight/tests/log.c #44) [Jan 06 10:12:17:259518] critical
(/media/rpi/pilight/tests/log.c #45) [Jan 06 10:12:17:259577] ERROR: test
(/media/rpi/pilight/tests/log.c #46) [Jan 06 10:12:17:259885] WARNING: test
(/media/rpi/pilight/tests/log.c #47) [Jan 06 10:12:17:260175] NOTICE: test
(/media/rpi/pilight/tests/log.c #48) [Jan 06 10:12:17:260584] INFO: test
(/media/rpi/pilight/tests/log.c #49) [Jan 06 10:12:17:260642] DEBUG: test
DEBUG: garbage collected log library
[ test_ssdp_client                                 ]
[ test_ssdp_server                                 ]
[ test_ntp                                         ]
[ test_ping_localhost                              ]
[ test_ping_timeout                                ]
[ test_ping_response                               ]
[ test_http                                        ]
[ test_mail                                        ]
[ test_webserver_get                               ]
[ test_webserver_auth                              ]
[ test_webserver_websocket                         ]
[ test_socket                                      ]
[ test_protocols_433_alecto_ws1700                 ]
[ test_protocols_433_alecto_wx500                  ]
[ test_protocols_433_arctech_contact               ]
[ test_protocols_433_arctech_dimmer                ]
[ test_protocols_433_arctech_dusk                  ]
.....................................................

OK (53 tests)
 
Reply
#2
Hi!

I get some errors when trying to install manually compiled rewrite:

Code:
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/pilight/build
[  0%] Built target DSO
[  0%] Built target dso_shared
Scanning dependencies of target pilight
[  0%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/datetime.c.o
/home/pi/pilight/libs/pilight/core/datetime.c:65:25: error: ‘__ATOMIC_RELAXED’ undeclared here (not in a function)
/home/pi/pilight/libs/pilight/core/datetime.c:66:25: error: ‘__ATOMIC_CONSUME’ undeclared here (not in a function)
/home/pi/pilight/libs/pilight/core/datetime.c:67:25: error: ‘__ATOMIC_ACQUIRE’ undeclared here (not in a function)
/home/pi/pilight/libs/pilight/core/datetime.c:68:25: error: ‘__ATOMIC_RELEASE’ undeclared here (not in a function)
/home/pi/pilight/libs/pilight/core/datetime.c:69:25: error: ‘__ATOMIC_ACQ_REL’ undeclared here (not in a function)
/home/pi/pilight/libs/pilight/core/datetime.c:70:25: error: ‘__ATOMIC_SEQ_CST’ undeclared here (not in a function)
/home/pi/pilight/libs/pilight/core/datetime.c: In function ‘determine_applicable_rule’:
/home/pi/pilight/libs/pilight/core/datetime.c:1440:9: warning: missing braces around initializer [-Wmissing-braces]
/home/pi/pilight/libs/pilight/core/datetime.c:1440:9: warning: (near initialization for ‘ruleset.rules’) [-Wmissing-braces]
CMakeFiles/pilight.dir/build.make:3350: recipe for target 'CMakeFiles/pilight.dir/libs/pilight/core/datetime.c.o' failed
make[2]: *** [CMakeFiles/pilight.dir/libs/pilight/core/datetime.c.o] Error 1
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/pilight.dir/all' failed
make[1]: *** [CMakeFiles/pilight.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
root@test:/home/pi/pilight#
Terrarium:  RPi Model B Rev 2 / pilight 8.1.2 / stretch
Aquarium: RPi Model B Plus Rev 1.2 / pilight 8.0.6 / jessie
 
Reply
#3
Also getting some compilation errors (although different from @terrar's - datetime.c.o compiles fine for me...)

Code:
martin@linux-027e:~/builds/pilight/rewrite>  make -j5
Scanning dependencies of target DSO
[  0%] Building C object CMakeFiles/DSO.dir/tests/libdso.c.o
Scanning dependencies of target pilight
[  0%] Built target DSO
Scanning dependencies of target dso_shared
[  0%] Linking C shared library libdso.so
[  0%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/asn1parse.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/aesni.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/aes.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/arc4.c.o
[  1%] Built target dso_shared
[  2%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/asn1write.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/bignum.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/base64.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/blowfish.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/certs.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ccm.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/camellia.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/cipher.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/cipher_wrap.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ctr_drbg.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/debug.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/des.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/dhm.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecdh.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecdsa.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecjpake.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecp.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/entropy_poll.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecp_curves.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/entropy.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/error.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/gcm.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/havege.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/hmac_drbg.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md2.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md4.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md5.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md_wrap.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/memory_buffer_alloc.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/net.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/oid.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/padlock.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pem.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pk.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pk_wrap.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkcs11.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkcs12.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkwrite.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkcs5.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkparse.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/platform.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ripemd160.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/rsa.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/sha256.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/sha1.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/sha512.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_cache.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_cli.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_ciphersuites.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_cookie.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_srv.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_ticket.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_tls.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/threading.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/timing.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/version.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/version_features.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_crl.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_create.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_crt.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_csr.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509write_crt.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509write_csr.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/xtea.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/wiringx/i2c-dev.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/hardkernel/odroidc1.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/hardkernel/odroidc2.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/hardkernel/odroidxu4.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/lemaker/bananapi1.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/lemaker/bananapim2.c.o
[ 24%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/linksprite/pcduino1.c.o
[ 24%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/platform.c.o
[ 24%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi1b+.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi1b1.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi1b2.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi2.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi3.c.o
[ 26%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_base_pro_dq.c.o
[ 26%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_base_pro_sdl.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_gate_edge_sdl.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_gate_edge_dq.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/allwinner/a10.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/allwinner/a31s.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/amlogic/s905.c.o
[ 28%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/amlogic/s805.c.o
[ 28%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/broadcom/2835.c.o
[ 29%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/broadcom/2836.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/nxp/imx6sdlrm.c.o
[ 29%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/samsung/exynos5422.c.o
[ 30%] Building C object CMakeFiles/pilight.dir/libs/wiringx/wiringX.c.o
[ 30%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/soc.c.o
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:26:0:
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:36:14: warning: inline function ‘i2c_smbus_write_word_data’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_write_word_data(int fd, int cmd, __u16 value);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:35:14: warning: inline function ‘i2c_smbus_read_word_data’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_read_word_data(int fd, int cmd);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:34:14: warning: inline function ‘i2c_smbus_write_byte_data’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_write_byte_data(int fd, int cmd, int value);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:33:14: warning: inline function ‘i2c_smbus_read_byte_data’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_read_byte_data(int fd, int cmd);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:32:14: warning: inline function ‘i2c_smbus_write_byte’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_write_byte(int fd, int value);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:31:14: warning: inline function ‘i2c_smbus_read_byte’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_read_byte(int fd);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:30:14: warning: inline function ‘i2c_smbus_access’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_access(int fd, char rw, int cmd, int size, union i2c_smbus_data *data);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:36:14: warning: inline function ‘i2c_smbus_write_word_data’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_write_word_data(int fd, int cmd, __u16 value);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:35:14: warning: inline function ‘i2c_smbus_read_word_data’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_read_word_data(int fd, int cmd);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:34:14: warning: inline function ‘i2c_smbus_write_byte_data’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_write_byte_data(int fd, int cmd, int value);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:33:14: warning: inline function ‘i2c_smbus_read_byte_data’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_read_byte_data(int fd, int cmd);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:32:14: warning: inline function ‘i2c_smbus_write_byte’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_write_byte(int fd, int value);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:31:14: warning: inline function ‘i2c_smbus_read_byte’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_read_byte(int fd);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:30:14: warning: inline function ‘i2c_smbus_access’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_access(int fd, char rw, int cmd, int size, union i2c_smbus_data *data);
              ^
[ 30%] Building C object CMakeFiles/pilight.dir/libs/avrdude/arduino.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avr.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrbitbang.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrconfig.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrpart.c.o
[ 32%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrgpio.c.o
[ 32%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrupd.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/avrdude/fileio.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/avrdude/pgm.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/avrdude/ser_posix.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/avrdude/safemode.c.o
[ 34%] Building C object CMakeFiles/pilight.dir/libs/avrdude/stk500.c.o
[ 34%] Building C object CMakeFiles/pilight.dir/libs/avrdude/ser_win32.c.o
[ 34%] Building C object CMakeFiles/pilight.dir/libs/libuv/fs-poll.c.o
/home/martin/builds/pilight/rewrite/libs/avrdude/stk500.c: In function ‘stk500_initpgm’:
/home/martin/builds/pilight/rewrite/libs/avrdude/stk500.c:635:22: warning: assignment from incompatible pointer type [enabled by default]
  pgm->cmd            = stk500_cmd;
                      ^
[ 35%] Building C object CMakeFiles/pilight.dir/libs/libuv/inet.c.o
[ 35%] Building C object CMakeFiles/pilight.dir/libs/libuv/threadpool.c.o
[ 35%] Building C object CMakeFiles/pilight.dir/libs/libuv/uv-common.c.o
[ 36%] Building C object CMakeFiles/pilight.dir/libs/libuv/version.c.o
[ 36%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/core.c.o
[ 36%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/async.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/dl.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/fs.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/getaddrinfo.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/getnameinfo.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-core.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-inotify.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-syscalls.c.o
[ 39%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/loop-watcher.c.o
[ 39%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/loop.c.o
[ 39%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/pipe.c.o
[ 40%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/poll.c.o
[ 40%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/process.c.o
[ 41%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/signal.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/pthread-fixes.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/tcp.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/timer.c.o
[ 42%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/tty.c.o
[ 43%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/udp.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
[ 44%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/CuTest.c.o
[ 44%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/arp.c.o
[ 44%] 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
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/binary.c.o
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/dirname.c.o
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/dso.c.o
[ 46%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/eventpool.c.o
[ 46%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/firmware.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/core/eventpool.c: In function ‘fib’:
/home/martin/builds/pilight/rewrite/libs/pilight/core/eventpool.c:975:21: warning: unused variable ‘cpu_usage’ [-Wunused-variable]
  struct cpu_usage_t cpu_usage;
                     ^
/home/martin/builds/pilight/rewrite/libs/pilight/core/eventpool.c:973:4: warning: unused variable ‘timestamp’ [-Wunused-variable]
  } timestamp;
    ^
[ 47%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/gc.c.o
[ 47%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/http.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/log.c.o
[ 48%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/mail.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/core/datetime.c: In function ‘determine_applicable_rule’:
[ 48%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/mem.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/core/datetime.c:1440:9: warning: missing braces around initializer [-Wmissing-braces]
  struct ruleset ruleset = { 0 };
         ^
/home/martin/builds/pilight/rewrite/libs/pilight/core/datetime.c:1440:9: warning: (near initialization for ‘ruleset.rules’) [-Wmissing-braces]
[ 48%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/network.c.o
[ 49%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/options.c.o
[ 49%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ntp.c.o
[ 49%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/pilight.c.o
[ 49%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ping.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/proc.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/sha256cache.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/socket.c.o
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ssdp.c.o
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ssl.c.o
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/threadpool.c.o
[ 52%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/webserver.c.o
[ 52%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/timerpool.c.o
[ 52%] Building C object CMakeFiles/pilight.dir/libs/pilight/storage/json.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/core/threadpool.c: In function ‘threadpool_init’:
/home/martin/builds/pilight/rewrite/libs/pilight/core/threadpool.c:382:17: warning: variable ‘tv1’ set but not used [-Wunused-but-set-variable]
  struct timeval tv1, tv2;
                 ^
[ 52%] Building C object CMakeFiles/pilight.dir/libs/pilight/storage/storage.c.o
[ 53%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/dim.c.o
[ 53%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/label.c.o
[ 53%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/pushbullet.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/dim.c: In function ‘thread’:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/dim.c:820:2: warning: passing argument 5 of ‘threadpool_add_work’ from incompatible pointer type [enabled by default]
  threadpool_add_work(REASON_END, NULL, action_dim->name, 0, execute, NULL, (void *)data);
  ^
In file included from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/../storage/../hardware/hardware.h:34:0,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/../storage/storage.h:16,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/pilight.h:44,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/dim.c:15:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/../storage/../hardware/../core/threadpool.h:70:15: note: expected ‘void * (*)(int,  void *)’ but argument is of type ‘void * (*)(void *)’
unsigned long threadpool_add_work(int, uv_sem_t *, char *, int, void *(*)(int, void *), void *(*)(void *), void *);
               ^
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/dim.c:621:9: warning: variable ‘dimlevel’ set but not used [-Wunused-but-set-variable]
  double dimlevel = 0.0, old_dimlevel = 0.0, new_dimlevel = 0.0, cur_dimlevel = 0.0;
         ^
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/label.c: In function ‘thread’:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/label.c:585:2: warning: passing argument 5 of ‘threadpool_add_work’ from incompatible pointer type [enabled by default]
  threadpool_add_work(REASON_END, NULL, action_label->name, 0, execute, NULL, (void *)data);
  ^
In file included from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/../storage/../hardware/hardware.h:34:0,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/../storage/storage.h:16,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/pilight.h:44,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/common.h:30,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../action.h:17,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/label.c:15:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/../storage/../hardware/../core/threadpool.h:70:15: note: expected ‘void * (*)(int,  void *)’ but argument is of type ‘void * (*)(void *)’
unsigned long threadpool_add_work(int, uv_sem_t *, char *, int, void *(*)(int, void *), void *(*)(void *), void *);
               ^
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/pushbullet.c: In function ‘run’:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/pushbullet.c:171:2: warning: passing argument 5 of ‘threadpool_add_work’ from incompatible pointer type [enabled by default]
  threadpool_add_work(REASON_END, NULL, action_pushbullet->name, 0, thread, NULL, (void *)obj);
  ^
In file included from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/pushbullet.c:14:0:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/threadpool.h:70:15: note: expected ‘void * (*)(int,  void *)’ but argument is of type ‘void * (*)(void *)’
unsigned long threadpool_add_work(int, uv_sem_t *, char *, int, void *(*)(int, void *), void *(*)(void *), void *);
               ^
[ 54%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/pushover.c.o
[ 54%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/sendmail.c.o
[ 54%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/switch.c.o
[ 55%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/toggle.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/pushover.c: In function ‘run’:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/pushover.c:178:2: warning: passing argument 5 of ‘threadpool_add_work’ from incompatible pointer type [enabled by default]
  threadpool_add_work(REASON_END, NULL, action_pushover->name, 0, thread, NULL, (void *)obj);
  ^
In file included from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/pushover.c:14:0:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/threadpool.h:70:15: note: expected ‘void * (*)(int,  void *)’ but argument is of type ‘void * (*)(void *)’
unsigned long threadpool_add_work(int, uv_sem_t *, char *, int, void *(*)(int, void *), void *(*)(void *), void *);
               ^
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/sendmail.c: In function ‘thread’:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/sendmail.c:180:9: warning: unused variable ‘itmp’ [-Wunused-variable]
  double itmp = 0.0;
         ^
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/sendmail.c:179:6: warning: unused variable ‘sport’ [-Wunused-variable]
  int sport = 0;
      ^
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/sendmail.c: In function ‘run’:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/sendmail.c:248:2: warning: passing argument 5 of ‘threadpool_add_work’ from incompatible pointer type [enabled by default]
  threadpool_add_work(REASON_END, NULL, action_sendmail->name, 0, thread, NULL, (void *)obj);
  ^
In file included from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/sendmail.c:24:0:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/threadpool.h:70:15: note: expected ‘void * (*)(int,  void *)’ but argument is of type ‘void * (*)(void *)’
unsigned long threadpool_add_work(int, uv_sem_t *, char *, int, void *(*)(int, void *), void *(*)(void *), void *);
               ^
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/sendmail.c: At top level:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/sendmail.c:152:13: warning: ‘callback’ defined but not used [-Wunused-function]
static void callback(int status) {
             ^
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/switch.c: In function ‘thread’:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/switch.c:480:2: warning: passing argument 5 of ‘threadpool_add_work’ from incompatible pointer type [enabled by default]
  threadpool_add_work(REASON_END, NULL, action_switch->name, 0, execute, NULL, (void *)data);
  ^
In file included from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/../storage/../hardware/hardware.h:34:0,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/../storage/storage.h:16,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/pilight.h:44,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/common.h:30,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../action.h:17,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/switch.c:15:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/../storage/../hardware/../core/threadpool.h:70:15: note: expected ‘void * (*)(int,  void *)’ but argument is of type ‘void * (*)(void *)’
unsigned long threadpool_add_work(int, uv_sem_t *, char *, int, void *(*)(int, void *), void *(*)(void *), void *);
               ^
[ 55%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/functions/date_format.c.o
[ 55%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/functions/date_add.c.o
[ 56%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/and.c.o
[ 56%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/functions/random.c.o
[ 56%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/divide.c.o
[ 56%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/eq.c.o
[ 57%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/ge.c.o
[ 57%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/gt.c.o
[ 57%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/le.c.o
[ 57%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/intdivide.c.o
[ 58%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/is.c.o
[ 58%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/lt.c.o
[ 59%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/minus.c.o
[ 59%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/modulus.c.o
[ 59%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/multiply.c.o
[ 59%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/ne.c.o
[ 60%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/or.c.o
[ 60%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/plus.c.o
[ 60%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/action.c.o
[ 61%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/events.c.o
[ 61%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/function.c.o
[ 61%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operator.c.o
[ 62%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/alecto_ws1700.c.o
[ 62%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/alecto_wx500.c.o
[ 62%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/alecto_wsd17.c.o
[ 62%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_contact.c.o
[ 63%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_dimmer.c.o
[ 63%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_dusk.c.o
[ 63%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_motion.c.o
[ 64%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_screen.c.o
[ 64%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_screen_old.c.o
[ 64%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_switch.c.o
[ 65%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_switch_old.c.o
[ 65%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/auriol.c.o
[ 65%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/beamish_switch.c.o
[ 66%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/clarus.c.o
[ 66%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/conrad_rsl_contact.c.o
[ 66%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/cleverwatts.c.o
[ 66%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/conrad_rsl_switch.c.o
[ 67%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/daycom.c.o
[ 67%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/ehome.c.o
[ 67%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_300_switch.c.o
[ 68%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_400_switch.c.o
[ 68%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_800_contact.c.o
[ 68%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_800_switch.c.o
[ 69%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/eurodomest_switch.c.o
[ 69%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/ev1527.c.o
[ 69%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/heitech.c.o
[ 70%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/impuls.c.o
[ 70%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/logilink_switch.c.o
[ 70%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/mumbi.c.o
[ 70%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/ninjablocks_weather.c.o
[ 71%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/pollin.c.o
[ 71%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_gt1000.c.o
[ 71%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_gt7000.c.o
[ 72%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_gt9000.c.o
[ 72%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_screen.c.o
[ 72%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rc101.c.o
[ 73%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rev_v1.c.o
[ 73%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rev_v2.c.o
[ 73%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rev_v3.c.o
[ 74%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rsl366.c.o
[ 74%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/sc2262.c.o
[ 74%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/secudo_smoke.c.o
[ 74%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/selectremote.c.o
[ 75%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/silvercrest.c.o
[ 75%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/techlico_switch.c.o
[ 75%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/teknihall.c.o
[ 76%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/tfa.c.o
[ 76%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/tfa30.c.o
[ 76%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/x10.c.o
[ 77%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/IR/generic.c.o
[ 77%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/cpu_temp.c.o
[ 77%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/datetime.c.o
[ 77%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/lirc.c.o
[ 78%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/openweathermap.c.o
[ 78%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/program.c.o
[ 78%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/sunriseset.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/API/openweathermap.c: In function ‘createCode’:
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/API/openweathermap.c:387:6: warning: passing argument 5 of ‘threadpool_add_work’ from incompatible pointer type [enabled by default]
      threadpool_add_work(REASON_END, NULL, tmp->name, 0, thread, NULL, (void *)tmp);
      ^
In file included from /home/martin/builds/pilight/rewrite/libs/pilight/protocols/API/openweathermap.c:26:0:
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/API/../../core/threadpool.h:70:15: note: expected ‘void * (*)(int,  void *)’ but argument is of type ‘void * (*)(void *)’
unsigned long threadpool_add_work(int, uv_sem_t *, char *, int, void *(*)(int, void *), void *(*)(void *), void *);
               ^
[ 79%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/wunderground.c.o
[ 79%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/xbmc.c.o
[ 79%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_dimmer.c.o
[ 80%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_label.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/API/wunderground.c: In function ‘createCode’:
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/API/wunderground.c:436:6: warning: passing argument 5 of ‘threadpool_add_work’ from incompatible pointer type [enabled by default]
      threadpool_add_work(REASON_END, NULL, tmp->key, 0, thread, NULL, (void *)tmp);
      ^
In file included from /home/martin/builds/pilight/rewrite/libs/pilight/protocols/API/wunderground.c:26:0:
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/API/../../core/threadpool.h:70:15: note: expected ‘void * (*)(int,  void *)’ but argument is of type ‘void * (*)(void *)’
unsigned long threadpool_add_work(int, uv_sem_t *, char *, int, void *(*)(int, void *), void *(*)(void *), void *);
               ^
[ 80%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_screen.c.o
[ 80%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_switch.c.o
[ 81%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_weather.c.o
[ 81%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_webcam.c.o
[ 81%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/network/arping.c.o
[ 81%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/network/ping.c.o
[ 82%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/bmp180.c.o
[ 82%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/dht11.c.o
[ 82%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/dht22.c.o
[ 83%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/ds18b20.c.o
[ 83%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/ds18s20.c.o
[ 83%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/gpio_switch.c.o
[ 84%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/lm75.c.o
[ 84%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/lm76.c.o
[ 84%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/relay.c.o
[ 85%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/core/raw.c.o
[ 85%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/protocol.c.o
[ 85%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/433gpio.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/protocol.c: In function ‘protocol_thread_init’:
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/protocol.c:226:30: error: ‘struct protocol_threads_t’ has no member named ‘attr’
  pthread_mutexattr_init(&node->attr);
                              ^
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/protocol.c:227:33: error: ‘struct protocol_threads_t’ has no member named ‘attr’
  pthread_mutexattr_settype(&node->attr, PTHREAD_MUTEX_RECURSIVE);
                                 ^
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/protocol.c:228:26: error: ‘struct protocol_threads_t’ has no member named ‘mutex’
  pthread_mutex_init(&node->mutex, &node->attr);
                          ^
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/protocol.c:228:40: error: ‘struct protocol_threads_t’ has no member named ‘attr’
  pthread_mutex_init(&node->mutex, &node->attr);
                                        ^
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/protocol.c:229:25: error: ‘struct protocol_threads_t’ has no member named ‘cond’
  pthread_cond_init(&node->cond, NULL);
                         ^
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/protocol.c: In function ‘protocol_thread_wait’:
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/protocol.c:241:28: error: ‘struct protocol_threads_t’ has no member named ‘mutex’
  pthread_mutex_unlock(&node->mutex);
                            ^
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/protocol.c:254:26: error: ‘struct protocol_threads_t’ has no member named ‘mutex’
  pthread_mutex_lock(&node->mutex);
                          ^
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/protocol.c:256:37: error: ‘struct protocol_threads_t’ has no member named ‘cond’
  return pthread_cond_timedwait(&node->cond, &node->mutex, &ts);
                                     ^
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/protocol.c:256:50: error: ‘struct protocol_threads_t’ has no member named ‘mutex’
  return pthread_cond_timedwait(&node->cond, &node->mutex, &ts);
                                                  ^
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/protocol.c: In function ‘protocol_thread_stop’:
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/protocol.c:264:29: error: ‘struct protocol_threads_t’ has no member named ‘mutex’
    pthread_mutex_unlock(&tmp->mutex);
                             ^
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/protocol.c:265:28: error: ‘struct protocol_threads_t’ has no member named ‘cond’
    pthread_cond_signal(&tmp->cond);
                            ^
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/protocol.c: In function ‘protocol_thread_wait’:
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/protocol.c:257:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
CMakeFiles/pilight.dir/build.make:6409: recipe for target 'CMakeFiles/pilight.dir/libs/pilight/protocols/protocol.c.o' failed
make[2]: *** [CMakeFiles/pilight.dir/libs/pilight/protocols/protocol.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 85%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/433lirc.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/hardware/433gpio.c: In function ‘gpio433Init’:
/home/martin/builds/pilight/rewrite/libs/pilight/hardware/433gpio.c:222:15: warning: assignment from incompatible pointer type [enabled by default]
  gpio433->init=&gpio433HwInit;
               ^
/home/martin/builds/pilight/rewrite/libs/pilight/hardware/433lirc.c: In function ‘lirc433Init’:
/home/martin/builds/pilight/rewrite/libs/pilight/hardware/433lirc.c:202:15: warning: assignment from incompatible pointer type [enabled by default]
  lirc433->init=&lirc433HwInit;
               ^
CMakeFiles/Makefile2:617: recipe for target 'CMakeFiles/pilight.dir/all' failed
make[1]: *** [CMakeFiles/pilight.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
 
Reply
#4
Fixed the error of @pilino1234, i can't confirm the error of @terrar.

Added some info in the start post as well.
 
Reply
#5
Getting some segfaults now. There seem to be two different ones, but I don't know how to influence it to produce one segfault or the other. But either of them is always present.

Code:
martin@linux-027e:~/builds/pilight/rewrite>  ./pilight-unittest
[ test_explode                                     ]
[ test_nrcpu                                       ]
[ test_isrunning                                   ]
[ test_isnummeric                                  ]
[ test_name2uid                                    ]
[ test_strstr                                      ]
[ test_ishex                                       ]
[ test_urldecode                                   ]
[ test_urlencode                                   ]
[ test_base64decode                                ]
[ test_base64encode                                ]
[ test_hostname                                    ]
[ test_distroname                                  ]
[ test_file_exists                                 ]
[ test_path_exists                                 ]
[ test_vercmp                                      ]
[ test_uniq_space                                  ]
[ test_str_replace                                 ]
[ test_stricmp                                     ]
[ test_file_get_contents                           ]
[ test_inet_devs                                   ]
[ test_dev2mac                                     ]
[ test_host2ip                                     ]
[ test_whitelist_check                             ]
[ test_binary                                      ]
[ test_coord2tz                                    ]
[ test_datetime2ts                                 ]
[ test_localtime_l                                 ]
[ test_datefix                                     ]
[ test_json_encode                                 ]
[ test_json_decode                                 ]
[ test_sha256cache                                 ]
[ test_strptime                                    ]
[ test_options_valid                               ]
[ test_options_invalid                             ]
[ test_options_merge                               ]
[ test_dso                                         ]
[ test_eventpool_callback_nothreads                ]
[ test_eventpool_callback_threaded                 ]
[ test_log                                         ]
(/home/martin/builds/pilight/rewrite/tests/log.c #42) [Jan 06 12:12:21:9064] emergency
(/home/martin/builds/pilight/rewrite/tests/log.c #43) [Jan 06 12:12:21:9122] alert
(/home/martin/builds/pilight/rewrite/tests/log.c #44) [Jan 06 12:12:21:9137] critical
(/home/martin/builds/pilight/rewrite/tests/log.c #45) [Jan 06 12:12:21:9146] ERROR: test
(/home/martin/builds/pilight/rewrite/tests/log.c #46) [Jan 06 12:12:21:9155] WARNING: test
(/home/martin/builds/pilight/rewrite/tests/log.c #47) [Jan 06 12:12:21:9166] NOTICE: test
(/home/martin/builds/pilight/rewrite/tests/log.c #48) [Jan 06 12:12:21:9175] INFO: test
(/home/martin/builds/pilight/rewrite/tests/log.c #49) [Jan 06 12:12:21:9184] DEBUG: test
DEBUG: garbage collected log library
[ test_ssdp_client                                 ]
[ test_ssdp_server                                 ]
[ test_ntp                                         ]
[ test_ping_localhost                              ]
[ test_ping_timeout                                ]
[ test_ping_response                               ]
[ test_http                                        ]
[ test_mail                                        ]
Segmentation fault

Running it again I got slightly different output:
Code:
martin@linux-027e:~/builds/pilight/rewrite>  ./pilight-unittest
[ test_explode                                     ]
[ test_nrcpu                                       ]
[ test_isrunning                                   ]
[ test_isnummeric                                  ]
[ test_name2uid                                    ]
[ test_strstr                                      ]
[ test_ishex                                       ]
[ test_urldecode                                   ]
[ test_urlencode                                   ]
[ test_base64decode                                ]
[ test_base64encode                                ]
[ test_hostname                                    ]
[ test_distroname                                  ]
[ test_file_exists                                 ]
[ test_path_exists                                 ]
[ test_vercmp                                      ]
[ test_uniq_space                                  ]
[ test_str_replace                                 ]
[ test_stricmp                                     ]
[ test_file_get_contents                           ]
[ test_inet_devs                                   ]
[ test_dev2mac                                     ]
[ test_host2ip                                     ]
[ test_whitelist_check                             ]
[ test_binary                                      ]
[ test_coord2tz                                    ]
[ test_datetime2ts                                 ]
[ test_localtime_l                                 ]
[ test_datefix                                     ]
[ test_json_encode                                 ]
[ test_json_decode                                 ]
[ test_sha256cache                                 ]
[ test_strptime                                    ]
[ test_options_valid                               ]
[ test_options_invalid                             ]
[ test_options_merge                               ]
[ test_dso                                         ]
[ test_eventpool_callback_nothreads                ]
[ test_eventpool_callback_threaded                 ]
[ test_log                                         ]
(/home/martin/builds/pilight/rewrite/tests/log.c #42) [Jan 06 12:12:28:821247] emergency
(/home/martin/builds/pilight/rewrite/tests/log.c #43) [Jan 06 12:12:28:821310] alert
(/home/martin/builds/pilight/rewrite/tests/log.c #44) [Jan 06 12:12:28:821333] critical
(/home/martin/builds/pilight/rewrite/tests/log.c #45) [Jan 06 12:12:28:821349] ERROR: test
*** Error in `./pilight-unittest': corrupted double-linked list: 0x00007f10a4000f00 ***
^C
martin@linux-027e:~/builds/pilight/rewrite>

Backtrace coming in a few minutes


Here are the backtraces for both the segfaults:

Code:
martin@linux-027e:~/builds/pilight/rewrite>  gdb ./pilight-unittest
GNU gdb (GDB; openSUSE 13.2) 7.8
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...

warning: /etc/gdbinit.d/gdb-heap.py: No such file or directory
Reading symbols from ./pilight-unittest...done.
(gdb) run
Starting program: /home/martin/builds/pilight/rewrite/pilight-unittest
Got object file from memory but can't read symbols: File truncated.
Missing separate debuginfos, use: zypper install glibc-debuginfo-2.19-16.28.1.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[ test_explode                                     ]
[ test_nrcpu                                       ]
[ test_isrunning                                   ]
[ test_isnummeric                                  ]
[ test_name2uid                                    ]
[ test_strstr                                      ]
[ test_ishex                                       ]
[ test_urldecode                                   ]
[ test_urlencode                                   ]
[ test_base64decode                                ]
[ test_base64encode                                ]
[ test_hostname                                    ]
[ test_distroname                                  ]
[ test_file_exists                                 ]
[ test_path_exists                                 ]
[ test_vercmp                                      ]
[ test_uniq_space                                  ]
[ test_str_replace                                 ]
[ test_stricmp                                     ]
[ test_file_get_contents                           ]
[ test_inet_devs                                   ]
[ test_dev2mac                                     ]
[ test_host2ip                                     ]
[ test_whitelist_check                             ]
[ test_binary                                      ]
[ test_coord2tz                                    ]
[ test_datetime2ts                                 ]
[ test_localtime_l                                 ]
[ test_datefix                                     ]
[ test_json_encode                                 ]
[ test_json_decode                                 ]
[ test_sha256cache                                 ]
[ test_strptime                                    ]
[ test_options_valid                               ]
[ test_options_invalid                             ]
[ test_options_merge                               ]
[ test_dso                                         ]
[ test_eventpool_callback_nothreads                ]
[New Thread 0x7ffff56de700 (LWP 4926)]
[ test_eventpool_callback_threaded                 ]
[Thread 0x7ffff56de700 (LWP 4926) exited]
[New Thread 0x7ffff56de700 (LWP 4927)]
[Thread 0x7ffff56de700 (LWP 4927) exited]
[New Thread 0x7ffff4edd700 (LWP 4928)]
[New Thread 0x7fffeffff700 (LWP 4929)]
[New Thread 0x7fffef7fe700 (LWP 4930)]
[New Thread 0x7fffeeffd700 (LWP 4931)]
[ test_log                                         ]
[New Thread 0x7ffff56de700 (LWP 4932)]
(/home/martin/builds/pilight/rewrite/tests/log.c #42) [Jan 06 12:16:24:15215] emergency
(/home/martin/builds/pilight/rewrite/tests/log.c #43) [Jan 06 12:16:24:15299] alert
(/home/martin/builds/pilight/rewrite/tests/log.c #44) [Jan 06 12:16:24:15329] critical
(/home/martin/builds/pilight/rewrite/tests/log.c #45) [Jan 06 12:16:24:15341] ERROR: test
(/home/martin/builds/pilight/rewrite/tests/log.c #46) [Jan 06 12:16:24:15352] WARNING: test
(/home/martin/builds/pilight/rewrite/tests/log.c #47) [Jan 06 12:16:24:15363] NOTICE: test
(/home/martin/builds/pilight/rewrite/tests/log.c #48) [Jan 06 12:16:24:15375] INFO: test
(/home/martin/builds/pilight/rewrite/tests/log.c #49) [Jan 06 12:16:24:15526] DEBUG: test
DEBUG: garbage collected log library
[ test_ssdp_client                                 ]
[Thread 0x7ffff56de700 (LWP 4932) exited]
[New Thread 0x7ffff56de700 (LWP 4933)]
[ test_ssdp_server                                 ]
[Thread 0x7ffff56de700 (LWP 4933) exited]
[ test_ntp                                         ]
[ test_ping_localhost                              ]
[ test_ping_timeout                                ]
[ test_ping_response                               ]
[ test_http                                        ]
[New Thread 0x7ffff56de700 (LWP 4934)]
[Thread 0x7ffff56de700 (LWP 4934) exited]
[New Thread 0x7ffff56de700 (LWP 4935)]
[ test_mail                                        ]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7163902 in uv__run_check (loop=0x0) at /home/martin/builds/pilight/rewrite/libs/libuv/unix/loop-watcher.c:67
67      UV_LOOP_WATCHER_DEFINE(check, CHECK)
Missing separate debuginfos, use: zypper install libdbus-1-3-debuginfo-1.8.22-19.1.x86_64 libnl3-200-debuginfo-3.2.25-2.1.2.x86_64 libpcap1-debuginfo-1.6.2-1.2.x86_64 libudev1-debuginfo-210.1477297097.83231f8-25.51.1.x86_64 libunwind-debuginfo-1.1-10.3.1.x86_64 libusb-1_0-0-debuginfo-1.0.19-2.1.2.x86_64
(gdb)  bt full
#0  0x00007ffff7163902 in uv__run_check (loop=0x0) at /home/martin/builds/pilight/rewrite/libs/libuv/unix/loop-watcher.c:67
        h = 0x1
        queue = {0x7fffffffa8e0, 0x100000001}
        q = 0x0
#1  0x00007ffff7158b72 in uv_run (loop=0x0, mode=UV_RUN_DEFAULT) at /home/martin/builds/pilight/rewrite/libs/libuv/unix/core.c:355
        timeout = 0
        r = 18
        ran_pending = 0
#2  0x0000000000413c93 in test_mail (tc=0x662230) at /home/martin/builds/pilight/rewrite/tests/mail.c:533
        __FUNCTION__ = "test_mail"
#3  0x00007ffff7175608 in CuTestRun (tc=0x662230) at /home/martin/builds/pilight/rewrite/libs/pilight/core/CuTest.c:143
        buf = {{__jmpbuf = {18, -4276028738843163771, 4218592, 140737488346064, 0, 0, -4276028738838969467, -4276045433501236347}, __mask_was_saved = 0, __saved_mask = {__val = {
                140737351949559, 1, 0, 0, 140737337980552, 18, 140737488345760, 4218592, 140737351975397, 6566272, 6718512, 0, 6718512, 6566272, 3, 1048576}}}}
#4  0x00007ffff7175cf4 in CuSuiteRun (testSuite=0x63f140) at /home/martin/builds/pilight/rewrite/libs/pilight/core/CuTest.c:298
        testCase = 0x662230
        i = 47
#5  0x000000000040665a in RunAllTests () at /home/martin/builds/pilight/rewrite/tests/alltests.c:196
        i = 19
        r = 0
#6  0x0000000000406771 in main (argc=1, argv=0x7fffffffdbd8) at /home/martin/builds/pilight/rewrite/tests/alltests.c:219
        f = 0x63f010
(gdb)


Code:
martin@linux-027e:~/builds/pilight/rewrite>  gdb ./pilight-unittest
GNU gdb (GDB; openSUSE 13.2) 7.8
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...

warning: /etc/gdbinit.d/gdb-heap.py: No such file or directory
Reading symbols from ./pilight-unittest...done.
(gdb) run
Starting program: /home/martin/builds/pilight/rewrite/pilight-unittest
Got object file from memory but can't read symbols: File truncated.
Missing separate debuginfos, use: zypper install glibc-debuginfo-2.19-16.28.1.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[ test_explode                                     ]
[ test_nrcpu                                       ]
[ test_isrunning                                   ]
[ test_isnummeric                                  ]
[ test_name2uid                                    ]
[ test_strstr                                      ]
[ test_ishex                                       ]
[ test_urldecode                                   ]
[ test_urlencode                                   ]
[ test_base64decode                                ]
[ test_base64encode                                ]
[ test_hostname                                    ]
[ test_distroname                                  ]
[ test_file_exists                                 ]
[ test_path_exists                                 ]
[ test_vercmp                                      ]
[ test_uniq_space                                  ]
[ test_str_replace                                 ]
[ test_stricmp                                     ]
[ test_file_get_contents                           ]
[ test_inet_devs                                   ]
[ test_dev2mac                                     ]
[ test_host2ip                                     ]
[ test_whitelist_check                             ]
[ test_binary                                      ]
[ test_coord2tz                                    ]
[ test_datetime2ts                                 ]
[ test_localtime_l                                 ]
[ test_datefix                                     ]
[ test_json_encode                                 ]
[ test_json_decode                                 ]
[ test_sha256cache                                 ]
[ test_strptime                                    ]
[ test_options_valid                               ]
[ test_options_invalid                             ]
[ test_options_merge                               ]
[ test_dso                                         ]
[ test_eventpool_callback_nothreads                ]
[New Thread 0x7ffff56de700 (LWP 4872)]
[ test_eventpool_callback_threaded                 ]
[Thread 0x7ffff56de700 (LWP 4872) exited]
[New Thread 0x7ffff56de700 (LWP 4873)]
[Thread 0x7ffff56de700 (LWP 4873) exited]
[New Thread 0x7ffff4edd700 (LWP 4874)]
[New Thread 0x7fffeffff700 (LWP 4875)]
[New Thread 0x7fffef7fe700 (LWP 4876)]
[New Thread 0x7fffeeffd700 (LWP 4877)]
[ test_log                                         ]
[New Thread 0x7ffff56de700 (LWP 4878)]
(/home/martin/builds/pilight/rewrite/tests/log.c #42) [Jan 06 12:15:07:958173] emergency
(/home/martin/builds/pilight/rewrite/tests/log.c #43) [Jan 06 12:15:07:958221] alert
(/home/martin/builds/pilight/rewrite/tests/log.c #44) [Jan 06 12:15:07:958235] critical
(/home/martin/builds/pilight/rewrite/tests/log.c #45) [Jan 06 12:15:07:958244] ERROR: test
*** Error in `/home/martin/builds/pilight/rewrite/pilight-unittest': corrupted double-linked list: 0x00007fffe8000f00 ***
^C
Program received signal SIGINT, Interrupt.
0x00007ffff7bcd79c in __lll_lock_wait () from /lib64/libpthread.so.0
Missing separate debuginfos, use: zypper install libdbus-1-3-debuginfo-1.8.22-19.1.x86_64 libnl3-200-debuginfo-3.2.25-2.1.2.x86_64 libpcap1-debuginfo-1.6.2-1.2.x86_64 libudev1-debuginfo-210.1477297097.83231f8-25.51.1.x86_64 libunwind-debuginfo-1.1-10.3.1.x86_64 libusb-1_0-0-debuginfo-1.0.19-2.1.2.x86_64
(gdb) bt full
#0  0x00007ffff7bcd79c in __lll_lock_wait () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x00007ffff7bc94a4 in _L_lock_952 () from /lib64/libpthread.so.0
No symbol table info available.
#2  0x00007ffff7bc9306 in pthread_mutex_lock () from /lib64/libpthread.so.0
No symbol table info available.
#3  0x00007ffff718f3c5 in _free (a=0x7fffe8000ce0, file=0x7ffff7223bc0 "/home/martin/builds/pilight/rewrite/libs/pilight/core/log.c", line=57)
    at /home/martin/builds/pilight/rewrite/libs/pilight/core/mem.c:259
        currP = 0x0
        prevP = 0x7fffe8000e80
        match = 0
#4  0x00007ffff718b92d in reason_log_free (param=0x7fffe8000b90) at /home/martin/builds/pilight/rewrite/libs/pilight/core/log.c:57
        data = 0x7fffe8000b90
#5  0x00007ffff717e981 in eventpool_execute (handle=0x66b1e0) at /home/martin/builds/pilight/rewrite/libs/pilight/core/eventpool.c:1139
        node = 0x66a140
        tpdata = 0x0
        x = 0
        nr1 = 1
        nrnodes = 16
        nrnodes1 = 1
        i = 0
        queue = 0x0
#6  0x00007ffff7157f09 in uv__async_event (loop=0x7ffff7bb8460 <default_loop_struct>, w=0x7ffff7bb8620 <default_loop_struct+448>, nevents=1)
    at /home/martin/builds/pilight/rewrite/libs/libuv/unix/async.c:98
        queue = {0x7fffffffa380, 0x7fffffffa380}
        q = 0x66b248
        h = 0x66b1e0
#7  0x00007ffff7158025 in uv__async_io (loop=0x7ffff7bb8460 <default_loop_struct>, w=0x7ffff7bb8628 <default_loop_struct+456>, events=1)
    at /home/martin/builds/pilight/rewrite/libs/libuv/unix/async.c:138
        val = 1
        wa = 0x7ffff7bb8620 <default_loop_struct+448>
        buf = "\001", '\000' <repeats 391 times>...
        n = 8
        r = 8
        __PRETTY_FUNCTION__ = "uv__async_io"
#8  0x00007ffff71601ea in uv__io_poll (loop=0x7ffff7bb8460 <default_loop_struct>, timeout=-1) at /home/martin/builds/pilight/rewrite/libs/libuv/unix/linux-core.c:382
        max_safe_timeout = 1789569
        no_epoll_pwait = 0
        no_epoll_wait = 0
        events = {{events = 1, data = 8}, {events = 0, data = 0} <repeats 82 times>, {events = 0, data = 6720080}, {events = 4096, data = 17734572276226981888}, {events = 32767,
            data = 2050}, {events = 132438, data = 4294967296}, {events = 0, data = 33188}, {events = 0, data = 0}, {events = 0, data = 837}, {events = 4096, data = 34359738368},
          {events = 0, data = 1483690154}, {events = 331257028, data = 6372400688827203584}, {events = 0, data = 51252876}, {events = 1483690154, data = 976054880206585856}, {
            events = 0, data = 0}, {events = 0, data = 0}, {events = 0, data = 6720080}, {events = 10, data = 0}, {events = 0, data = 140737322585815}, {events = 4132537984,
            data = 17734781501263871999}, {events = 32767, data = 18446744073709551615}, {events = 6720080, data = 42949672960}, {events = 0, data = 140737322592222}, {
            events = 0, data = 17734601061097799681}, {events = 32767, data = 140737488334307}, {events = 4129204058, data = 32767}, {events = 0, data = 4129202043}, {
            events = 4129201472, data = 28862523826536447}, {events = 0, data = 0}, {events = 4128948502, data = 18446691468950142975}, {events = 32767, data = 140737325947872}, {
            events = 13568, data = 18446654648195481600}, {events = 32767, data = 140737488343080}, {events = 0, data = 18446697722422493184}, {events = 32767,
            data = 140737323180599}, {events = 0, data = 18446654600950841344}, {events = 32767, data = 6720080}, {events = 4294946448, data = 32767}, {events = 0,
            data = 4294967296}, {events = 1, data = 18446654631015612416}, {events = 32767, data = 140737488334472}, {events = 4294946432, data = 72620586941054975}, {events = 0,
---Type <return> to continue, or q <return> to quit---
            data = 0}, {events = 0, data = 0}, {events = 0, data = 8534995790117822830}, {events = 824210021, data = 734419007296253488}, {events = 1694501376,
            data = 7595448453043614561}, {events = 1768693875, data = 2336916756001482094}, {events = 544567161, data = 8367821588416196461}, {events = 1713399144,
            data = 43509967977}, {events = 0, data = 0} <repeats 16 times>, {events = 0, data = 140737322592430}, {events = 4294948256, data = 18446662228812791807}, {
            events = 32767, data = 140737322415170}, {events = 4146156858, data = 17807608087721312255}, {events = 32767, data = 140737322400250}, {events = 0, data = 0}, {
            events = 0, data = 140737488335136}, {events = 0, data = 0}, {events = 0, data = 0}, {events = 0, data = 18446657143571480576}, {events = 32767, data = 0}, {
            events = 0, data = 0}, {events = 0, data = 0}, {events = 0, data = 18446744060824649728}, {events = 4294967295, data = 42949672960}, {events = 437, data = 0}, {
            events = 0, data = 2305843009213693952}, {events = 0, data = 0}, {events = 0, data = 140737488336213}, {events = 0, data = 0}, {events = 0, data = 0}, {events = 0,
            data = 0}, {events = 1, data = 18446744073709551615}, {events = 0, data = 0}, {events = 0, data = 100}, {events = 0, data = 17807608087721279488}, {events = 32767,
            data = 2}, {events = 56, data = 17807608117786050560}, {events = 32767, data = 0}, {events = 0, data = 0}, {events = 0, data = 0}, {events = 0, data = 0}, {
            events = 0, data = 0}, {events = 0, data = 68719476736}, {events = 48, data = 140737488336800}, {events = 4294948576, data = 32767}, {events = 0,
            data = 0} <repeats 71 times>, {events = 4158540684, data = 32767}, {events = 0, data = 226653584}, {events = 8, data = 64424509440}, {events = 0,
            data = 140737353859416}, {events = 4158540684, data = 32767}, {events = 0, data = 2689201299}, {events = 8, data = 64424509440}, {events = 0, data = 140737353859416},
          {events = 4158543102, data = 17869088530223890431}, {events = 32767, data = 140737488336208}, {events = 4128738600, data = 17733012077817135103}, {events = 32767,
            data = 140737488336480}, {events = 42018770, data = 18446663053446479872}, {events = 32767, data = 35715777}, {events = 0, data = 17869091107204235264}, {
            events = 32767, data = 140737353867264}, {events = 4156304544, data = 17733026302748819455}, {events = 32767, data = 140737349682904}, {events = 0,
            data = 8950711844865}, {events = 1, data = 4294967296}, {events = 4160471984, data = 18446663740641279999}, {events = 32767, data = 140737354103624}, {
            events = 4294948632, data = 17870133719105306623}, {events = 32767, data = 1}, {events = 4158543533, data = 32767}, {events = 0, data = 140737353860016}, {events = 1,
            data = 0}, {events = 0, data = 1}, {events = 4160714736, data = 4295000063}, {events = 32767, data = 140737353875456}, {events = 226653584,
            data = 17801029271565631488}, {events = 32767, data = 0}, {events = 4160715592, data = 18446663122165989375}, {events = 32767, data = 140737488336464}, {
            events = 2689201299, data = 17851192088696193024}, {events = 32767, data = 4294967295}, {events = 4144652946, data = 17733012077817135103}, {events = 32767,
            data = 140737353867264}, {events = 4156300152, data = 17870133719105306623}, {events = 32767, data = 0}, {events = 0, data = 0}, {events = 0, data = 140737342002344},
          {events = 0, data = 18446704285132521472}, {events = 32767, data = 0}, {events = 0, data = 18446664427836014592}, {events = 32767, data = 140737351873104}, {events = 0,
            data = 18446704285132521472}, {events = 32767, data = 0}, {events = 0, data = 18446699818366533632}, {events = 32767, data = 140737351949559}, {events = 1,
            data = 32767}, {events = 0, data = 140733193388033}, {events = 4128788616, data = 77309444095}, {events = 0, data = 140737488345024}, {events = 4218592,
            data = 17860996730233815040}, {events = 32767, data = 140737488345504}, {events = 4294957472, data = 32767}, {events = 0, data = 4218592}, {events = 4294958032,
            data = 17733661549886734335}, {events = 32767, data = 140737325926208}, {events = 18, data = 18446699818366533632}, {events = 32767, data = 140737349735897}, {
            events = 984, data = 17804795107480698880}, {events = 32767, data = 140737488345088}, {events = 0, data = 18469218366259637}, {events = 0, data = 6567392}, {
            events = 1836017711, data = 7956018251336331109}, {events = 1769300527, data = 7596562602020529260}, {events = 796158055, data = 3415263888671204722}, {
            events = 1953719668, data = 7957699383374589811}, {events = 876241710, data = 540686131}, {events = 0, data = 0} <repeats 170 times>, {events = 0,
            data = 140737325930016}, {events = 3440, data = 18446692671540953088}, {events = 32767, data = 140737488343328}, {events = 3432, data = 18446692602821476352}...}
        pe = 0x7fffffffa8c0
        e = {events = 1, data = 8}
        real_timeout = -1
        q = 0x7ffff7bb8640 <default_loop_struct+480>
        w = 0x7ffff7bb8628 <default_loop_struct+456>
        sigset = {__val = {0 <repeats 16 times>}}
        sigmask = 0
        base = 526875021
        have_signals = 0
        nevents = 0
        count = 48
        nfds = 1
        fd = 8
        op = 1
        i = 0
        __PRETTY_FUNCTION__ = "uv__io_poll"
#9  0x00007ffff7158b66 in uv_run (loop=0x7ffff7bb8460 <default_loop_struct>, mode=UV_RUN_DEFAULT) at /home/martin/builds/pilight/rewrite/libs/libuv/unix/core.c:354
        timeout = -1
        r = 1
---Type <return> to continue, or q <return> to quit---
        ran_pending = 0
#10 0x0000000000412949 in test_log (tc=0x657f10) at /home/martin/builds/pilight/rewrite/tests/log.c:78
        __FUNCTION__ = "test_log"
        tmp = 0x40dd5c <test_eventpool_callback_threaded+57> "H\203\304\030\303H\203\354\030\350V~\377\377H\211D$\b\276\345\334@"
        array = 0x12
        n = 6643344
        x = 32767
        i = 0
#11 0x00007ffff7175608 in CuTestRun (tc=0x657f10) at /home/martin/builds/pilight/rewrite/libs/pilight/core/CuTest.c:143
        buf = {{__jmpbuf = {18, 6797049743175722832, 4218592, 140737488346064, 0, 0, 6797049743087642448, 6797032911523030864}, __mask_was_saved = 0, __saved_mask = {__val = {
                140737351949559, 1, 0, 0, 140737337980552, 18, 140737488345760, 4218592, 140737351975397, 6566272, 6718512, 0, 6718512, 6566272, 3, 1048576}}}}
#12 0x00007ffff7175cf4 in CuSuiteRun (testSuite=0x63f140) at /home/martin/builds/pilight/rewrite/libs/pilight/core/CuTest.c:298
        testCase = 0x657f10
        i = 39
#13 0x000000000040665a in RunAllTests () at /home/martin/builds/pilight/rewrite/tests/alltests.c:196
        i = 19
        r = 0
#14 0x0000000000406771 in main (argc=1, argv=0x7fffffffdbd8) at /home/martin/builds/pilight/rewrite/tests/alltests.c:219
        f = 0x63f010
(gdb)
 
Reply
#6
What platforms?
 
Reply
#7
openSUSE 13.2 x86-64
 
Reply
#8
Build environment?
 
Reply
#9
Code:
martin@linux-027e:~/builds/pilight/rewrite>  cmake --version
cmake version 3.7.0
CMake suite maintained and supported by Kitware (kitware.com/cmake).
Code:
martin@linux-027e:~/builds/pilight/rewrite>  make --version
GNU Make 4.0
Built for x86_64-unknown-linux-gnu
Copyright (C) 1988-2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Also, several compilation warnings:

Code:
martin@linux-027e:~/builds/pilight/rewrite>  cmake .
-- Looking for libpcap - found (/usr/lib64/libpcap.so)
-- Looking for libunwind - found (/usr/lib64/libunwind.so)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  

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

-- Configuring done
-- Generating done
-- Build files have been written to: /home/martin/builds/pilight/rewrite
martin@linux-027e:~/builds/pilight/rewrite>  make -j1
Scanning dependencies of target pilight
[  0%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/aes.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/aesni.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/arc4.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/asn1parse.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/asn1write.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/base64.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/bignum.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/blowfish.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/camellia.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ccm.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/certs.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/cipher.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/cipher_wrap.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ctr_drbg.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/debug.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/des.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/dhm.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecdh.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecdsa.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecjpake.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecp.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ecp_curves.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/entropy.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/entropy_poll.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/error.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/gcm.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/havege.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/hmac_drbg.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md2.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md4.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md5.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/md_wrap.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/memory_buffer_alloc.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/net.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/oid.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/padlock.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pem.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pk.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pk_wrap.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkcs11.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkcs12.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkcs5.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkparse.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/pkwrite.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/platform.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ripemd160.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/rsa.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/sha1.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/sha256.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/sha512.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_cache.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_ciphersuites.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_cli.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_cookie.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_srv.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_ticket.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/ssl_tls.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/threading.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/timing.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/version.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/version_features.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_create.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_crl.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_crt.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509_csr.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509write_crt.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/x509write_csr.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/mbedtls/xtea.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/wiringx/i2c-dev.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/hardkernel/odroidc1.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/hardkernel/odroidc2.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/hardkernel/odroidxu4.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/lemaker/bananapi1.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/lemaker/bananapim2.c.o
[ 24%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/linksprite/pcduino1.c.o
[ 24%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/platform.c.o
[ 24%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi1b+.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi1b1.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi1b2.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi2.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/raspberrypi/raspberrypi3.c.o
[ 26%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_base_pro_dq.c.o
[ 26%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_base_pro_sdl.c.o
[ 26%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_gate_edge_dq.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/wiringx/platform/solidrun/hummingboard_gate_edge_sdl.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/allwinner/a10.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/allwinner/a31s.c.o
[ 28%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/amlogic/s805.c.o
[ 28%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/amlogic/s905.c.o
[ 28%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/broadcom/2835.c.o
[ 29%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/broadcom/2836.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/nxp/imx6sdlrm.c.o
[ 29%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/samsung/exynos5422.c.o
[ 30%] Building C object CMakeFiles/pilight.dir/libs/wiringx/soc/soc.c.o
[ 30%] Building C object CMakeFiles/pilight.dir/libs/wiringx/wiringX.c.o
In file included from /home/martin/builds/pilight/rewrite/libs/wiringx/wiringX.c:26:0:
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:36:14: warning: inline function ‘i2c_smbus_write_word_data’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_write_word_data(int fd, int cmd, __u16 value);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:35:14: warning: inline function ‘i2c_smbus_read_word_data’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_read_word_data(int fd, int cmd);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:34:14: warning: inline function ‘i2c_smbus_write_byte_data’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_write_byte_data(int fd, int cmd, int value);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:33:14: warning: inline function ‘i2c_smbus_read_byte_data’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_read_byte_data(int fd, int cmd);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:32:14: warning: inline function ‘i2c_smbus_write_byte’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_write_byte(int fd, int value);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:31:14: warning: inline function ‘i2c_smbus_read_byte’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_read_byte(int fd);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:30:14: warning: inline function ‘i2c_smbus_access’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_access(int fd, char rw, int cmd, int size, union i2c_smbus_data *data);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:36:14: warning: inline function ‘i2c_smbus_write_word_data’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_write_word_data(int fd, int cmd, __u16 value);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:35:14: warning: inline function ‘i2c_smbus_read_word_data’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_read_word_data(int fd, int cmd);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:34:14: warning: inline function ‘i2c_smbus_write_byte_data’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_write_byte_data(int fd, int cmd, int value);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:33:14: warning: inline function ‘i2c_smbus_read_byte_data’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_read_byte_data(int fd, int cmd);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:32:14: warning: inline function ‘i2c_smbus_write_byte’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_write_byte(int fd, int value);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:31:14: warning: inline function ‘i2c_smbus_read_byte’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_read_byte(int fd);
              ^
/home/martin/builds/pilight/rewrite/libs/wiringx/i2c-dev.h:30:14: warning: inline function ‘i2c_smbus_access’ declared but never defined [enabled by default]
inline __s32 i2c_smbus_access(int fd, char rw, int cmd, int size, union i2c_smbus_data *data);
              ^
[ 30%] Building C object CMakeFiles/pilight.dir/libs/avrdude/arduino.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avr.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrbitbang.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrconfig.c.o
[ 32%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrgpio.c.o
[ 32%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrpart.c.o
[ 32%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrupd.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/avrdude/fileio.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/avrdude/pgm.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/avrdude/safemode.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/avrdude/ser_posix.c.o
[ 34%] Building C object CMakeFiles/pilight.dir/libs/avrdude/ser_win32.c.o
[ 34%] Building C object CMakeFiles/pilight.dir/libs/avrdude/stk500.c.o
/home/martin/builds/pilight/rewrite/libs/avrdude/stk500.c: In function ‘stk500_initpgm’:
/home/martin/builds/pilight/rewrite/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/libuv/fs-poll.c.o
[ 35%] Building C object CMakeFiles/pilight.dir/libs/libuv/inet.c.o
[ 35%] Building C object CMakeFiles/pilight.dir/libs/libuv/threadpool.c.o
[ 35%] Building C object CMakeFiles/pilight.dir/libs/libuv/uv-common.c.o
[ 36%] Building C object CMakeFiles/pilight.dir/libs/libuv/version.c.o
[ 36%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/async.c.o
[ 36%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/core.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/dl.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/fs.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/getaddrinfo.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/getnameinfo.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-core.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-inotify.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-syscalls.c.o
[ 39%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/loop-watcher.c.o
[ 39%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/loop.c.o
[ 39%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/pipe.c.o
[ 40%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/poll.c.o
[ 40%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/process.c.o
[ 40%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/proctitle.c.o
[ 40%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/pthread-fixes.c.o
[ 41%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/signal.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/tcp.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/timer.c.o
[ 42%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/tty.c.o
[ 43%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/udp.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
[ 44%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/CuTest.c.o
[ 44%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/arp.c.o
[ 44%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/binary.c.o
[ 44%] 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
/home/martin/builds/pilight/rewrite/libs/pilight/core/datetime.c: In function ‘determine_applicable_rule’:
/home/martin/builds/pilight/rewrite/libs/pilight/core/datetime.c:1440:9: warning: missing braces around initializer [-Wmissing-braces]
  struct ruleset ruleset = { 0 };
         ^
/home/martin/builds/pilight/rewrite/libs/pilight/core/datetime.c:1440:9: warning: (near initialization for ‘ruleset.rules’) [-Wmissing-braces]
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/dirname.c.o
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/dso.c.o
[ 46%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/eventpool.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/core/eventpool.c: In function ‘fib’:
/home/martin/builds/pilight/rewrite/libs/pilight/core/eventpool.c:975:21: warning: unused variable ‘cpu_usage’ [-Wunused-variable]
  struct cpu_usage_t cpu_usage;
                     ^
/home/martin/builds/pilight/rewrite/libs/pilight/core/eventpool.c:973:4: warning: unused variable ‘timestamp’ [-Wunused-variable]
  } timestamp;
    ^
[ 46%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/firmware.c.o
[ 46%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/gc.c.o
[ 47%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/http.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/log.c.o
[ 48%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/mail.c.o
[ 48%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/mem.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/ntp.c.o
[ 49%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/options.c.o
[ 49%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/pilight.c.o
[ 49%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ping.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/proc.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/sha256cache.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/socket.c.o
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ssdp.c.o
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ssl.c.o
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/threadpool.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/core/threadpool.c: In function ‘threadpool_init’:
/home/martin/builds/pilight/rewrite/libs/pilight/core/threadpool.c:382:17: warning: variable ‘tv1’ set but not used [-Wunused-but-set-variable]
  struct timeval tv1, tv2;
                 ^
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/timerpool.c.o
[ 52%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/webserver.c.o
[ 52%] Building C object CMakeFiles/pilight.dir/libs/pilight/storage/json.c.o
[ 52%] Building C object CMakeFiles/pilight.dir/libs/pilight/storage/storage.c.o
[ 53%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/dim.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/dim.c: In function ‘thread’:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/dim.c:820:2: warning: passing argument 5 of ‘threadpool_add_work’ from incompatible pointer type [enabled by default]
  threadpool_add_work(REASON_END, NULL, action_dim->name, 0, execute, NULL, (void *)data);
  ^
In file included from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/../storage/../hardware/hardware.h:34:0,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/../storage/storage.h:16,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/pilight.h:44,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/dim.c:15:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/../storage/../hardware/../core/threadpool.h:70:15: note: expected ‘void * (*)(int,  void *)’ but argument is of type ‘void * (*)(void *)’
unsigned long threadpool_add_work(int, uv_sem_t *, char *, int, void *(*)(int, void *), void *(*)(void *), void *);
               ^
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/dim.c:621:9: warning: variable ‘dimlevel’ set but not used [-Wunused-but-set-variable]
  double dimlevel = 0.0, old_dimlevel = 0.0, new_dimlevel = 0.0, cur_dimlevel = 0.0;
         ^
[ 53%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/label.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/label.c: In function ‘thread’:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/label.c:585:2: warning: passing argument 5 of ‘threadpool_add_work’ from incompatible pointer type [enabled by default]
  threadpool_add_work(REASON_END, NULL, action_label->name, 0, execute, NULL, (void *)data);
  ^
In file included from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/../storage/../hardware/hardware.h:34:0,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/../storage/storage.h:16,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/pilight.h:44,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/common.h:30,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../action.h:17,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/label.c:15:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/../storage/../hardware/../core/threadpool.h:70:15: note: expected ‘void * (*)(int,  void *)’ but argument is of type ‘void * (*)(void *)’
unsigned long threadpool_add_work(int, uv_sem_t *, char *, int, void *(*)(int, void *), void *(*)(void *), void *);
               ^
[ 53%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/pushbullet.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/pushbullet.c: In function ‘run’:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/pushbullet.c:171:2: warning: passing argument 5 of ‘threadpool_add_work’ from incompatible pointer type [enabled by default]
  threadpool_add_work(REASON_END, NULL, action_pushbullet->name, 0, thread, NULL, (void *)obj);
  ^
In file included from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/pushbullet.c:14:0:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/threadpool.h:70:15: note: expected ‘void * (*)(int,  void *)’ but argument is of type ‘void * (*)(void *)’
unsigned long threadpool_add_work(int, uv_sem_t *, char *, int, void *(*)(int, void *), void *(*)(void *), void *);
               ^
[ 54%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/pushover.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/pushover.c: In function ‘run’:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/pushover.c:178:2: warning: passing argument 5 of ‘threadpool_add_work’ from incompatible pointer type [enabled by default]
  threadpool_add_work(REASON_END, NULL, action_pushover->name, 0, thread, NULL, (void *)obj);
  ^
In file included from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/pushover.c:14:0:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/threadpool.h:70:15: note: expected ‘void * (*)(int,  void *)’ but argument is of type ‘void * (*)(void *)’
unsigned long threadpool_add_work(int, uv_sem_t *, char *, int, void *(*)(int, void *), void *(*)(void *), void *);
               ^
[ 54%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/sendmail.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/sendmail.c: In function ‘thread’:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/sendmail.c:180:9: warning: unused variable ‘itmp’ [-Wunused-variable]
  double itmp = 0.0;
         ^
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/sendmail.c:179:6: warning: unused variable ‘sport’ [-Wunused-variable]
  int sport = 0;
      ^
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/sendmail.c: In function ‘run’:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/sendmail.c:248:2: warning: passing argument 5 of ‘threadpool_add_work’ from incompatible pointer type [enabled by default]
  threadpool_add_work(REASON_END, NULL, action_sendmail->name, 0, thread, NULL, (void *)obj);
  ^
In file included from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/sendmail.c:24:0:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/threadpool.h:70:15: note: expected ‘void * (*)(int,  void *)’ but argument is of type ‘void * (*)(void *)’
unsigned long threadpool_add_work(int, uv_sem_t *, char *, int, void *(*)(int, void *), void *(*)(void *), void *);
               ^
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/sendmail.c: At top level:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/sendmail.c:152:13: warning: ‘callback’ defined but not used [-Wunused-function]
static void callback(int status) {
             ^
[ 54%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/switch.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/switch.c: In function ‘thread’:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/switch.c:480:2: warning: passing argument 5 of ‘threadpool_add_work’ from incompatible pointer type [enabled by default]
  threadpool_add_work(REASON_END, NULL, action_switch->name, 0, execute, NULL, (void *)data);
  ^
In file included from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/../storage/../hardware/hardware.h:34:0,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/../storage/storage.h:16,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/pilight.h:44,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/common.h:30,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../action.h:17,
                 from /home/martin/builds/pilight/rewrite/libs/pilight/events/actions/switch.c:15:
/home/martin/builds/pilight/rewrite/libs/pilight/events/actions/../../core/../storage/../hardware/../core/threadpool.h:70:15: note: expected ‘void * (*)(int,  void *)’ but argument is of type ‘void * (*)(void *)’
unsigned long threadpool_add_work(int, uv_sem_t *, char *, int, void *(*)(int, void *), void *(*)(void *), void *);
               ^
[ 55%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/toggle.c.o
[ 55%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/functions/date_add.c.o
[ 55%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/functions/date_format.c.o
[ 55%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/functions/random.c.o
[ 56%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/and.c.o
[ 56%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/divide.c.o
[ 56%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/eq.c.o
[ 57%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/ge.c.o
[ 57%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/gt.c.o
[ 57%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/intdivide.c.o
[ 58%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/is.c.o
[ 58%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/le.c.o
[ 58%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/lt.c.o
[ 59%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/minus.c.o
[ 59%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/modulus.c.o
[ 59%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/multiply.c.o
[ 59%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/ne.c.o
[ 60%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/or.c.o
[ 60%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/plus.c.o
[ 60%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/action.c.o
[ 61%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/events.c.o
[ 61%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/function.c.o
[ 61%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operator.c.o
[ 62%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/alecto_ws1700.c.o
[ 62%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/alecto_wsd17.c.o
[ 62%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/alecto_wx500.c.o
[ 62%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_contact.c.o
[ 63%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_dimmer.c.o
[ 63%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_dusk.c.o
[ 63%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_motion.c.o
[ 64%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_screen.c.o
[ 64%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_screen_old.c.o
[ 64%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_switch.c.o
[ 65%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_switch_old.c.o
[ 65%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/auriol.c.o
[ 65%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/beamish_switch.c.o
[ 66%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/clarus.c.o
[ 66%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/cleverwatts.c.o
[ 66%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/conrad_rsl_contact.c.o
[ 66%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/conrad_rsl_switch.c.o
[ 67%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/daycom.c.o
[ 67%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/ehome.c.o
[ 67%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_300_switch.c.o
[ 68%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_400_switch.c.o
[ 68%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_800_contact.c.o
[ 68%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_800_switch.c.o
[ 69%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/eurodomest_switch.c.o
[ 69%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/ev1527.c.o
[ 69%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/heitech.c.o
[ 70%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/impuls.c.o
[ 70%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/logilink_switch.c.o
[ 70%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/mumbi.c.o
[ 70%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/ninjablocks_weather.c.o
[ 71%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/pollin.c.o
[ 71%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_gt1000.c.o
[ 71%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_gt7000.c.o
[ 72%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_gt9000.c.o
[ 72%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_screen.c.o
[ 72%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rc101.c.o
[ 73%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rev_v1.c.o
[ 73%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rev_v2.c.o
[ 73%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rev_v3.c.o
[ 74%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rsl366.c.o
[ 74%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/sc2262.c.o
[ 74%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/secudo_smoke.c.o
[ 74%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/selectremote.c.o
[ 75%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/silvercrest.c.o
[ 75%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/techlico_switch.c.o
[ 75%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/teknihall.c.o
[ 76%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/tfa.c.o
[ 76%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/tfa30.c.o
[ 76%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/x10.c.o
[ 77%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/IR/generic.c.o
[ 77%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/cpu_temp.c.o
[ 77%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/datetime.c.o
[ 77%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/lirc.c.o
[ 78%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/openweathermap.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/API/openweathermap.c: In function ‘createCode’:
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/API/openweathermap.c:387:6: warning: passing argument 5 of ‘threadpool_add_work’ from incompatible pointer type [enabled by default]
      threadpool_add_work(REASON_END, NULL, tmp->name, 0, thread, NULL, (void *)tmp);
      ^
In file included from /home/martin/builds/pilight/rewrite/libs/pilight/protocols/API/openweathermap.c:26:0:
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/API/../../core/threadpool.h:70:15: note: expected ‘void * (*)(int,  void *)’ but argument is of type ‘void * (*)(void *)’
unsigned long threadpool_add_work(int, uv_sem_t *, char *, int, void *(*)(int, void *), void *(*)(void *), void *);
               ^
[ 78%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/program.c.o
[ 78%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/sunriseset.c.o
[ 79%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/wunderground.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/API/wunderground.c: In function ‘createCode’:
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/API/wunderground.c:436:6: warning: passing argument 5 of ‘threadpool_add_work’ from incompatible pointer type [enabled by default]
      threadpool_add_work(REASON_END, NULL, tmp->key, 0, thread, NULL, (void *)tmp);
      ^
In file included from /home/martin/builds/pilight/rewrite/libs/pilight/protocols/API/wunderground.c:26:0:
/home/martin/builds/pilight/rewrite/libs/pilight/protocols/API/../../core/threadpool.h:70:15: note: expected ‘void * (*)(int,  void *)’ but argument is of type ‘void * (*)(void *)’
unsigned long threadpool_add_work(int, uv_sem_t *, char *, int, void *(*)(int, void *), void *(*)(void *), void *);
               ^
[ 79%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/xbmc.c.o
[ 79%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_dimmer.c.o
[ 80%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_label.c.o
[ 80%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_screen.c.o
[ 80%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_switch.c.o
[ 81%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_weather.c.o
[ 81%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_webcam.c.o
[ 81%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/network/arping.c.o
[ 81%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/network/ping.c.o
[ 82%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/bmp180.c.o
[ 82%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/dht11.c.o
[ 82%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/dht22.c.o
[ 83%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/ds18b20.c.o
[ 83%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/ds18s20.c.o
[ 83%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/gpio_switch.c.o
[ 84%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/lm75.c.o
[ 84%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/lm76.c.o
[ 84%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/relay.c.o
[ 85%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/core/raw.c.o
[ 85%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/protocol.c.o
[ 85%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/433gpio.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/hardware/433gpio.c: In function ‘gpio433Init’:
/home/martin/builds/pilight/rewrite/libs/pilight/hardware/433gpio.c:222:15: warning: assignment from incompatible pointer type [enabled by default]
  gpio433->init=&gpio433HwInit;
               ^
[ 85%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/433lirc.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/hardware/433lirc.c: In function ‘lirc433Init’:
/home/martin/builds/pilight/rewrite/libs/pilight/hardware/433lirc.c:202:15: warning: assignment from incompatible pointer type [enabled by default]
  lirc433->init=&lirc433HwInit;
               ^
[ 86%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/433nano.c.o
[ 86%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/IRgpio.c.o
/home/martin/builds/pilight/rewrite/libs/pilight/hardware/IRgpio.c: In function ‘gpioIRInit’:
/home/martin/builds/pilight/rewrite/libs/pilight/hardware/IRgpio.c:227:14: warning: assignment from incompatible pointer type [enabled by default]
  gpioIR->init=&gpioIRHwInit;
              ^
[ 86%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/hardware.c.o
[ 87%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/none.c.o
[ 87%] Built target pilight
Scanning dependencies of target pilight_shared
[ 87%] Linking C shared library libpilight.so
[ 87%] Built target pilight_shared
Scanning dependencies of target pilight-control
[ 87%] Building C object CMakeFiles/pilight-control.dir/control.c.o
[ 87%] Linking C executable pilight-control
[ 87%] Built target pilight-control
Scanning dependencies of target pilight-flash
[ 88%] Building C object CMakeFiles/pilight-flash.dir/flash.c.o
[ 88%] Linking C executable pilight-flash
[ 88%] Built target pilight-flash
Scanning dependencies of target pilight-daemon
[ 89%] Building C object CMakeFiles/pilight-daemon.dir/daemon.c.o
[ 89%] Linking C executable pilight-daemon
[ 89%] Built target pilight-daemon
Scanning dependencies of target pilight-unittest
[ 89%] Building C object CMakeFiles/pilight-unittest.dir/tests/alltests.c.o
[ 89%] Building C object CMakeFiles/pilight-unittest.dir/tests/binary.c.o
[ 89%] Building C object CMakeFiles/pilight-unittest.dir/tests/common.c.o
[ 90%] Building C object CMakeFiles/pilight-unittest.dir/tests/datetime.c.o
[ 90%] Building C object CMakeFiles/pilight-unittest.dir/tests/dso.c.o
[ 90%] Building C object CMakeFiles/pilight-unittest.dir/tests/eventpool.c.o
[ 91%] Building C object CMakeFiles/pilight-unittest.dir/tests/http.c.o
[ 91%] Building C object CMakeFiles/pilight-unittest.dir/tests/json.c.o
[ 91%] Building C object CMakeFiles/pilight-unittest.dir/tests/libdso.c.o
[ 92%] Building C object CMakeFiles/pilight-unittest.dir/tests/log.c.o
[ 92%] Building C object CMakeFiles/pilight-unittest.dir/tests/mail.c.o
[ 92%] Building C object CMakeFiles/pilight-unittest.dir/tests/network.c.o
[ 93%] 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
[ 94%] Building C object CMakeFiles/pilight-unittest.dir/tests/sha256cache.c.o
[ 94%] Building C object CMakeFiles/pilight-unittest.dir/tests/socket.c.o
[ 94%] Building C object CMakeFiles/pilight-unittest.dir/tests/ssdp.c.o
[ 95%] Building C object CMakeFiles/pilight-unittest.dir/tests/strptime.c.o
/home/martin/builds/pilight/rewrite/tests/strptime.c: In function ‘test_strptime’:
/home/martin/builds/pilight/rewrite/tests/strptime.c:41:2: warning: implicit declaration of function ‘datetime2ts’ [-Wimplicit-function-declaration]
  t = datetime2ts(tm.tm_year+1900, tm.tm_mon+1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec);
  ^
[ 95%] Building C object CMakeFiles/pilight-unittest.dir/tests/webserver.c.o
[ 95%] Linking C executable pilight-unittest
[ 95%] Built target pilight-unittest
Scanning dependencies of target pilight-raw
[ 95%] Building C object CMakeFiles/pilight-raw.dir/raw.c.o
[ 96%] Linking C executable pilight-raw
[ 96%] Built target pilight-raw
Scanning dependencies of target pilight_static
[ 97%] Linking C static library libpilight.a
[ 97%] Built target pilight_static
Scanning dependencies of target DSO
[ 97%] Building C object CMakeFiles/DSO.dir/tests/libdso.c.o
[ 97%] Built target DSO
Scanning dependencies of target dso_shared
[ 97%] Linking C shared library libdso.so
[ 97%] Built target dso_shared
Scanning dependencies of target pilight-receive
[ 97%] Building C object CMakeFiles/pilight-receive.dir/receive.c.o
[ 97%] Linking C executable pilight-receive
[ 97%] Built target pilight-receive
Scanning dependencies of target pilight-debug
[ 97%] Building C object CMakeFiles/pilight-debug.dir/debug.c.o
[ 97%] Linking C executable pilight-debug
[ 97%] Built target pilight-debug
Scanning dependencies of target pilight-send
[ 98%] Building C object CMakeFiles/pilight-send.dir/send.c.o
[ 98%] Linking C executable pilight-send
[ 98%] Built target pilight-send
Scanning dependencies of target pilight-uuid
[ 99%] Building C object CMakeFiles/pilight-uuid.dir/uuid.c.o
[ 99%] Linking C executable pilight-uuid
[ 99%] Built target pilight-uuid
Scanning dependencies of target pilight-sha256
[ 99%] Building C object CMakeFiles/pilight-sha256.dir/sha256.c.o
[100%] Linking C executable pilight-sha256
[100%] Built target pilight-sha256
martin@linux-027e:~/builds/pilight/rewrite>  ./pilight-unittest
[ test_explode                                     ]
[ test_nrcpu                                       ]
[ test_isrunning                                   ]
[ test_isnummeric                                  ]
[ test_name2uid                                    ]
[ test_strstr                                      ]
[ test_ishex                                       ]
[ test_urldecode                                   ]
[ test_urlencode                                   ]
[ test_base64decode                                ]
[ test_base64encode                                ]
[ test_hostname                                    ]
[ test_distroname                                  ]
[ test_file_exists                                 ]
[ test_path_exists                                 ]
[ test_vercmp                                      ]
[ test_uniq_space                                  ]
[ test_str_replace                                 ]
[ test_stricmp                                     ]
[ test_file_get_contents                           ]
[ test_inet_devs                                   ]
[ test_dev2mac                                     ]
[ test_host2ip                                     ]
[ test_whitelist_check                             ]
[ test_binary                                      ]
[ test_coord2tz                                    ]
[ test_datetime2ts                                 ]
[ test_localtime_l                                 ]
[ test_datefix                                     ]
[ test_json_encode                                 ]
[ test_json_decode                                 ]
[ test_sha256cache                                 ]
[ test_strptime                                    ]
[ test_options_valid                               ]
[ test_options_invalid                             ]
[ test_options_merge                               ]
[ test_dso                                         ]
[ test_eventpool_callback_nothreads                ]
[ test_eventpool_callback_threaded                 ]
[ test_log                                         ]
(/home/martin/builds/pilight/rewrite/tests/log.c #42) [Jan 06 12:39:35:320952] emergency
(/home/martin/builds/pilight/rewrite/tests/log.c #43) [Jan 06 12:39:35:320989] alert
(/home/martin/builds/pilight/rewrite/tests/log.c #44) [Jan 06 12:39:35:321000] critical
(/home/martin/builds/pilight/rewrite/tests/log.c #45) [Jan 06 12:39:35:321007] ERROR: test
*** Error in `./pilight-unittest': corrupted double-linked list: 0x00007f9ebc000f00 ***
^C
martin@linux-027e:~/builds/pilight/rewrite>
 
Reply
#10
GCC version?
Library versions? libunwind, libpcap?
etc.
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)