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

Fails to build with restinio-0.7.2 #702

Closed
yurivict opened this issue May 5, 2024 · 1 comment
Closed

Fails to build with restinio-0.7.2 #702

yurivict opened this issue May 5, 2024 · 1 comment

Comments

@yurivict
Copy link

yurivict commented May 5, 2024

In file included from /wrkdirs/usr/ports/devel/opendht/work/opendht-3.1.11/src/dht_proxy_client.cpp:26:
/usr/local/include/http_parser.h:157:19: error: redefinition of enumerator 'HTTP_STATUS_CONTINUE'
  HTTP_STATUS_MAP(XX)
                  ^
/usr/local/include/llhttp.h:190:3: note: previous definition is here
  HTTP_STATUS_CONTINUE = 100,
  ^
In file included from /wrkdirs/usr/ports/devel/opendht/work/opendht-3.1.11/src/dht_proxy_client.cpp:26:
/usr/local/include/http_parser.h:157:19: error: redefinition of enumerator 'HTTP_STATUS_SWITCHING_PROTOCOLS'
  HTTP_STATUS_MAP(XX)
                  ^
/usr/local/include/llhttp.h:191:3: note: previous definition is here
  HTTP_STATUS_SWITCHING_PROTOCOLS = 101,
  ^
/wrkdirs/usr/ports/devel/opendht/work/opendht-3.1.11/src/dht_proxy_server.cpp:119:9: error: no template named 'holds_alternative' in namespace 'restinio'; did you mean 'std::holds_alternative'?
    if (restinio::holds_alternative<restinio::connection_state::closed_t>(notice.cause())) {
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
        std::holds_alternative
/usr/include/c++/v1/variant:1502:16: note: 'std::holds_alternative' declared here
constexpr bool holds_alternative(const variant<_Types...>& __v) noexcept {
               ^
/wrkdirs/usr/ports/devel/opendht/work/opendht-3.1.11/src/dht_proxy_server.cpp:119:9: error: no template named 'holds_alternative' in namespace 'restinio'; did you mean 'std::holds_alternative'?
    if (restinio::holds_alternative<restinio::connection_state::closed_t>(notice.cause())) {
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
        std::holds_alternative
/usr/include/c++/v1/variant:1502:16: note: 'std::holds_alternative' declared here
constexpr bool holds_alternative(const variant<_Types...>& __v) noexcept {
               ^
2 errors generated.

Version: opendht-3.1.11
clang-18
FreeBSD 14.0

@aberaud
Copy link
Member

aberaud commented Jun 7, 2024

We moved to llhttp, fixing the issue and compatibility with latest restinio versions.
Thanks for the report.

@aberaud aberaud closed this as completed Jun 7, 2024
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

No branches or pull requests

2 participants