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

Linking with external Asio does not work #539

Open
barracuda156 opened this issue Jan 30, 2023 · 0 comments
Open

Linking with external Asio does not work #539

barracuda156 opened this issue Jan 30, 2023 · 0 comments

Comments

@barracuda156
Copy link

[ 11%] Linking CXX shared library librestbed.dylib
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/restbed-shared.dir/link.txt --verbose=ON
/opt/local/bin/g++-mp-12 -pipe -I/opt/local/libexec/openssl3/include -Os -DNDEBUG -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -Wall -Wextra -Weffc++ -pedantic -Wno-unknown-pragmas -Wno-deprecated-declarations -Wno-non-virtual-dtor -DASIO_STANDALONE=YES -Wno-deprecated-declarations -arch ppc -mmacosx-version-min=10.6 -dynamiclib -Wl,-headerpad_max_install_names -L/opt/local/libexec/openssl3/lib -L/opt/local/lib -Wl,-headerpad_max_install_names -compatibility_version 4.0.0 -current_version 4.7.0 -o librestbed.4.7.dylib -install_name /opt/local/lib/librestbed.4.dylib "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/detail/http_impl.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/detail/ipc_socket_impl.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/detail/service_impl.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/detail/session_impl.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/detail/socket_impl.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/detail/web_socket_impl.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/detail/web_socket_manager_impl.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/http.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/request.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/resource.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/response.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/rule.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/service.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/session.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/session_manager.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/settings.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/ssl_settings.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/string.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/uri.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/web_socket.cpp.o" "CMakeFiles/restbed-shared.dir/source/corvusoft/restbed/web_socket_message.cpp.o"  -Wl,-rpath,/opt/local/lib /usr/lib/libssl.dylib /usr/lib/libcrypto.dylib 
Undefined symbols:
  "_OPENSSL_sk_num", referenced from:
      __ZNK4asio3ssl20rfc2818_verificationclEbRNS0_14verify_contextE in http_impl.cpp.o
  "_TLS_server_method", referenced from:
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
  "_SSL_CTX_set0_tmp_dh_pkey", referenced from:
      __ZN4asio3ssl7context15use_tmp_dh_fileERKSs in service_impl.cpp.o
  "_PEM_read_bio_Parameters", referenced from:
      __ZN4asio3ssl7context15use_tmp_dh_fileERKSs in service_impl.cpp.o
  "_OPENSSL_sk_value", referenced from:
      __ZNK4asio3ssl20rfc2818_verificationclEbRNS0_14verify_contextE in http_impl.cpp.o
  "_SSL_CTX_set_options", referenced from:
      __ZN7restbed6detail8HttpImpl16ssl_socket_setupERKSt10shared_ptrINS_7RequestEERKS2_IKNS_11SSLSettingsEE in http_impl.cpp.o
      __ZN4asio3ssl7context11set_optionsEl in service_impl.cpp.o
  "_TLS_method", referenced from:
      __ZN7restbed6detail8HttpImpl16ssl_socket_setupERKSt10shared_ptrINS_7RequestEERKS2_IKNS_11SSLSettingsEE in http_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
  "_TLS_client_method", referenced from:
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
      __ZN4asio3ssl7contextC4ENS0_12context_base6methodE in service_impl.cpp.o
  "_SSL_CTX_get_default_passwd_cb", referenced from:
      __ZN7restbed6detail11ServiceImpl11https_startEv in service_impl.cpp.o
  "_EVP_PKEY_is_a", referenced from:
      __ZN7restbed6detail11ServiceImpl11https_startEv in service_impl.cpp.o
  "_SSL_CTX_get_default_passwd_cb_userdata", referenced from:
      __ZN4asio3ssl7contextD4Ev.isra.0 in http_impl.cpp.o
      __ZN7restbed6detail11ServiceImpl11https_startEv in service_impl.cpp.o
      __ZN7restbed6detail11ServiceImpl11https_startEv in service_impl.cpp.o
      __ZNSt23_Sp_counted_ptr_inplaceIN4asio3ssl7contextESaIvELN9__gnu_cxx12_Lock_policyE2EE10_M_disposeEv in service_impl.cpp.o
ld: symbol(s) not found
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