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

[WebSocketpp] websocketpp/0.8.2: variable used which is deprecated. #26443

Open
qashoou opened this issue Jan 21, 2025 · 1 comment
Open

[WebSocketpp] websocketpp/0.8.2: variable used which is deprecated. #26443

qashoou opened this issue Jan 21, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@qashoou
Copy link

qashoou commented Jan 21, 2025

Description

Websocketpp is a header-only recipe that does not call CMake by itself in its build method, but when being consumed gives the error of a variable which is deprecated.

/tmp/.conan2/p/webso7a47c7731495b/p/include/websocketpp/transport/asio/base.hpp:82:10: error: ‘template<long unsigned int _Len, long unsigned int _Align> struct std::aligned_storage’ is deprecated [-Werror=deprecated-declarations]
   82 |     lib::aligned_storage<size>::type m_storage;

Package and Environment Details

  • Package Name/Version: websocketpp/0.8.2

  • Operating System+version: Ubuntu 24.04.1 LTS

  • Compiler+version: gcc version 13.2.0 (Ubuntu 13.2.0-23ubuntu4)

  • Conan version: Conan version 2.9.2

  • Python version: Python 3.12.3

Conan profile

[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.version=13
os=Linux
compiler.cppstd=17
compiler.libcxx=libstdc++11

[options]
protobuf/*:debug_suffix=False

Steps to reproduce

build missing the package, and when cmake picks it up with -Werror=deprecated-declarations, the error comes up.

Logs

Click to expand log
/tmp/.conan2/p/webso7a47c7731495b/p/include/websocketpp/transport/asio/base.hpp:82:10: error: ‘template<long unsigned int _Len, long unsigned int _Align> struct std::aligned_storage’ is deprecated [-Werror=deprecated-declarations]
   82 |     lib::aligned_storage<size>::type m_storage;
      |          ^~~~~~~~~~~~~~~
@qashoou qashoou added the bug Something isn't working label Jan 21, 2025
@AbrilRBS
Copy link
Member

AbrilRBS commented Jan 23, 2025

Hi @qashoou thanks a lot for the report

This issue comes from upstream's usage of a deprecated feature in C++23.

Is there a chance that you're enabling Werror on your consumer side? Disabling those for this specific flag would be enough to work around the issue, as the websocketpp recipe itself is a header-only recipe and is not built by itself, but as part of your consumers.

If you need extra help, providing a full compilation log would help tremendously, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants