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

Cannot build Docker image #6

Open
TheSlackOne opened this issue Jan 27, 2022 · 1 comment
Open

Cannot build Docker image #6

TheSlackOne opened this issue Jan 27, 2022 · 1 comment

Comments

@TheSlackOne
Copy link

$ ./build.sh
Sending build context to Docker daemon   2.56kB

Step 1/17 : FROM ubuntu:16.04
 ---> b6f507652425
Step 2/17 : RUN apt-get update && apt install -y git wget build-essential libleveldb-dev cmake automake libssl-dev libtool autoconf libjsonrpccpp-dev libjsoncpp-dev libcurl4-openssl-dev
 ---> Using cache
 ---> fef51ec66a64
Step 3/17 : RUN git clone --recursive https://github.com/Corvusoft/restbed
 ---> Using cache
 ---> 364fec049322
Step 4/17 : RUN mkdir restbed/build
 ---> Using cache
 ---> dcf714a48799
Step 5/17 : WORKDIR /restbed/build
 ---> Using cache
 ---> 278d4f08507f
Step 6/17 : RUN cmake ..
 ---> Using cache
 ---> 325346fb531c
Step 7/17 : RUN make install
 ---> Running in 7fb995fbb7cd
Scanning dependencies of target restbed-static
[  0%] Building CXX object CMakeFiles/restbed-static.dir/source/corvusoft/restbed/web_socket_message.cpp.o
[  0%] Building CXX object CMakeFiles/restbed-static.dir/source/corvusoft/restbed/rule.cpp.o
[  1%] Building CXX object CMakeFiles/restbed-static.dir/source/corvusoft/restbed/settings.cpp.o
[  1%] Building CXX object CMakeFiles/restbed-static.dir/source/corvusoft/restbed/detail/ipc_socket_impl.cpp.o
[  2%] Building CXX object CMakeFiles/restbed-static.dir/source/corvusoft/restbed/detail/web_socket_impl.cpp.o
�[91mIn file included from /restbed/dependency/openssl/include/openssl/conf.h:13:0,
                 from /restbed/dependency/asio/asio/include/asio/ssl/detail/openssl_types.hpp:23,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context_base.hpp:19,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context.hpp:23,
                 from /restbed/dependency/asio/asio/include/asio/ssl.hpp:18,
                 from /restbed/source/corvusoft/restbed/detail/socket_impl.hpp:29,
                 from /restbed/source/corvusoft/restbed/detail/web_socket_impl.cpp:11:
/restbed/dependency/openssl/include/openssl/bio.h:687:1: error: expected constructor, destructor, or type conversion before 'DEPRECATEDIN_1_1_0'
 DEPRECATEDIN_1_1_0(int BIO_get_port(const char *str, unsigned short *port_ptr))
 ^
�[0m�[91mIn file included from /restbed/dependency/asio/asio/include/asio/ssl/detail/openssl_types.hpp:23:0,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context_base.hpp:19,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context.hpp:23,
                 from /restbed/dependency/asio/asio/include/asio/ssl.hpp:18,
                 from /restbed/source/corvusoft/restbed/detail/socket_impl.hpp:29,
                 from /restbed/source/corvusoft/restbed/detail/web_socket_impl.cpp:11:
/restbed/dependency/openssl/include/openssl/conf.h:103:1: error: expected constructor, destructor, or type conversion before 'struct'
 struct conf_st {
 ^
�[0m�[91mIn file included from /restbed/dependency/openssl/include/openssl/asn1.h:23:0,
                 from /restbed/dependency/openssl/include/openssl/objects.h:15,
                 from /restbed/dependency/openssl/include/openssl/evp.h:28,
                 from /restbed/dependency/openssl/include/openssl/x509.h:18,
                 from /restbed/dependency/openssl/include/openssl/ssl.h:20,
                 from /restbed/dependency/asio/asio/include/asio/ssl/detail/openssl_types.hpp:24,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context_base.hpp:19,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context.hpp:23,
                 from /restbed/dependency/asio/asio/include/asio/ssl.hpp:18,
                 from /restbed/source/corvusoft/restbed/detail/socket_impl.hpp:29,
                 from /restbed/source/corvusoft/restbed/detail/web_socket_impl.cpp:11:
/restbed/dependency/openssl/include/openssl/bn.h:332:1: error: expected constructor, destructor, or type conversion before 'DEPRECATEDIN_0_9_8'
 DEPRECATEDIN_0_9_8(int
 ^
�[0m�[91m/restbed/dependency/openssl/include/openssl/bn.h:403:1: error: expected constructor, destructor, or type conversion before 'DEPRECATEDIN_0_9_8'
 DEPRECATEDIN_0_9_8(int BN_get_params(int which)) /* 0, mul, 1 high, 2 low, 3
 ^
�[0m�[91mIn file included from /restbed/dependency/openssl/include/openssl/objects.h:15:0,
                 from /restbed/dependency/openssl/include/openssl/evp.h:28,
                 from /restbed/dependency/openssl/include/openssl/x509.h:18,
                 from /restbed/dependency/openssl/include/openssl/ssl.h:20,
                 from /restbed/dependency/asio/asio/include/asio/ssl/detail/openssl_types.hpp:24,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context_base.hpp:19,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context.hpp:23,
                 from /restbed/dependency/asio/asio/include/asio/ssl.hpp:18,
                 from /restbed/source/corvusoft/restbed/detail/socket_impl.hpp:29,
                 from /restbed/source/corvusoft/restbed/detail/web_socket_impl.cpp:11:
/restbed/dependency/openssl/include/openssl/asn1.h:555:7: error: expected constructor, destructor, or type conversion before 'unsigned'
 const unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *x);
       ^
�[0m�[91mIn file included from /restbed/dependency/openssl/include/openssl/x509.h:22:0,
                 from /restbed/dependency/openssl/include/openssl/ssl.h:20,
                 from /restbed/dependency/asio/asio/include/asio/ssl/detail/openssl_types.hpp:24,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context_base.hpp:19,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context.hpp:23,
                 from /restbed/dependency/asio/asio/include/asio/ssl.hpp:18,
                 from /restbed/source/corvusoft/restbed/detail/socket_impl.hpp:29,
                 from /restbed/source/corvusoft/restbed/detail/web_socket_impl.cpp:11:
/restbed/dependency/openssl/include/openssl/ec.h:274:1: error: expected constructor, destructor, or type conversion before 'DEPRECATEDIN_1_2_0'
 DEPRECATEDIN_1_2_0(int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p,
 ^
�[0m�[91m/restbed/dependency/openssl/include/openssl/ec.h:543:1: error: expected constructor, destructor, or type conversion before 'DEPRECATEDIN_1_2_0'
 DEPRECATEDIN_1_2_0(int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group,
 ^
�[0m�[91m/restbed/dependency/openssl/include/openssl/ec.h:585:1: error: expected constructor, destructor, or type conversion before 'DEPRECATEDIN_1_2_0'
 DEPRECATEDIN_1_2_0(int EC_POINT_set_affine_coordinates_GF2m(const EC_GROUP *group,
 ^
�[0m�[91mIn file included from /restbed/dependency/openssl/include/openssl/x509.h:25:0,
                 from /restbed/dependency/openssl/include/openssl/ssl.h:20,
                 from /restbed/dependency/asio/asio/include/asio/ssl/detail/openssl_types.hpp:24,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context_base.hpp:19,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context.hpp:23,
                 from /restbed/dependency/asio/asio/include/asio/ssl.hpp:18,
                 from /restbed/source/corvusoft/restbed/detail/socket_impl.hpp:29,
                 from /restbed/source/corvusoft/restbed/detail/web_socket_impl.cpp:11:
/restbed/dependency/openssl/include/openssl/rsa.h:240:1: error: expected constructor, destructor, or type conversion before 'int'
 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);
 ^
�[0m�[91mIn file included from /restbed/dependency/openssl/include/openssl/dsa.h:25:0,
                 from /restbed/dependency/openssl/include/openssl/x509.h:26,
                 from /restbed/dependency/openssl/include/openssl/ssl.h:20,
                 from /restbed/dependency/asio/asio/include/asio/ssl/detail/openssl_types.hpp:24,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context_base.hpp:19,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context.hpp:23,
                 from /restbed/dependency/asio/asio/include/asio/ssl.hpp:18,
                 from /restbed/source/corvusoft/restbed/detail/socket_impl.hpp:29,
                 from /restbed/source/corvusoft/restbed/detail/web_socket_impl.cpp:11:
/restbed/dependency/openssl/include/openssl/dh.h:142:1: error: expected constructor, destructor, or type conversion before 'int'
 int DH_generate_parameters_ex(DH *dh, int prime_len, int generator,
 ^
�[0m�[91mIn file included from /restbed/dependency/openssl/include/openssl/x509.h:26:0,
                 from /restbed/dependency/openssl/include/openssl/ssl.h:20,
                 from /restbed/dependency/asio/asio/include/asio/ssl/detail/openssl_types.hpp:24,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context_base.hpp:19,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context.hpp:23,
                 from /restbed/dependency/asio/asio/include/asio/ssl.hpp:18,
                 from /restbed/source/corvusoft/restbed/detail/socket_impl.hpp:29,
                 from /restbed/source/corvusoft/restbed/detail/web_socket_impl.cpp:11:
/restbed/dependency/openssl/include/openssl/dsa.h:103:1: error: expected constructor, destructor, or type conversion before 'int'
 int DSA_sign(int type, const unsigned char *dgst, int dlen,
 ^
�[0m�[91m/restbed/dependency/openssl/include/openssl/dsa.h:127:1: error: expected constructor, destructor, or type conversion before 'int'
 int DSA_generate_parameters_ex(DSA *dsa, int bits,
 ^
�[0m�[91mIn file included from /restbed/dependency/openssl/include/openssl/ssl.h:20:0,
                 from /restbed/dependency/asio/asio/include/asio/ssl/detail/openssl_types.hpp:24,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context_base.hpp:19,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context.hpp:23,
                 from /restbed/dependency/asio/asio/include/asio/ssl.hpp:18,
                 from /restbed/source/corvusoft/restbed/detail/socket_impl.hpp:29,
                 from /restbed/source/corvusoft/restbed/detail/web_socket_impl.cpp:11:
/restbed/dependency/openssl/include/openssl/x509.h:731:1: error: expected constructor, destructor, or type conversion before 'DEPRECATEDIN_1_1_0'
 DEPRECATEDIN_1_1_0(ASN1_TIME *X509_CRL_get_nextUpdate(X509_CRL *crl))
 ^
�[0m�[91mIn file included from /restbed/dependency/openssl/include/openssl/ssl.h:26:0,
                 from /restbed/dependency/asio/asio/include/asio/ssl/detail/openssl_types.hpp:24,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context_base.hpp:19,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context.hpp:23,
                 from /restbed/dependency/asio/asio/include/asio/ssl.hpp:18,
                 from /restbed/source/corvusoft/restbed/detail/socket_impl.hpp:29,
                 from /restbed/source/corvusoft/restbed/detail/web_socket_impl.cpp:11:
/restbed/dependency/openssl/include/openssl/hmac.h:33:12: error: expected constructor, destructor, or type conversion before 'int'
 /*__owur*/ int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,
            ^
�[0m�[91mIn file included from /restbed/dependency/asio/asio/include/asio/ssl/detail/openssl_types.hpp:24:0,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context_base.hpp:19,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context.hpp:23,
                 from /restbed/dependency/asio/asio/include/asio/ssl.hpp:18,
                 from /restbed/source/corvusoft/restbed/detail/socket_impl.hpp:29,
                 from /restbed/source/corvusoft/restbed/detail/web_socket_impl.cpp:11:
/restbed/dependency/openssl/include/openssl/ssl.h:991:1: error: expected constructor, destructor, or type conversion before 'typedef'
 typedef enum {
 ^
/restbed/dependency/openssl/include/openssl/ssl.h:1042:3: error: 'OSSL_HANDSHAKE_STATE' does not name a type
 } OSSL_HANDSHAKE_STATE;
   ^
�[0m�[91m/restbed/dependency/openssl/include/openssl/ssl.h:1863:1: error: expected constructor, destructor, or type conversion before 'DEPRECATEDIN_1_1_0'
 DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_server_method(void))
 ^
/restbed/dependency/openssl/include/openssl/ssl.h:1878:1: error: expected constructor, destructor, or type conversion before 'DEPRECATEDIN_1_1_0'
 DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void))
 ^
�[0m�[91m/restbed/dependency/openssl/include/openssl/ssl.h:1997:8: error: 'OSSL_HANDSHAKE_STATE' does not name a type
 __owur OSSL_HANDSHAKE_STATE SSL_get_state(const SSL *ssl);
        ^
�[0m�[91mIn file included from /restbed/dependency/openssl/include/openssl/engine.h:23:0,
                 from /restbed/dependency/asio/asio/include/asio/ssl/detail/openssl_types.hpp:26,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context_base.hpp:19,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context.hpp:23,
                 from /restbed/dependency/asio/asio/include/asio/ssl.hpp:18,
                 from /restbed/source/corvusoft/restbed/detail/socket_impl.hpp:29,
                 from /restbed/source/corvusoft/restbed/detail/web_socket_impl.cpp:11:
/restbed/dependency/openssl/include/openssl/rand.h:46:1: error: expected constructor, destructor, or type conversion before 'void'
 void RAND_seed(const void *buf, int num);
 ^
�[0m�[91mIn file included from /restbed/dependency/openssl/include/openssl/engine.h:25:0,
                 from /restbed/dependency/asio/asio/include/asio/ssl/detail/openssl_types.hpp:26,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context_base.hpp:19,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context.hpp:23,
                 from /restbed/dependency/asio/asio/include/asio/ssl.hpp:18,
                 from /restbed/source/corvusoft/restbed/detail/socket_impl.hpp:29,
                 from /restbed/source/corvusoft/restbed/detail/web_socket_impl.cpp:11:
/restbed/dependency/openssl/include/openssl/err.h:261:1: error: expected constructor, destructor, or type conversion before 'DEPRECATEDIN_1_0_0'
 DEPRECATEDIN_1_0_0(void ERR_remove_state(unsigned long pid))
 ^
�[0m�[91mIn file included from /restbed/dependency/asio/asio/include/asio/ssl/context.hpp:758:0,
                 from /restbed/dependency/asio/asio/include/asio/ssl.hpp:18,
                 from /restbed/source/corvusoft/restbed/detail/socket_impl.hpp:29,
                 from /restbed/source/corvusoft/restbed/detail/web_socket_impl.cpp:11:
/restbed/dependency/asio/asio/include/asio/ssl/impl/context.ipp: In constructor 'asio::ssl::context::context(asio::ssl::context_base::method)':
/restbed/dependency/asio/asio/include/asio/ssl/impl/context.ipp:92:29: error: '::TLS_method' has not been declared
     handle_ = ::SSL_CTX_new(::TLS_method());
                             ^
�[0m�[91m/restbed/dependency/asio/asio/include/asio/ssl/impl/context.ipp:137:29: error: '::TLS_method' has not been declared
     handle_ = ::SSL_CTX_new(::TLS_method());
                             ^
�[0m�[91m/restbed/dependency/asio/asio/include/asio/ssl/impl/context.ipp:182:29: error: '::TLS_method' has not been declared
     handle_ = ::SSL_CTX_new(::TLS_method());
                             ^
�[0m�[91m/restbed/dependency/asio/asio/include/asio/ssl/impl/context.ipp:227:29: error: '::TLS_method' has not been declared
     handle_ = ::SSL_CTX_new(::TLS_method());
                             ^
�[0m�[91m/restbed/dependency/asio/asio/include/asio/ssl/impl/context.ipp:273:29: error: '::TLS_method' has not been declared
     handle_ = ::SSL_CTX_new(::TLS_method());
                             ^
�[0m�[91m/restbed/dependency/asio/asio/include/asio/ssl/impl/context.ipp:309:29: error: '::TLS_method' has not been declared
     handle_ = ::SSL_CTX_new(::SSLv23_method());
                             ^
�[0m�[91m/restbed/dependency/asio/asio/include/asio/ssl/impl/context.ipp:321:29: error: '::TLS_method' has not been declared
     handle_ = ::SSL_CTX_new(::TLS_method());
                             ^
�[0m�[91mIn file included from /restbed/dependency/openssl/include/openssl/bio.h:20:0,
                 from /restbed/dependency/openssl/include/openssl/conf.h:13,
                 from /restbed/dependency/asio/asio/include/asio/ssl/detail/openssl_types.hpp:23,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context_base.hpp:19,
                 from /restbed/dependency/asio/asio/include/asio/ssl/context.hpp:23,
                 from /restbed/dependency/asio/asio/include/asio/ssl.hpp:18,
                 from /restbed/source/corvusoft/restbed/detail/socket_impl.hpp:29,
                 from /restbed/source/corvusoft/restbed/detail/web_socket_impl.cpp:11:
/restbed/dependency/asio/asio/include/asio/ssl/impl/host_name_verification.ipp: In member function 'bool asio::ssl::host_name_verification::operator()(bool, asio::ssl::verify_context&) const':
/restbed/dependency/asio/asio/include/asio/ssl/impl/host_name_verification.ipp:63:5: error: 'OPENSSL_FILE' was not declared in this scope
     OPENSSL_free(peername);
     ^
/restbed/dependency/asio/asio/include/asio/ssl/impl/host_name_verification.ipp:63:5: error: 'OPENSSL_LINE' was not declared in this scope
     OPENSSL_free(peername);
     ^
�[0mCMakeFiles/restbed-static.dir/build.make:158: recipe for target 'CMakeFiles/restbed-static.dir/source/corvusoft/restbed/detail/web_socket_impl.cpp.o' failed
�[91mmake[2]: *** [CMakeFiles/restbed-static.dir/source/corvusoft/restbed/detail/web_socket_impl.cpp.o] Error 1
�[0mCMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/restbed-static.dir/all' failed
�[91mmake[1]: *** [CMakeFiles/restbed-static.dir/all] Error 2
�[0mMakefile:138: recipe for target 'all' failed
�[91mmake: *** [all] Error 2
@TheSlackOne
Copy link
Author

TheSlackOne commented Jan 27, 2022

Fixing PR: #8

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

1 participant