Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 779169 - net-p2p/xmr-stak-rx[webserver] 1.0.4 and 1.0.5 are broken with >=libmicrohttpd-0.9.71
Summary: net-p2p/xmr-stak-rx[webserver] 1.0.4 and 1.0.5 are broken with >=libmicrohttp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks: libmicrohttpd-0.9.71
  Show dependency tree
 
Reported: 2021-03-29 21:20 UTC by Karlson2k
Modified: 2021-05-05 13:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karlson2k 2021-03-29 21:20:30 UTC
All net-p2p/xmr-stak-rx versions are broken with new libmicrohttpd API.

The single build error:
FAILED: CMakeFiles/xmr-stak-rx-backend.dir/xmrstak/http/httpd.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DBACKEND_TYPE=cpu -DCONF_NO_CUDA -DCONF_NO_HWLOC -DCONF_NO_OPENCL -I/var/tmp/portage/net-p2p/xmr-stak-rx-1.0.5/work/xmr-stak-1.0.5-rx/. -I/var/tmp/portage/net-p2p/xmr-stak-rx-1.0.5/work/xmr-stak-1.0.5-rx/xmrstak/backend/cpu  -Wl,-z,noexecstack -march=native -mtune=native -march=native -mtune=native -O2 -pipe -fomit-frame-pointer -msse2 -maes -fPIC -std=c++11 -MD -MT CMakeFiles/xmr-stak-rx-backend.dir/xmrstak/http/httpd.cpp.o -MF CMakeFiles/xmr-stak-rx-backend.dir/xmrstak/http/httpd.cpp.o.d -o CMakeFiles/xmr-stak-rx-backend.dir/xmrstak/http/httpd.cpp.o -c /var/tmp/portage/net-p2p/xmr-stak-rx-1.0.5/work/xmr-stak-1.0.5-rx/xmrstak/http/httpd.cpp
/var/tmp/portage/net-p2p/xmr-stak-rx-1.0.5/work/xmr-stak-1.0.5-rx/xmrstak/http/httpd.cpp: In member function ‘bool httpd::start_daemon()’:
/var/tmp/portage/net-p2p/xmr-stak-rx-1.0.5/work/xmr-stak-1.0.5-rx/xmrstak/http/httpd.cpp:162:3: 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]
  162 |   &httpd::req_handler,
      |   ^~~~~~~~~~~~~~~~~~~
      |   |
      |   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 /var/tmp/portage/net-p2p/xmr-stak-rx-1.0.5/work/xmr-stak-1.0.5-rx/xmrstak/http/httpd.cpp:38:
/usr/include/microhttpd.h:2443:45: note:   initializing argument 5 of ‘MHD_Daemon* MHD_start_daemon(unsigned int, uint16_t, MHD_AcceptPolicyCallback, void*, MHD_AccessHandlerCallback, void*, ...)’
 2443 |                   MHD_AccessHandlerCallback dh, void *dh_cls,
      |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~


Can be easily patched to support new MHD versions.
Comment 1 Karlson2k 2021-03-29 21:23:02 UTC
Currently it is not fixed in the upstream git so -9999 is broken as well.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-30 15:48:04 UTC
candrews has last-rited this because dead upstream
Comment 3 Larry the Git Cow gentoo-dev 2021-05-05 13:42:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cce61a6ea403742d9248443c3a31a2362c24d08

commit 9cce61a6ea403742d9248443c3a31a2362c24d08
Author:     Craig Andrews <candrews@gentoo.org>
AuthorDate: 2021-05-05 13:41:01 +0000
Commit:     Craig Andrews <candrews@gentoo.org>
CommitDate: 2021-05-05 13:42:40 +0000

    net-p2p/xmr-stak-rx: remove last-rited package
    
    Closes: https://bugs.gentoo.org/779169
    Closes: https://bugs.gentoo.org/730102
    Closes: https://bugs.gentoo.org/715948
    Signed-off-by: Craig Andrews <candrews@gentoo.org>

 net-p2p/xmr-stak-rx/Manifest                  |  2 -
 net-p2p/xmr-stak-rx/files/xmr-stak-rx         | 24 ----------
 net-p2p/xmr-stak-rx/files/xmr-stak-rx.service | 32 -------------
 net-p2p/xmr-stak-rx/metadata.xml              | 17 -------
 net-p2p/xmr-stak-rx/xmr-stak-rx-1.0.4.ebuild  | 65 ---------------------------
 net-p2p/xmr-stak-rx/xmr-stak-rx-1.0.5.ebuild  | 65 ---------------------------
 net-p2p/xmr-stak-rx/xmr-stak-rx-9999.ebuild   | 65 ---------------------------
 7 files changed, 270 deletions(-)