You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
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!
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.
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
The text was updated successfully, but these errors were encountered: