JLospinoso / abrade

A fast Web API scraper written in C++ and built on Boost ASIO
https://jlospinoso.github.io/cpp/developing/software/2017/09/15/abrade-web-scraper.html
GNU Affero General Public License v3.0
44 stars 4 forks source link

Failure to compile on OSX 10.12.6 - help? #1

Open evandrix opened 6 years ago

evandrix commented 6 years ago

The output of cmake . && make reproduced below:


[  9%] Building CXX object CMakeFiles/abradelib.dir/Options.cpp.o
[ 18%] Building CXX object CMakeFiles/abradelib.dir/Generator.cpp.o
[ 27%] Building CXX object CMakeFiles/abradelib.dir/Exception.cpp.o
[ 36%] Building CXX object CMakeFiles/abradelib.dir/Controller.cpp.o
[ 45%] Linking CXX static library libabradelib.a
[ 45%] Built target abradelib
Scanning dependencies of target abrade
[ 54%] Building CXX object CMakeFiles/abrade.dir/main.cpp.o
[ 63%] Linking CXX executable abrade
undef: _ERR_remove_thread_state
undef: _TLSv1_2_client_method
undef: _SSL_COMP_free_compression_methods
undef: _TLSv1_1_server_method
undef: _TLSv1_1_method
undef: _TLSv1_1_client_method
undef: _TLSv1_2_method
undef: _TLSv1_2_server_method
Undefined symbols for architecture x86_64:
  "_ERR_remove_thread_state", referenced from:
      boost::asio::ssl::detail::openssl_init_base::do_init::~do_init() in lto.o
  "_TLSv1_2_client_method", referenced from:
      boost::asio::ssl::context::context(boost::asio::ssl::context_base::method) in lto.o
  "_SSL_COMP_free_compression_methods", referenced from:
      boost::asio::ssl::detail::openssl_init_base::do_init::~do_init() in lto.o
  "_TLSv1_1_server_method", referenced from:
      boost::asio::ssl::context::context(boost::asio::ssl::context_base::method) in lto.o
  "_TLSv1_1_method", referenced from:
      boost::asio::ssl::context::context(boost::asio::ssl::context_base::method) in lto.o
  "_TLSv1_1_client_method", referenced from:
      boost::asio::ssl::context::context(boost::asio::ssl::context_base::method) in lto.o
  "_TLSv1_2_method", referenced from:
      boost::asio::ssl::context::context(boost::asio::ssl::context_base::method) in lto.o
  "_TLSv1_2_server_method", referenced from:
      boost::asio::ssl::context::context(boost::asio::ssl::context_base::method) in lto.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [abrade] Error 1
make[1]: *** [CMakeFiles/abrade.dir/all] Error 2
make: *** [all] Error 2```
JLospinoso commented 6 years ago

@evandrix Hi, what version of Boost are you using?