You are not logged in.
I am getting this error from `pacaur -S cpprestsdk`:
[ 82%] Building CXX object src/CMakeFiles/cpprest.dir/pplx/threadpool.cpp.o
In file included from /usr/include/websocketpp/config/asio_client.hpp:33:0,
from /home/radu/.cache/pacaur/cpprestsdk/src/cpprestsdk-2.10.0/Release/src/websockets/client/ws_client_wspp.cpp:45:
/usr/include/websocketpp/transport/asio/security/tls.hpp: In member function ‘std::error_code websocketpp::transport::asio::tls_socket::connection::translate_ec(ErrorCodeType)’:
/usr/include/websocketpp/transport/asio/security/tls.hpp:358:47: error: ‘SSL_R_SHORT_READ’ was not declared in this scope
if (ERR_GET_REASON(ec.value()) == SSL_R_SHORT_READ) {
^~~~~~~~~~~~~~~~
/usr/include/websocketpp/transport/asio/security/tls.hpp:358:47: note: suggested alternative: ‘SSL_F_SSL_READ’
if (ERR_GET_REASON(ec.value()) == SSL_R_SHORT_READ) {
^~~~~~~~~~~~~~~~
SSL_F_SSL_READ
[ 86%] Building CXX object src/CMakeFiles/cpprest.dir/pplx/pplxlinux.cpp.o
I tried to install openssl-1.0 as recommended in some posts, but didn't help.
Last edited by hdoradu (2017-12-17 22:17:49)
Offline
The comments say to do more than just install openssl-1.0. This is an incompatibility with openssl 1.1, so you have to force it to use 1.0 as well.
Offline
True,
There is a comment on the actual cpprestsdk page which I missed.
It does not appear this will be fixed soon. Here's the issue in their repo: https://github.com/Microsoft/cpprestsdk/issues/56
As a workaround, you can the following cmake flags to the PKGBUILD:-DOPENSSL_INCLUDE_DIR=/usr/include/openssl-1.0 \
-DOPENSSL_SSL_LIBRARY=/usr/lib/openssl-1.0/libssl.so \
-DOPENSSL_CRYPTO_LIBRARY=/usr/lib/openssl-1.0/libcrypto.so \If you have openssl-1.0 in the specified path of course.
Also, applying this patch works with the latest openssl.
Thanks.
Last edited by hdoradu (2017-12-17 22:18:17)
Offline
Please remember to mark your thread [SOLVED] (edit the title of your first post).
Offline