Closed frankvandenhurk closed 2 years ago
With alpine linux (also in a container) the same problem:
make[2]: Entering directory '/usr/local/spin/src/build/spinweb'
CC spinweb-spinweb.o
../../spinweb/spinweb.c: In function 'start_daemon':
../../spinweb/spinweb.c:621:35: warning: passing argument 5 of 'MHD_start_daemon' from incompatible pointer type [-Wincompatible-pointer-types]
621 | &answer_to_connection, NULL,
| ^~~~~~~~~~~~~~~~~~~~~
| |
| int (*)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, size_t *, void **) {aka int (*)(void *, struct MHD_Connection *,
const char *, const char *, const char *, const char *, long unsigned int *, void **)}
In file included from ../../spinweb/spinweb.c:4:
/usr/include/microhttpd.h:2480:45: note: expected 'MHD_AccessHandlerCallback' {aka 'enum MHD_Result (*)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsign
ed int *, void **)'} but argument is of type 'int (*)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, size_t *, void **)' {aka 'int (*)(void *, struct MHD_Connecti
on *, const char *, const char *, const char *, const char *, long unsigned int *, void **)'}
2480 | MHD_AccessHandlerCallback dh, void *dh_cls,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
../../spinweb/spinweb.c:630:35: warning: passing argument 5 of 'MHD_start_daemon' from incompatible pointer type [-Wincompatible-pointer-types]
630 | &answer_to_connection, NULL,
| ^~~~~~~~~~~~~~~~~~~~~
| |
| int (*)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, size_t *, void **) {aka int (*)(void *, struct MHD_Connection *,
const char *, const char *, const char *, const char *, long unsigned int *, void **)}
In file included from ../../spinweb/spinweb.c:4:
/usr/include/microhttpd.h:2480:45: note: expected 'MHD_AccessHandlerCallback' {aka 'enum MHD_Result (*)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, long unsign
ed int *, void **)'} but argument is of type 'int (*)(void *, struct MHD_Connection *, const char *, const char *, const char *, const char *, size_t *, void **)' {aka 'int (*)(void *, struct MHD_Connecti
on *, const char *, const char *, const char *, const char *, long unsigned int *, void **)'}
2480 | MHD_AccessHandlerCallback dh, void *dh_cls,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
Just tried it on a VM instead of a container, but same result so that's not the reason of the error.
Hi,
Thanks for the report. Can you try out the issue-85
branch in this repository? I pushed two commits which I think address these problems.
Caspar
Thank you, when using this branch no build errors on this part!!
Good to hear! I have merged these commits to the master branch.
When I try to build on Debian 11, I get:
When I try to build on Debian 9, I get:
Anything I can do to avoid this? Maybe it has something to do with the fact that I am running this debian versions in containers?
(background: I am using tcpdump on my router to create pcap files that I would like to use as a source for SPIN. That's why a container would fit my goal perfectly.)