[Debian-iot-maintainers] Bug#964512: openzwave-controlpanel: FTBFS with invalid type conversion

Andreas Beckmann anbe at debian.org
Wed Jul 8 10:22:18 BST 2020


Source: openzwave-controlpanel
Version: 0.2a+git20161006.a390f35-2
Severity: serious
Tags: ftbfs sid bullseye
Justification: fails to build from source

Hi,

openzwave-controlpanel recently started to FTBFS with

g++ -g -O2 -fdebug-prefix-map=/build/openzwave-controlpanel-0.2a+git20161006.a390f35=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c -Wall -Wno-unknown-pragmas -Wno-format -Wno-format-security -I /usr/include/openzwave -I /usr/include/openzwave/command_classes -I /usr/include/openzwave/value_classes -I /usr/include/openzwave/platform -I /usr/include/openzwave/platform/unix -I /usr/include/openzwave/tinyxml -o webserver.o webserver.cpp
webserver.cpp: In member function 'int Webserver::Handler(MHD_Connection*, const char*, const char*, const char*, const char*, size_t*, void**)':
webserver.cpp:1111:56: error: invalid conversion from 'int (*)(void*, MHD_ValueKind, const char*, const char*, const char*, const char*, const char*, uint64_t, size_t)' {aka 'int (*)(void*, MHD_ValueKind, const char*, const char*, const char*, const char*, const char*, long unsigned int, long unsigned int)'} to 'MHD_PostDataIterator' {aka 'MHD_Result (*)(void*, MHD_ValueKind, const char*, const char*, const char*, const char*, const char*, long unsigned int, long unsigned int)'} [-fpermissive]
 1111 |    cp->conn_pp = MHD_create_post_processor(conn, 1024, web_config_post, (void *)cp);
      |                                                        ^~~~~~~~~~~~~~~
      |                                                        |
      |                                                        int (*)(void*, MHD_ValueKind, const char*, const char*, const char*, const char*, const char*, uint64_t, size_t) {aka int (*)(void*, MHD_ValueKind, const char*, const char*, const char*, const char*, const char*, long unsigned int, long unsigned int)}
In file included from webserver.cpp:58:
/usr/include/microhttpd.h:3465:49: note:   initializing argument 3 of 'MHD_PostProcessor* MHD_create_post_processor(MHD_Connection*, size_t, MHD_PostDataIterator, void*)'
 3465 |                            MHD_PostDataIterator iter, void *iter_cls);
      |                            ~~~~~~~~~~~~~~~~~~~~~^~~~
webserver.cpp: In constructor 'Webserver::Webserver(int)':
webserver.cpp:1526:16: error: invalid conversion from 'int (*)(void*, MHD_Connection*, const char*, const char*, const char*, const char*, size_t*, void**)' {aka 'int (*)(void*, MHD_Connection*, const char*, const char*, const char*, const char*, long unsigned int*, void**)'} to 'MHD_AccessHandlerCallback' {aka 'MHD_Result (*)(void*, MHD_Connection*, const char*, const char*, const char*, const char*, long unsigned int*, void**)'} [-fpermissive]
 1526 |    NULL, NULL, &Webserver::HandlerEP, this,
      |                ^~~~~~~~~~~~~~~~~~~~~
      |                |
      |                int (*)(void*, MHD_Connection*, const char*, const char*, const char*, const char*, size_t*, void**) {aka int (*)(void*, MHD_Connection*, const char*, const char*, const char*, const char*, long unsigned int*, void**)}
In file included from webserver.cpp:58:
/usr/include/microhttpd.h:2428:45: note:   initializing argument 5 of 'MHD_Daemon* MHD_start_daemon(unsigned int, uint16_t, MHD_AcceptPolicyCallback, void*, MHD_AccessHandlerCallback, void*, ...)'
 2428 |                   MHD_AccessHandlerCallback dh, void *dh_cls,
      |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
make[1]: *** [Makefile:43: webserver.o] Error 1


Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openzwave-controlpanel_0.2a+git20161006.a390f35-2.log.gz
Type: application/gzip
Size: 7582 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-iot-maintainers/attachments/20200708/d1ff73dd/attachment.gz>


More information about the Debian-iot-maintainers mailing list