[Bug general/26195] New: 0.180 + master: build fails

kloczko.tomasz at gmail dot com sourceware-bugzilla@sourceware.org
Thu Jul 2 09:51:58 GMT 2020


https://sourceware.org/bugzilla/show_bug.cgi?id=26195

            Bug ID: 26195
           Summary: 0.180 + master: build fails
           Product: elfutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: general
          Assignee: unassigned at sourceware dot org
          Reporter: kloczko.tomasz at gmail dot com
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

g++ -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"/usr/share/locale"' -I. -I.. 
-I. -I. -I../lib -I.. -I. -I./../libelf -I./../libebl -I./../libdw
-I./../libdwelf      -std=c++11 -Wall -Wshadow -Wtrampolines -Wlogical-op
-Wduplicated-cond -Wnull-dereference -Wimplicit-fallthrough=5 -Werror -Wunused
-Wextra -Wstack-usage=262144   -O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-flto=auto -flto-partition=none -c -o debuginfod.o debuginfod.cxx
debuginfod.cxx: In function ‘int main(int, char**)’:
debuginfod.cxx:3157:38: 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]
 3157 |                                      handler_cb, NULL, /* handler
callback */
      |                                      ^~~~~~~~~~
      |                                      |
      |                                      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 debuginfod.cxx:94:
/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,
      |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~^~
debuginfod.cxx:3169:38: 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]
 3169 |                                      handler_cb, NULL, /* handler
callback */
      |                                      ^~~~~~~~~~
      |                                      |
      |                                      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 debuginfod.cxx:94:
/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]: *** [Makefile:606: debuginfod.o] Error 1
make[1]: *** [Makefile:498: all-recursive] Error 1
make: *** [Makefile:414: all] Error 2

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Elfutils-devel mailing list