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

Ubuntu build instructions on Debian, throws make error at "Httpd.cpp.o" #292

Open
PracticallyApplying opened this issue Jan 18, 2021 · 3 comments

Comments

@PracticallyApplying
Copy link

Running Ubuntu build instructions on Debian throws an error during 'make'.

It looks like this...:

[ 92%] Building CXX object CMakeFiles/xmrig-amd.dir/src/common/api/Httpd.cpp.o                                                                        
/home/user1/Apps/xmrig-amd/src/common/api/Httpd.cpp: In member function ‘bool Httpd::start()’:
/home/user1/Apps/xmrig-amd/src/common/api/Httpd.cpp:78:66: 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]
   78 | on = MHD_start_daemon(flags, m_port, nullptr, nullptr, &Httpd::handler, this, MHD_OPTION_END);
      |                                                        ^~~~~~~~~~~~~~~
      |                                                        |
      |                                                        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 /home/user1/Apps/xmrig-amd/src/common/api/Httpd.cpp:25:
/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[2]: *** [CMakeFiles/xmrig-amd.dir/build.make:875: CMakeFiles/xmrig-amd.dir/src/common/api/Httpd.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:97: CMakeFiles/xmrig-amd.dir/all] Error 2
make: *** [Makefile:103: all] Error 2

I don't know what this means. Any takers?

@ameliamartinson
Copy link

got the same error on arch

@camzilla1050
Copy link

Yep me too

@xmrig
Copy link
Owner

xmrig commented Jan 25, 2021

This project is outdated and no longer supported since it integrated into unified xmrig miner, also libmicrohttpd dependency removed long time ago.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants