You are not logged in.

#1 2017-12-17 21:36:57

hdoradu
Member
Registered: 2017-03-12
Posts: 7

Failed to install cpprestsdk

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

#2 2017-12-17 21:43:24

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: Failed to install cpprestsdk

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

#3 2017-12-17 22:15:48

hdoradu
Member
Registered: 2017-03-12
Posts: 7

Re: Failed to install cpprestsdk

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

#4 2017-12-18 00:30:06

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: Failed to install cpprestsdk

Please remember to mark your thread [SOLVED] (edit the title of your first post).

Offline

Board footer

Powered by FluxBB