Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 730918 - dev-cpp/libjson-rpc-cpp-1.3.0 - /work/libjson-rpc-cpp-1.3.0/src/jsonrpccpp/server/connectors/httpserver.cpp:79:60: error: invalid conversion from ‘int (*)(void*, MHD_Connection*, const char*, const char*, const char*, const char*, size_t*, void**)’ to ...
Summary: dev-cpp/libjson-rpc-cpp-1.3.0 - /work/libjson-rpc-cpp-1.3.0/src/jsonrpccpp/se...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
: 733660 779154 (view as bug list)
Depends on:
Blocks: libmicrohttpd-0.9.71
  Show dependency tree
 
Reported: 2020-07-05 12:15 UTC by Dmitriy Baranov
Modified: 2022-02-26 23:26 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,44.88 KB, text/plain)
2020-07-05 12:16 UTC, Dmitriy Baranov
Details
emerge --info (einfo.txt,6.65 KB, text/plain)
2020-07-05 12:17 UTC, Dmitriy Baranov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitriy Baranov 2020-07-05 12:15:57 UTC
/var/tmp/portage/dev-cpp/libjson-rpc-cpp-1.3.0/work/libjson-rpc-cpp-1.3.0/src/jsonrpccpp/server/connectors/httpserver.cpp: In member function ‘virtual bool jsonrpc::HttpServer::StartListening()’:
/var/tmp/portage/dev-cpp/libjson-rpc-cpp-1.3.0/work/libjson-rpc-cpp-1.3.0/src/jsonrpccpp/server/connectors/httpserver.cpp:79:60: 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]

Reproducible: Always
Comment 1 Dmitriy Baranov 2020-07-05 12:16:57 UTC
Created attachment 647784 [details]
build.log
Comment 2 Dmitriy Baranov 2020-07-05 12:17:21 UTC
Created attachment 647786 [details]
emerge --info
Comment 3 Dmitriy Baranov 2020-07-05 12:19:44 UTC
Compilation failed with USE="http-server".
Tested with gcc-9.3.0 and clang-10.0.0.
Comment 4 Kuba Marek 2021-02-11 12:32:47 UTC
Issue in libjson-rpc-cpp: https://github.com/cinemast/libjson-rpc-cpp/issues/298
This seems to be fixed in a yet-unreleased commit https://github.com/cinemast/libjson-rpc-cpp/pull/299 . For now limiting dependency on libmicrohttpd to <=0.9.70 should help.
Comment 5 Simon 2021-05-20 17:17:37 UTC
Can confirm, worked around it for now by masking >=net-libs/libmicrohttpd-0.9.70
Comment 6 Ben Kohler gentoo-dev 2021-09-08 13:57:01 UTC
*** Bug 733660 has been marked as a duplicate of this bug. ***
Comment 7 Ben Kohler gentoo-dev 2021-09-08 13:57:18 UTC
*** Bug 779154 has been marked as a duplicate of this bug. ***
Comment 8 Larry the Git Cow gentoo-dev 2022-02-26 23:26:03 UTC
The bug has been closed via the following commit(s):

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

commit f71d36dc69b158caf414072506449ff107d68646
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-02-26 23:23:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-26 23:25:31 +0000

    dev-cpp/libjson-rpc-cpp: drop 1.3.0
    
    Broken with newer libmicrohttpd. 1.4.0, which is in tree, works.
    
    Closes: https://bugs.gentoo.org/730918
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-cpp/libjson-rpc-cpp/Manifest                   |  1 -
 .../libjson-rpc-cpp/libjson-rpc-cpp-1.3.0.ebuild   | 68 ----------------------
 2 files changed, 69 deletions(-)