Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not build on Debian unstable #474

Closed
Zugschlus opened this issue Mar 30, 2021 · 1 comment · Fixed by #473
Closed

does not build on Debian unstable #474

Zugschlus opened this issue Mar 30, 2021 · 1 comment · Fixed by #473

Comments

@Zugschlus
Copy link
Contributor

Hi,

while trying to build on Debian unstable, I encountered the following build error:

cd /home/mh/packages/vzlogger/upstream/vzlogger/src && /usr/bin/c++ -DHAVE_CONFIG_HPP -I/home/mh/packages/vzlogger/upstream/vzlogger -I/home/mh/packages/vzlogger/upstream/vzlogger/include -W -Wall -Wextra -Werror -Wnon-virtual-dtor -Wno-system-headers -Winit-self -Wmissing-include-dirs -Wno-pragmas -Wredundant-decls -Wno-unused-parameter -std=c++11 -fpermissive -Wno-error=redundant-decls -Wno-ignored-qualifiers   -g3 -o CMakeFiles/vzlogger.dir/vzlogger.cpp.o -c /home/mh/packages/vzlogger/upstream/vzlogger/src/vzlogger.cpp
/home/mh/packages/vzlogger/upstream/vzlogger/src/vzlogger.cpp: In function ‘int main(int, char**)’:
/home/mh/packages/vzlogger/upstream/vzlogger/src/vzlogger.cpp:549:10: 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**)’} [-Werror=permissive]
  549 |          &handle_request, (void *)&mappings, MHD_OPTION_END);
      |          ^~~~~~~~~~~~~~~
      |          |
      |          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**)}

(git clone, cd, cmake -DBUILD_TEST=off, make). The same procedure on Debian stable works fine. This is likely to be an issue with a part of the more modern toolchain that comes with Debian's development version.

Debian unstable is the package source for Debian testing, which is currently frozen to be released as the next Debian stable 'bullseye' this summer. This is the point when your users are likely to encounter this error.

Please consider digging and fixing this issue.

@r00t-
Copy link
Contributor

r00t- commented Mar 30, 2021

i uploaded an MR with the the fix yesterday: #473

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants