-
Notifications
You must be signed in to change notification settings - Fork 478
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
error with httpd? during build and compile #527
Comments
this is some type of failure that was introduced with the release of libmicrohttpd 0.9.71 it looks like. See also: |
similar problem reported in the Ola open-source project: one user reported success with installing libmicrohttpd using macports instead of home-brew, and then replacing the microhttpd header file with this one: this seems like something that xmr-stak dev team would need to patch, if I'm not mistaken, since the upstream changes in libmicrohttpd broke this. I tried taking the latest microhttpd.h file from the upstream GNU linux project page directly: UPDATE: found this merge request where it looks like a fix was already checked into another branch: Fix is here: I can confirm that if I download the following two files: I am them able to compile successfully with just a warning generated here: |
Erics-iMac:xmr-stak-cpu-master folderhub$ sudo make install
Consolidate compiler generated dependencies of target xmr-stak-c
[ 38%] Built target xmr-stak-c
Consolidate compiler generated dependencies of target xmr-stak-cpu
[ 44%] Building CXX object CMakeFiles/xmr-stak-cpu.dir/httpd.cpp.o
/Users/folderhub/Downloads/xmr-stak-cpu-master/httpd.cpp:133:6: error: no matching
function for call to 'MHD_start_daemon'
d = MHD_start_daemon(MHD_USE_THREAD_PER_CONNECTION,
^~~~~~~~~~~~~~~~
/usr/local/include/microhttpd.h:2440:1: note: candidate function not viable: no
known 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 *,
unsigned long , void **)') to 'MHD_AccessHandlerCallback' (aka 'MHD_Result
()(void *, MHD_Connection *, const char *, const char *, const char *, const
char *, unsigned long *, void **)') for 5th argument
MHD_start_daemon (unsigned int flags,
^
1 error generated.
make[2]: *** [CMakeFiles/xmr-stak-cpu.dir/httpd.cpp.o] Error 1
make[1]: *** [CMakeFiles/xmr-stak-cpu.dir/all] Error 2
make: *** [all] Error 2
Erics-iMac:xmr-stak-cpu-master folderhub$
The text was updated successfully, but these errors were encountered: