Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 642792 - net-libs/libmicrohttpd: suspect invalid source configuration set in ebuild (should be MHD_USE_AUTO)
Summary: net-libs/libmicrohttpd: suspect invalid source configuration set in ebuild (s...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-31 03:00 UTC by R030t1
Modified: 2018-11-12 19:43 UTC (History)
0 users

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 R030t1 2017-12-31 03:00:52 UTC
Greenbone is a program that uses libmicrohttpd:

# gsad -f --listen=127.0.0.1 --mlisten=127.0.0.1 --mport=9390
Warning: MHD_USE_THREAD_PER_CONNECTION must be used only with MHD_USE_INTERNAL_POLLING_THREAD. Flag MHD_USE_INTERNAL_POLLING_THREAD was added. Consider setting MHD_USE_INTERNAL_POLLING_THREAD explicitly.
Warning: MHD_USE_THREAD_PER_CONNECTION must be used only with MHD_USE_INTERNAL_POLLING_THREAD. Flag MHD_USE_INTERNAL_POLLING_THREAD was added. Consider setting MHD_USE_INTERNAL_POLLING_THREAD explicitly.
Warning: MHD_USE_THREAD_PER_CONNECTION must be used only with MHD_USE_INTERNAL_POLLING_THREAD. Flag MHD_USE_INTERNAL_POLLING_THREAD was added. Consider setting MHD_USE_INTERNAL_POLLING_THREAD explicitly.

Please refer to https://lists.gnu.org/archive/html/libmicrohttpd/2017-04/msg00021.html, containing a report of a similar issue and the suggestion to use MHD_USE_AUTO. For some reason the configuration set in the ebuild seems to have broken libmicrohttpd to the point it is not usable:

$ wget localhost:80
--2017-12-30 20:54:17--  http://localhost/
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9
Length: unspecified
Saving to: ‘index.html’

index.html              [ <=>              ]      51  --.-KB/s    in 0s      

2017-12-30 20:54:17 (7.27 MB/s) - Read error at byte 51 (Connection reset by peer).Retrying.

Ad infinitum.


Configuration is:

# equery uses net-libs/libmicrohttpd
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for net-libs/libmicrohttpd-0.9.58:
 U I
 - - abi_x86_32  : 32-bit (x86) libraries
 + + epoll       : use epoll() system call
 + + messages    : enable error messages
 + + ssl         : Add support for Secure Socket Layer connections
 - - static-libs : Build static versions of dynamic libraries as well
 - - test        : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in
                   make.conf/package.use anymore

Should I attach anything else?
Comment 1 Anthony Basile gentoo-dev 2018-01-08 12:03:53 UTC
Thanks for the report.  What version are we talking about here? I believe MHD_USE_THREAD_PER_CONNECTION has gone through some changes.  Can you test the very latest, 0.9.58?  I want to make sure it hasn't been fixed already.
Comment 2 Anthony Basile gentoo-dev 2018-11-12 19:43:56 UTC
(In reply to Anthony Basile from comment #1)
> Thanks for the report.  What version are we talking about here? I believe
> MHD_USE_THREAD_PER_CONNECTION has gone through some changes.  Can you test
> the very latest, 0.9.58?  I want to make sure it hasn't been fixed already.

okay no response.