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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
rewrite fails to compile
#21
OK, sorry for not using code tags.

I do not see the same compiling error as discussed above, my error looks quite different (platform is raspberry pi 3, running jessie):
Code:
[ 92%] Building C object CMakeFiles/pilight-daemon.dir/daemon.c.o
/home/pi/pilight/daemon.c: In function ‘receive_parse_code’:
/home/pi/pilight/daemon.c:401:26: warning: passing argument 1 of ‘protocol-><U8f60>.parseCode’ from incompatible pointer type
      protocol->parseCode(message);
                          ^
/home/pi/pilight/daemon.c:401:26: note: expected ‘char **’ but argument is of type ‘char *’
/home/pi/pilight/daemon.c: In function ‘send_queue’:
/home/pi/pilight/daemon.c:644:36: warning: passing argument 2 of ‘protocol->createCode’ from incompatible pointer type
     if(protocol->createCode(jcode, message) == 0 && main_loop == 1) {
                                    ^
/home/pi/pilight/daemon.c:644:36: note: expected ‘char **’ but argument is of type ‘char *’
/home/pi/pilight/daemon.c: In function ‘start_pilight’:
/home/pi/pilight/daemon.c:1668:3: warning: implicit declaration of function ‘platform_iterate_name’ [-Wimplicit-function-declaration]
   while((tmp = platform_iterate_name(z++)) != NULL) {
   ^
/home/pi/pilight/daemon.c:1668:14: warning: assignment makes pointer from integer without a cast
   while((tmp = platform_iterate_name(z++)) != NULL) {
              ^
[ 92%] Linking C executable pilight-daemon
CMakeFiles/pilight-daemon.dir/daemon.c.o: In function `start_pilight':
/home/pi/pilight/daemon.c:1668: undefined reference to `platform_iterate_name'
collect2: error: ld returned 1 exit status
CMakeFiles/pilight-daemon.dir/build.make:98: recipe for target 'pilight-daemon' failed
make[2]: *** [pilight-daemon] Error 1
CMakeFiles/Makefile2:173: recipe for target 'CMakeFiles/pilight-daemon.dir/all' failed
make[1]: *** [CMakeFiles/pilight-daemon.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

here the complete output:
Code:
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for libpcap - found (/usr/lib/arm-linux-gnueabihf/libpcap.so)
-- Looking for libwiringx - found (/usr/lib/libwiringx.so)
-- Looking for libmbedtls - found (/usr/local/lib/libmbedtls.a)
-- Looking for libmbedcrypto - found (/usr/local/lib/libmbedcrypto.a)
-- Looking for libmbedx509 - found (/usr/local/lib/libmbedx509.a)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE

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

-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/pilight/build
Scanning dependencies of target pilight
[  0%] Building C object CMakeFiles/pilight.dir/libs/avrdude/arduino.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avr.c.o
[  1%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrbitbang.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrconfig.c.o
[  2%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrgpio.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrpart.c.o
[  3%] Building C object CMakeFiles/pilight.dir/libs/avrdude/avrupd.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/avrdude/fileio.c.o
[  4%] Building C object CMakeFiles/pilight.dir/libs/avrdude/pgm.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/avrdude/safemode.c.o
[  5%] Building C object CMakeFiles/pilight.dir/libs/avrdude/ser_posix.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/avrdude/ser_win32.c.o
[  6%] Building C object CMakeFiles/pilight.dir/libs/avrdude/stk500.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/libuv/fs-poll.c.o
[  7%] Building C object CMakeFiles/pilight.dir/libs/libuv/inet.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/libuv/threadpool.c.o
[  8%] Building C object CMakeFiles/pilight.dir/libs/libuv/uv-common.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/libuv/version.c.o
[  9%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/async.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/core.c.o
[ 10%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/dl.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/fs.c.o
[ 11%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/getaddrinfo.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/getnameinfo.c.o
[ 12%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-core.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-inotify.c.o
[ 13%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/linux-syscalls.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/loop-watcher.c.o
[ 14%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/loop.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/pipe.c.o
[ 15%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/poll.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/process.c.o
[ 16%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/proctitle.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/pthread-fixes.c.o
[ 17%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/signal.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/stream.c.o
[ 18%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/sysinfo-loadavg.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/sysinfo-memory.c.o
[ 19%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/tcp.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/thread.c.o
[ 20%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/timer.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/tty.c.o
[ 21%] Building C object CMakeFiles/pilight.dir/libs/libuv/unix/udp.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/CuTest.c.o
[ 22%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/arp.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/binary.c.o
[ 23%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/cast.c.o
[ 24%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/common.c.o
[ 24%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/datetime.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/dso.c.o
[ 25%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/eventpool.c.o
[ 26%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/firmware.c.o
[ 26%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/http.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/json.c.o
[ 27%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/log.c.o
[ 28%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/mail.c.o
[ 28%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/mem.c.o
[ 29%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/network.c.o
[ 29%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ntp.c.o
[ 30%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/options.c.o
[ 30%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/pilight.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ping.c.o
[ 31%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/proc.c.o
[ 32%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/sha256cache.c.o
[ 32%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/socket.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ssdp.c.o
[ 33%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/ssl.c.o
[ 34%] Building C object CMakeFiles/pilight.dir/libs/pilight/core/webserver.c.o
[ 34%] Building C object CMakeFiles/pilight.dir/libs/pilight/storage/json.c.o
[ 35%] Building C object CMakeFiles/pilight.dir/libs/pilight/storage/storage.c.o
[ 35%] Building C object CMakeFiles/pilight.dir/libs/pilight/psutil/linux.c.o
[ 36%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/dim.c.o
[ 36%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/label.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/pushbullet.c.o
[ 37%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/pushover.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/sendmail.c.o
[ 38%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/switch.c.o
[ 39%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/actions/toggle.c.o
[ 39%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/functions/date_add.c.o
[ 40%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/functions/date_format.c.o
[ 40%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/functions/random.c.o
[ 41%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/and.c.o
[ 41%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/divide.c.o
[ 42%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/eq.c.o
[ 42%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/ge.c.o
[ 43%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/gt.c.o
[ 43%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/intdivide.c.o
[ 44%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/le.c.o
[ 44%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/lt.c.o
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/minus.c.o
[ 45%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/modulus.c.o
[ 46%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/multiply.c.o
[ 46%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/ne.c.o
[ 47%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/or.c.o
[ 47%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operators/plus.c.o
[ 48%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/action.c.o
[ 48%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/events.c.o
[ 49%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/function.c.o
[ 49%] Building C object CMakeFiles/pilight.dir/libs/pilight/events/operator.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/alecto_ws1700.c.o
[ 50%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/alecto_wsd17.c.o
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/alecto_wx500.c.o
[ 51%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_contact.c.o
[ 52%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_dimmer.c.o
[ 52%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_dusk.c.o
[ 53%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_motion.c.o
[ 53%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_screen.c.o
[ 54%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_screen_old.c.o
[ 54%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_switch.c.o
[ 55%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/arctech_switch_old.c.o
[ 55%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/auriol.c.o
[ 56%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/beamish_switch.c.o
[ 56%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/clarus.c.o
[ 57%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/cleverwatts.c.o
[ 57%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/conrad_rsl_contact.c.o
[ 58%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/conrad_rsl_switch.c.o
[ 58%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/daycom.c.o
[ 59%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/ehome.c.o
[ 59%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_300_switch.c.o
[ 60%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_400_switch.c.o
[ 60%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_800_contact.c.o
[ 61%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/elro_800_switch.c.o
[ 61%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/eurodomest_switch.c.o
[ 62%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/ev1527.c.o
[ 62%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/heitech.c.o
[ 63%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/impuls.c.o
[ 63%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/livolo_switch.c.o
[ 64%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/logilink_switch.c.o
[ 64%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/mumbi.c.o
[ 65%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/ninjablocks_weather.c.o
[ 65%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/pollin.c.o
[ 66%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_gt1000.c.o
[ 66%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_gt7000.c.o
[ 67%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_gt9000.c.o
[ 67%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/quigg_screen.c.o
[ 68%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rc101.c.o
[ 68%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rev_v1.c.o
[ 69%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rev_v2.c.o
[ 69%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rev_v3.c.o
[ 70%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/rsl366.c.o
[ 70%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/sc2262.c.o
[ 71%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/secudo_smoke.c.o
[ 71%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/selectremote.c.o
[ 72%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/silvercrest.c.o
[ 72%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/techlico_switch.c.o
[ 73%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/teknihall.c.o
[ 73%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/tfa.c.o
[ 74%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/tfa30.c.o
[ 74%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/433.92/x10.c.o
[ 75%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/cpu_temp.c.o
[ 75%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/datetime.c.o
[ 76%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/lirc.c.o
[ 76%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/openweathermap.c.o
[ 77%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/sunriseset.c.o
[ 77%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/wunderground.c.o
[ 78%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/API/xbmc.c.o
[ 78%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_dimmer.c.o
[ 79%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/generic/generic_label.c.o
[ 79%] 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
[ 80%] 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
[ 82%] 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
[ 83%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/dht11.c.o
[ 83%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/dht22.c.o
[ 84%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/ds18b20.c.o
[ 84%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/ds18s20.c.o
[ 85%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/gpio_switch.c.o
[ 85%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/lm75.c.o
[ 86%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/lm76.c.o
[ 86%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/GPIO/relay.c.o
[ 87%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/core/raw.c.o
[ 87%] Building C object CMakeFiles/pilight.dir/libs/pilight/protocols/protocol.c.o
[ 88%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/433gpio.c.o
[ 88%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/433nano.c.o
[ 89%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/hardware.c.o
[ 89%] Building C object CMakeFiles/pilight.dir/libs/pilight/hardware/none.c.o
[ 89%] Built target pilight
Scanning dependencies of target pilight_shared
[ 90%] Linking C shared library libpilight.so
[ 90%] Built target pilight_shared
Scanning dependencies of target pilight-sha256
[ 91%] Building C object CMakeFiles/pilight-sha256.dir/sha256.c.o
[ 91%] Linking C executable pilight-sha256
[ 91%] Built target pilight-sha256
Scanning dependencies of target pilight-daemon
[ 92%] Building C object CMakeFiles/pilight-daemon.dir/daemon.c.o
/home/pi/pilight/daemon.c: In function ‘receive_parse_code’:
/home/pi/pilight/daemon.c:401:26: warning: passing argument 1 of ‘protocol-><U8f60>.parseCode’ from incompatible pointer type
      protocol->parseCode(message);
                          ^
/home/pi/pilight/daemon.c:401:26: note: expected ‘char **’ but argument is of type ‘char *’
/home/pi/pilight/daemon.c: In function ‘send_queue’:
/home/pi/pilight/daemon.c:644:36: warning: passing argument 2 of ‘protocol->createCode’ from incompatible pointer type
     if(protocol->createCode(jcode, message) == 0 && main_loop == 1) {
                                    ^
/home/pi/pilight/daemon.c:644:36: note: expected ‘char **’ but argument is of type ‘char *’
/home/pi/pilight/daemon.c: In function ‘start_pilight’:
/home/pi/pilight/daemon.c:1668:3: warning: implicit declaration of function ‘platform_iterate_name’ [-Wimplicit-function-declaration]
   while((tmp = platform_iterate_name(z++)) != NULL) {
   ^
/home/pi/pilight/daemon.c:1668:14: warning: assignment makes pointer from integer without a cast
   while((tmp = platform_iterate_name(z++)) != NULL) {
              ^
[ 92%] Linking C executable pilight-daemon
CMakeFiles/pilight-daemon.dir/daemon.c.o: In function `start_pilight':
/home/pi/pilight/daemon.c:1668: undefined reference to `platform_iterate_name'
collect2: error: ld returned 1 exit status
CMakeFiles/pilight-daemon.dir/build.make:98: recipe for target 'pilight-daemon' failed
make[2]: *** [pilight-daemon] Error 1
CMakeFiles/Makefile2:173: recipe for target 'CMakeFiles/pilight-daemon.dir/all' failed
make[1]: *** [CMakeFiles/pilight-daemon.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2

Werner
 
Reply
#22
That's because there are too many compile error threads around here:
https://forum.pilight.org/Thread-rewrite...2#pid21132
 
Reply
#23
Should We/I create a PR for a temporary compile fix then? Or should we wait for a port of the daemon?
Sadly I'm not familiar enough with what you intend to rewrite from dev/master->rewrite branch yet.
 
Reply
#24
Just use development because i'm weekly backporting stuff from rewrite from the past month. If you have a specific request for rewrite functionality just ask me and maybe i'll backport it earlier.
 
Reply
#25
(09-01-2017, 09:03 AM)curlymo Wrote: Just use development because i'm weekly backporting stuff from rewrite from the past month. If you have a specific request for rewrite functionality just ask me and maybe i'll backport it earlier.

So my first request to backport ist the uuid for 433 MHz device to make AdHoc network with two or more slaves working.

Hopefully this is possible.
Thanks
Werner
 
Reply
  


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

Forum Jump:


Browsing: 2 Guest(s)