[Bug debuginfod/26528] New: Build failure with libmicrohttpd-0.9.71
thaines.astro at gmail dot com
sourceware-bugzilla@sourceware.org
Mon Aug 24 04:29:03 GMT 2020
https://sourceware.org/bugzilla/show_bug.cgi?id=26528
Bug ID: 26528
Summary: Build failure with libmicrohttpd-0.9.71
Product: elfutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: debuginfod
Assignee: unassigned at sourceware dot org
Reporter: thaines.astro at gmail dot com
CC: elfutils-devel at sourceware dot org
Target Milestone: ---
libmicrohttpd changed the return types of many of their interfaces in 0.9.71.
See
https://git.gnunet.org/libmicrohttpd.git/commit/?id=6347f514aa2388e774d5bf356df8046864e5f73c
and
https://git.gnunet.org/libmicrohttpd.git/commit/?id=de872dea2d88f183c3f434c694acdcdb373f639c
for details.
This is causing build failures because the callback 'handler_cb' in
debuginfod.cxx no longer has the correct return type.
The note from libmicrohttpd suggests a way forward:
Introduce `enum MHD_Result` for #MHD_YES/#MHD_NO to avoid using 'int' so much.
Note that this change WILL cause compiler warnings until (most) MHD callbacks
in application code change their return type from 'int' to 'enum MHD_Result'.
That said, avoiding possible confusions of different enums is going to make
the code more robust in the future. For conditional compilation, test
for "MHD_VERSION >= 0x00097002".
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Elfutils-devel
mailing list