Closed GoogleCodeExporter closed 9 years ago
What steps will reproduce the problem? 1. get the last OZW 2. try to compile OZW-CP What is the expected output? make -> no error: domo@DOMO:~/install/openzwave-control-panel$ make g++ -c -Wall -Wno-inline -Wno-format -g -DDEBUG -Werror -I ../open-zwave/cpp/src -I ../open-zwave/cpp/src/command_classes/ -I ../open-zwave/cpp/src/value_classes/ -I ../open-zwave/cpp/src/platform/ -I ../open-zwave/cpp/src/platform/unix -I ../open-zwave/cpp/tinyxml/ -I ../libmicrohttpd/src/include -o webserver.o webserver.cpp g++ -o ozwcp -g ozwcp.o webserver.o zwavelib.o ../open-zwave/cpp/lib/linux/libopenzwave.a ../libmicrohttpd/src/daemon/.libs/libmicrohttpd.a -pthread -ludev domo@DOMO:~/install/openzwave-control-panel$ What do you see instead? make -> errors : domo@DOMO:~/install/openzwave-control-panel$ make g++ -c -Wall -Wno-inline -Wno-format -g -DDEBUG -Werror -I ../open-zwave/cpp/src -I ../open-zwave/cpp/src/command_classes/ -I ../open-zwave/cpp/src/value_classes/ -I ../open-zwave/cpp/src/platform/ -I ../open-zwave/cpp/src/platform/unix -I ../open-zwave/cpp/tinyxml/ -I ../libmicrohttpd/src/include -o webserver.o webserver.cpp webserver.cpp: In member function âconst char* Webserver::SendStatResponse(MHD_Connection*, const char*, const char*, const char*, const char*)â: webserver.cpp:435:63: erreur: âstruct OpenZWave::Node::NodeDataâ has no member named âm_averageRequestRTTâ webserver.cpp:436:66: erreur: âstruct OpenZWave::Node::NodeDataâ has no member named âm_averageRequestRTTâ webserver.cpp: At global scope: webserver.cpp:749:65: erreur: âOpenZWave::Driver::ControllerErrorâ has not been declared webserver.cpp: In member function âint Webserver::Handler(MHD_Connection*, const char*, const char*, const char*, const char*, size_t*, void**)â: webserver.cpp:1082:48: erreur: invalid conversion from âvoid (*)(OpenZWave::Driver::ControllerState, int, void*)â to âOpenZWave::Driver::pfnControllerCallback_t {aka void (*)(OpenZWave::Driver::ControllerState, void*)}â [-fpermissive] ../open-zwave/cpp/src/Manager.h:1425:8: erreur: initializing argument 3 of âbool OpenZWave::Manager::BeginControllerCommand(uint32, OpenZWave::Driver::ControllerCommand, OpenZWave::Driver::pfnControllerCallback_t, void*, bool, uint8, uint8)â [-fpermissive] webserver.cpp:1088:48: erreur: invalid conversion from âvoid (*)(OpenZWave::Driver::ControllerState, int, void*)â to âOpenZWave::Driver::pfnControllerCallback_t {aka void (*)(OpenZWave::Driver::ControllerState, void*)}â [-fpermissive] ../open-zwave/cpp/src/Manager.h:1425:8: erreur: initializing argument 3 of âbool OpenZWave::Manager::BeginControllerCommand(uint32, OpenZWave::Driver::ControllerCommand, OpenZWave::Driver::pfnControllerCallback_t, void*, bool, uint8, uint8)â [-fpermissive] webserver.cpp:1094:48: erreur: invalid conversion from âvoid (*)(OpenZWave::Driver::ControllerState, int, void*)â to âOpenZWave::Driver::pfnControllerCallback_t {aka void (*)(OpenZWave::Driver::ControllerState, void*)}â [-fpermissive] ../open-zwave/cpp/src/Manager.h:1425:8: erreur: initializing argument 3 of âbool OpenZWave::Manager::BeginControllerCommand(uint32, OpenZWave::Driver::ControllerCommand, OpenZWave::Driver::pfnControllerCallback_t, void*, bool, uint8, uint8)â [-fpermissive] webserver.cpp:1100:48: erreur: invalid conversion from âvoid (*)(OpenZWave::Driver::ControllerState, int, void*)â to âOpenZWave::Driver::pfnControllerCallback_t {aka void (*)(OpenZWave::Driver::ControllerState, void*)}â [-fpermissive] ../open-zwave/cpp/src/Manager.h:1425:8: erreur: initializing argument 3 of âbool OpenZWave::Manager::BeginControllerCommand(uint32, OpenZWave::Driver::ControllerCommand, OpenZWave::Driver::pfnControllerCallback_t, void*, bool, uint8, uint8)â [-fpermissive] webserver.cpp:1106:48: erreur: invalid conversion from âvoid (*)(OpenZWave::Driver::ControllerState, int, void*)â to âOpenZWave::Driver::pfnControllerCallback_t {aka void (*)(OpenZWave::Driver::ControllerState, void*)}â [-fpermissive] ../open-zwave/cpp/src/Manager.h:1425:8: erreur: initializing argument 3 of âbool OpenZWave::Manager::BeginControllerCommand(uint32, OpenZWave::Driver::ControllerCommand, OpenZWave::Driver::pfnControllerCallback_t, void*, bool, uint8, uint8)â [-fpermissive] webserver.cpp:1112:48: erreur: invalid conversion from âvoid (*)(OpenZWave::Driver::ControllerState, int, void*)â to âOpenZWave::Driver::pfnControllerCallback_t {aka void (*)(OpenZWave::Driver::ControllerState, void*)}â [-fpermissive] ../open-zwave/cpp/src/Manager.h:1425:8: erreur: initializing argument 3 of âbool OpenZWave::Manager::BeginControllerCommand(uint32, OpenZWave::Driver::ControllerCommand, OpenZWave::Driver::pfnControllerCallback_t, void*, bool, uint8, uint8)â [-fpermissive] webserver.cpp:1120:49: erreur: invalid conversion from âvoid (*)(OpenZWave::Driver::ControllerState, int, void*)â to âOpenZWave::Driver::pfnControllerCallback_t {aka void (*)(OpenZWave::Driver::ControllerState, void*)}â [-fpermissive] ../open-zwave/cpp/src/Manager.h:1425:8: erreur: initializing argument 3 of âbool OpenZWave::Manager::BeginControllerCommand(uint32, OpenZWave::Driver::ControllerCommand, OpenZWave::Driver::pfnControllerCallback_t, void*, bool, uint8, uint8)â [-fpermissive] webserver.cpp:1129:49: erreur: invalid conversion from âvoid (*)(OpenZWave::Driver::ControllerState, int, void*)â to âOpenZWave::Driver::pfnControllerCallback_t {aka void (*)(OpenZWave::Driver::ControllerState, void*)}â [-fpermissive] ../open-zwave/cpp/src/Manager.h:1425:8: erreur: initializing argument 3 of âbool OpenZWave::Manager::BeginControllerCommand(uint32, OpenZWave::Driver::ControllerCommand, OpenZWave::Driver::pfnControllerCallback_t, void*, bool, uint8, uint8)â [-fpermissive] webserver.cpp:1138:49: erreur: invalid conversion from âvoid (*)(OpenZWave::Driver::ControllerState, int, void*)â to âOpenZWave::Driver::pfnControllerCallback_t {aka void (*)(OpenZWave::Driver::ControllerState, void*)}â [-fpermissive] ../open-zwave/cpp/src/Manager.h:1425:8: erreur: initializing argument 3 of âbool OpenZWave::Manager::BeginControllerCommand(uint32, OpenZWave::Driver::ControllerCommand, OpenZWave::Driver::pfnControllerCallback_t, void*, bool, uint8, uint8)â [-fpermissive] webserver.cpp:1145:48: erreur: invalid conversion from âvoid (*)(OpenZWave::Driver::ControllerState, int, void*)â to âOpenZWave::Driver::pfnControllerCallback_t {aka void (*)(OpenZWave::Driver::ControllerState, void*)}â [-fpermissive] ../open-zwave/cpp/src/Manager.h:1425:8: erreur: initializing argument 3 of âbool OpenZWave::Manager::BeginControllerCommand(uint32, OpenZWave::Driver::ControllerCommand, OpenZWave::Driver::pfnControllerCallback_t, void*, bool, uint8, uint8)â [-fpermissive] webserver.cpp:1153:49: erreur: invalid conversion from âvoid (*)(OpenZWave::Driver::ControllerState, int, void*)â to âOpenZWave::Driver::pfnControllerCallback_t {aka void (*)(OpenZWave::Driver::ControllerState, void*)}â [-fpermissive] ../open-zwave/cpp/src/Manager.h:1425:8: erreur: initializing argument 3 of âbool OpenZWave::Manager::BeginControllerCommand(uint32, OpenZWave::Driver::ControllerCommand, OpenZWave::Driver::pfnControllerCallback_t, void*, bool, uint8, uint8)â [-fpermissive] webserver.cpp:1162:49: erreur: invalid conversion from âvoid (*)(OpenZWave::Driver::ControllerState, int, void*)â to âOpenZWave::Driver::pfnControllerCallback_t {aka void (*)(OpenZWave::Driver::ControllerState, void*)}â [-fpermissive] ../open-zwave/cpp/src/Manager.h:1425:8: erreur: initializing argument 3 of âbool OpenZWave::Manager::BeginControllerCommand(uint32, OpenZWave::Driver::ControllerCommand, OpenZWave::Driver::pfnControllerCallback_t, void*, bool, uint8, uint8)â [-fpermissive] webserver.cpp:1171:49: erreur: invalid conversion from âvoid (*)(OpenZWave::Driver::ControllerState, int, void*)â to âOpenZWave::Driver::pfnControllerCallback_t {aka void (*)(OpenZWave::Driver::ControllerState, void*)}â [-fpermissive] ../open-zwave/cpp/src/Manager.h:1425:8: erreur: initializing argument 3 of âbool OpenZWave::Manager::BeginControllerCommand(uint32, OpenZWave::Driver::ControllerCommand, OpenZWave::Driver::pfnControllerCallback_t, void*, bool, uint8, uint8)â [-fpermissive] webserver.cpp:1180:49: erreur: invalid conversion from âvoid (*)(OpenZWave::Driver::ControllerState, int, void*)â to âOpenZWave::Driver::pfnControllerCallback_t {aka void (*)(OpenZWave::Driver::ControllerState, void*)}â [-fpermissive] ../open-zwave/cpp/src/Manager.h:1425:8: erreur: initializing argument 3 of âbool OpenZWave::Manager::BeginControllerCommand(uint32, OpenZWave::Driver::ControllerCommand, OpenZWave::Driver::pfnControllerCallback_t, void*, bool, uint8, uint8)â [-fpermissive] webserver.cpp:1191:57: erreur: invalid conversion from âvoid (*)(OpenZWave::Driver::ControllerState, int, void*)â to âOpenZWave::Driver::pfnControllerCallback_t {aka void (*)(OpenZWave::Driver::ControllerState, void*)}â [-fpermissive] ../open-zwave/cpp/src/Manager.h:1425:8: erreur: initializing argument 3 of âbool OpenZWave::Manager::BeginControllerCommand(uint32, OpenZWave::Driver::ControllerCommand, OpenZWave::Driver::pfnControllerCallback_t, void*, bool, uint8, uint8)â [-fpermissive] webserver.cpp:1202:57: erreur: invalid conversion from âvoid (*)(OpenZWave::Driver::ControllerState, int, void*)â to âOpenZWave::Driver::pfnControllerCallback_t {aka void (*)(OpenZWave::Driver::ControllerState, void*)}â [-fpermissive] ../open-zwave/cpp/src/Manager.h:1425:8: erreur: initializing argument 3 of âbool OpenZWave::Manager::BeginControllerCommand(uint32, OpenZWave::Driver::ControllerCommand, OpenZWave::Driver::pfnControllerCallback_t, void*, bool, uint8, uint8)â [-fpermissive] make: *** [webserver.o] Erreur 1 domo@DOMO:~/install/openzwave-control-panel$ What version of the product are you using? On what operating system? OZW r591 OZW-CP r31 Linux DOMO 3.2.0-34-generic-pae #53-Ubuntu SMP Thu Nov 15 11:11:12 UTC 2012 i686 i686 i386 GNU/Linux Please provide any additional information below. Diff to correct the issue : Index: webserver.cpp =================================================================== --- webserver.cpp (revision 31) +++ webserver.cpp (copie de travail) @@ -432,8 +432,8 @@ nodeElement->LinkEndChild(newstat("nstat", "Received duplicates", ndata.m_receivedDups)); nodeElement->LinkEndChild(newstat("nstat", "Last sent message", ndata.m_sentTS.c_str())); nodeElement->LinkEndChild(newstat("nstat", "Last received message", ndata.m_receivedTS.c_str())); - nodeElement->LinkEndChild(newstat("nstat", "Last RTT", ndata.m_averageRequestRTT)); - nodeElement->LinkEndChild(newstat("nstat", "Average RTT", ndata.m_averageRequestRTT)); + nodeElement->LinkEndChild(newstat("nstat", "Last RTT", ndata.m_averageRTT)); + nodeElement->LinkEndChild(newstat("nstat", "Average RTT", ndata.m_averageRTT)); nodeElement->LinkEndChild(newstat("nstat", "Quality", ndata.m_quality)); while (!ndata.m_ccData.empty()) { Node::CommandClassData ccd = ndata.m_ccData.front(); @@ -746,7 +746,7 @@ * Handle controller function feedback from library. */ -void web_controller_update (Driver::ControllerState cs, Driver::ControllerError err, void *ct) +void web_controller_update (Driver::ControllerState cs, void *ct) { Webserver *cp = (Webserver *)ct; =================================================================== Regards, -- Bad Wolf
Original issue reported on code.google.com by jean.fri...@gmail.com on 17 Dec 2012 at 10:23
jean.fri...@gmail.com
This is a known issue. r30 is the last compatible version with r591 of the library.
Original comment by glsatz on 18 Dec 2012 at 5:29
glsatz
Original issue reported on code.google.com by
jean.fri...@gmail.com
on 17 Dec 2012 at 10:23