Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FaustLive does not compile #99022

Closed
suhr opened this issue Sep 28, 2020 · 4 comments · Fixed by #99259
Closed

FaustLive does not compile #99022

suhr opened this issue Sep 28, 2020 · 4 comments · Fixed by #99259

Comments

@suhr
Copy link
Contributor

suhr commented Sep 28, 2020

Describe the bug

faustlive> ../../src/Network/FLServerHttp.cpp: In member function 'bool FLServerHttp::start()':
faustlive> ../../src/Network/FLServerHttp.cpp:78:32: 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]
faustlive> 78 |                                &answerToConnection,
faustlive> |                                ^~~~~~~~~~~~~~~~~~~
faustlive> |                                |
faustlive> |                                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**)}
faustlive> In file included from ../../src/Network/FLServerHttp.h:40,
faustlive> from ../../src/Network/FLServerHttp.cpp:22:
faustlive> /nix/store/xfjjhyxbrv9zylph4l6l7hpj4pys66k5-libmicrohttpd-0.9.71-dev/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*, ...)'
faustlive> 2428 |                   MHD_AccessHandlerCallback dh, void *dh_cls,
faustlive> |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
faustlive> ../../src/Network/FLServerHttp.cpp: In static member function 'static int FLServerHttp::answerToConnection(void*, MHD_Connection*, const char*, const char*, const char*, const char*, size_t*, void**)':
faustlive> ../../src/Network/FLServerHttp.cpp:214:121: 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]
faustlive> 214 |             con_info->postprocessor = MHD_create_post_processor(connection, POSTBUFFERSIZE, iteratePost, (void*)con_info);
faustlive> |                                                                                                                         ^
faustlive> |                                                                                                                         |
faustlive> |                                                                                                                         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)}
faustlive> In file included from ../../src/Network/FLServerHttp.h:40,
faustlive> from ../../src/Network/FLServerHttp.cpp:22:
faustlive> /nix/store/xfjjhyxbrv9zylph4l6l7hpj4pys66k5-libmicrohttpd-0.9.71-dev/include/microhttpd.h:3465:49: note:   initializing argument 3 of 'MHD_PostProcessor* MHD_create_post_processor(MHD_Connection*, size_t, MHD_PostDataIterator, void*)'
faustlive> 3465 |                            MHD_PostDataIterator iter, void *iter_cls);
faustlive> |                            ~~~~~~~~~~~~~~~~~~~~~^~~~
faustlive> make[2]: *** [Makefile:497: tmp/FLServerHttp.o] Error 1
faustlive> make[2]: *** Waiting for unfinished jobs....
faustlive> make[2]: Leaving directory '/build/source/Build/fldir'
faustlive> make[1]: *** [Makefile:37: unix] Error 2
faustlive> make[1]: Leaving directory '/build/source/Build'
faustlive> make: *** [Makefile:30: all] Error 2

To Reproduce

  1. nix profile install self#faustlive -L

Notify maintainers

@NegaNexus @magnetophon

@magnetophon
Copy link
Member

I was informed on slack that the dev branch has a commit that fixes this problem.

@suhr
Copy link
Contributor Author

suhr commented Sep 29, 2020

This is the fix, I guess: grame-cncm/faustlive@c16565d#diff-5abd81d274b8e78c9c2fcc2821f7a867R78

Can we add it to the derivative as a patch?

@magnetophon
Copy link
Member

I tested the latest commit on the dev branch, and that builds and runs.
Shall I do a PR?

@suhr I guess a patch might work as well, but what would be the advantages of going that route?
I can see not wanting to use a dev version of important libs and programs, but imho it's fine in this case.

@suhr
Copy link
Contributor Author

suhr commented Sep 30, 2020

Shall I do a PR?

Sure.

magnetophon added a commit to magnetophon/nixpkgs that referenced this issue Oct 1, 2020
magnetophon added a commit to magnetophon/nixpkgs that referenced this issue Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants