← Back to team overview

dolfin team mailing list archive

[Question #134125]: Dolfin 0.9.9 Link problem with Dorsal 0.8.1 on SnowLeopard

 

New question #134125 on DOLFIN:
https://answers.launchpad.net/dolfin/+question/134125

I used Dosal to install the stable version of FEniCS project. All packages have been installed successfully but Dolfin. It has a link error coming from one file: Parameters.cpp. Could any one help? Thanks. The following is a copy of the error.

Linking CXX shared library libdolfin.dylib
Undefined symbols:
  "boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > const& boost::program_options::validators::get_single_string<char>(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool)in Parameters.cpp.o
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > const& boost::program_options::validators::get_single_string<char>(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool)in Parameters.cpp.o
  "typeinfo for boost::program_options::value_semantic_codecvt_helper<char>", referenced from:
      typeinfo for boost::program_options::typed_value<int, char>in Parameters.cpp.o
      typeinfo for boost::program_options::typed_value<bool, char>in Parameters.cpp.o
      typeinfo for boost::program_options::typed_value<double, char>in Parameters.cpp.o
      typeinfo for boost::program_options::typed_value<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>in Parameters.cpp.o
  "vtable for boost::program_options::value_semantic_codecvt_helper<char>", referenced from:
      boost::program_options::typed_value<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>* boost::program_options::value<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)in Parameters.cpp.o
      boost::program_options::typed_value<double, char>* boost::program_options::value<double>(double*)in Parameters.cpp.o
      boost::program_options::typed_value<bool, char>* boost::program_options::value<bool>(bool*)in Parameters.cpp.o
      boost::program_options::typed_value<int, char>* boost::program_options::value<int>(int*)in Parameters.cpp.o
      boost::program_options::typed_value<bool, char>::~typed_value()in Parameters.cpp.o
      boost::program_options::typed_value<bool, char>::~typed_value()in Parameters.cpp.o
      boost::program_options::typed_value<double, char>::~typed_value()in Parameters.cpp.o
      boost::program_options::typed_value<double, char>::~typed_value()in Parameters.cpp.o
      boost::program_options::typed_value<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>::~typed_value()in Parameters.cpp.o
      boost::program_options::typed_value<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>::~typed_value()in Parameters.cpp.o
      boost::program_options::typed_value<int, char>::~typed_value()in Parameters.cpp.o
      boost::program_options::typed_value<int, char>::~typed_value()in Parameters.cpp.o
      boost::program_options::typed_value<int, char>::~typed_value()in Parameters.cpp.o
      boost::program_options::typed_value<int, char>::~typed_value()in Parameters.cpp.o
      boost::program_options::typed_value<bool, char>::~typed_value()in Parameters.cpp.o
      boost::program_options::typed_value<bool, char>::~typed_value()in Parameters.cpp.o
      boost::program_options::typed_value<double, char>::~typed_value()in Parameters.cpp.o
      boost::program_options::typed_value<double, char>::~typed_value()in Parameters.cpp.o
      boost::program_options::typed_value<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>::~typed_value()in Parameters.cpp.o
      boost::program_options::typed_value<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>::~typed_value()in Parameters.cpp.o
  "boost::program_options::abstract_variables_map::operator[](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const", referenced from:
      dolfin::Parameters::read_vm(boost::program_options::variables_map&, dolfin::Parameters&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in Parameters.cpp.o
      dolfin::Parameters::read_vm(boost::program_options::variables_map&, dolfin::Parameters&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in Parameters.cpp.o
      dolfin::Parameters::read_vm(boost::program_options::variables_map&, dolfin::Parameters&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in Parameters.cpp.o
      dolfin::Parameters::read_vm(boost::program_options::variables_map&, dolfin::Parameters&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in Parameters.cpp.o
  "vtable for boost::program_options::validation_error", referenced from:
      boost::program_options::validation_error::validation_error(boost::program_options::validation_error const&)in Parameters.cpp.o
      boost::program_options::validation_error::~validation_error()in Parameters.cpp.o
      boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::invalid_option_value> >::rethrow() constin Parameters.cpp.o
      boost::exception_detail::error_info_injector<boost::program_options::validation_error>::~error_info_injector()in Parameters.cpp.o
      boost::program_options::invalid_option_value::~invalid_option_value()in Parameters.cpp.o
      boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::validation_error> >::rethrow() constin Parameters.cpp.o
      boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::validation_error> >::rethrow() constin Parameters.cpp.o
      boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::invalid_option_value> >::clone() constin Parameters.cpp.o
      boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::invalid_option_value> >::clone() constin Parameters.cpp.o
      boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::validation_error> >::clone() constin Parameters.cpp.o
      boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::validation_error> >::clone() constin Parameters.cpp.o
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > const& boost::program_options::validators::get_single_string<char>(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool)in Parameters.cpp.o
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > const& boost::program_options::validators::get_single_string<char>(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool)in Parameters.cpp.o
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > const& boost::program_options::validators::get_single_string<char>(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool)in Parameters.cpp.o
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > const& boost::program_options::validators::get_single_string<char>(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool)in Parameters.cpp.o
      std::basic_string<char, std::char_traits<char>, std::allocator<char> > const& boost::program_options::validators::get_single_string<char>(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool)in Parameters.cpp.o
      void boost::program_options::validate<double, char>(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, double*, long)in Parameters.cpp.o
      void boost::program_options::validate<int, char>(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, int*, long)in Parameters.cpp.o
      boost::program_options::invalid_option_value::~invalid_option_value()in Parameters.cpp.o
      boost::exception_detail::error_info_injector<boost::program_options::invalid_option_value>::~error_info_injector()in Parameters.cpp.o
  "boost::program_options::options_description_easy_init::operator()(char const*, boost::program_options::value_semantic const*, char const*)", referenced from:
      dolfin::Parameters::add_parameter_set_to_po(boost::program_options::options_description&, dolfin::Parameters const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) constin Parameters.cpp.o
      dolfin::Parameters::add_parameter_set_to_po(boost::program_options::options_description&, dolfin::Parameters const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) constin Parameters.cpp.o
      dolfin::Parameters::add_parameter_set_to_po(boost::program_options::options_description&, dolfin::Parameters const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) constin Parameters.cpp.o
      dolfin::Parameters::add_parameter_set_to_po(boost::program_options::options_description&, dolfin::Parameters const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) constin Parameters.cpp.o
  "boost::program_options::invalid_option_value::invalid_option_value(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
      void boost::program_options::validate<double, char>(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, double*, long)in Parameters.cpp.o
      void boost::program_options::validate<int, char>(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, int*, long)in Parameters.cpp.o
  "boost::program_options::operator<<(std::basic_ostream<char, std::char_traits<char> >&, boost::program_options::options_description const&)", referenced from:
      dolfin::Parameters::parse_dolfin(int, char**)in Parameters.cpp.o
  "boost::program_options::arg", referenced from:
      boost::program_options::typed_value<int, char>::name() constin Parameters.cpp.o
      boost::program_options::typed_value<int, char>::name() constin Parameters.cpp.o
      boost::program_options::typed_value<bool, char>::name() constin Parameters.cpp.o
      boost::program_options::typed_value<bool, char>::name() constin Parameters.cpp.o
      boost::program_options::typed_value<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>::name() constin Parameters.cpp.o
      boost::program_options::typed_value<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>::name() constin Parameters.cpp.o
      boost::program_options::typed_value<double, char>::name() constin Parameters.cpp.o
      boost::program_options::typed_value<double, char>::name() constin Parameters.cpp.o
  "boost::program_options::notify(boost::program_options::variables_map&)", referenced from:
      dolfin::Parameters::parse_dolfin(int, char**)in Parameters.cpp.o
  "boost::program_options::detail::cmdline::cmdline(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)", referenced from:
      boost::program_options::basic_command_line_parser<char>::basic_command_line_parser(int, char**)in Parameters.cpp.o
  "boost::program_options::validation_error::what() const", referenced from:
      vtable for boost::exception_detail::error_info_injector<boost::program_options::validation_error>in Parameters.cpp.o
      vtable for boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::validation_error> >in Parameters.cpp.o
      vtable for boost::exception_detail::error_info_injector<boost::program_options::invalid_option_value>in Parameters.cpp.o
      vtable for boost::program_options::invalid_option_valuein Parameters.cpp.o
      vtable for boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::program_options::invalid_option_value> >in Parameters.cpp.o
  "boost::program_options::options_description::m_default_line_length", referenced from:
      dolfin::Parameters::parse_dolfin(int, char**)in Parameters.cpp.o
  "boost::program_options::value_semantic_codecvt_helper<char>::parse(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool) const", referenced from:
      vtable for boost::program_options::typed_value<int, char>in Parameters.cpp.o
      vtable for boost::program_options::typed_value<bool, char>in Parameters.cpp.o
      vtable for boost::program_options::typed_value<double, char>in Parameters.cpp.o
      vtable for boost::program_options::typed_value<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>in Parameters.cpp.o
  "boost::program_options::validate(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*, int)", referenced from:
      boost::program_options::typed_value<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, char>::xparse(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) constin Parameters.cpp.o
  "typeinfo for boost::program_options::validation_error", referenced from:
      typeinfo for boost::exception_detail::error_info_injector<boost::program_options::validation_error>in Parameters.cpp.o
      typeinfo for boost::program_options::invalid_option_valuein Parameters.cpp.o
  "boost::program_options::options_description::add_options()", referenced from:
      dolfin::Parameters::add_parameter_set_to_po(boost::program_options::options_description&, dolfin::Parameters const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) constin Parameters.cpp.o
      dolfin::Parameters::add_parameter_set_to_po(boost::program_options::options_description&, dolfin::Parameters const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) constin Parameters.cpp.o
      dolfin::Parameters::add_parameter_set_to_po(boost::program_options::options_description&, dolfin::Parameters const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) constin Parameters.cpp.o
      dolfin::Parameters::add_parameter_set_to_po(boost::program_options::options_description&, dolfin::Parameters const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >) constin Parameters.cpp.o
      dolfin::Parameters::parse_dolfin(int, char**)in Parameters.cpp.o
  "vtable for boost::program_options::variables_map", referenced from:
      dolfin::Parameters::parse_dolfin(int, char**)in Parameters.cpp.o
      dolfin::Parameters::parse_dolfin(int, char**)in Parameters.cpp.o
  "boost::program_options::detail::cmdline::set_options_description(boost::program_options::options_description const&)", referenced from:
      boost::program_options::basic_command_line_parser<char>::options(boost::program_options::options_description const&)in Parameters.cpp.o
  "boost::program_options::to_internal(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)", referenced from:
      std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > boost::program_options::to_internal<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)in Parameters.cpp.o
  "boost::program_options::validate(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, bool*, int)", referenced from:
      boost::program_options::typed_value<bool, char>::xparse(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) constin Parameters.cpp.o
  "boost::program_options::validators::check_first_occurrence(boost::any const&)", referenced from:
      void boost::program_options::validate<double, char>(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, double*, long)in Parameters.cpp.o
      void boost::program_options::validate<int, char>(boost::any&, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, int*, long)in Parameters.cpp.o
  "boost::program_options::detail::cmdline::set_additional_parser(boost::function1<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>)", referenced from:
      boost::program_options::basic_command_line_parser<char>::extra_parser(boost::function1<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&>)in Parameters.cpp.o
  "boost::program_options::detail::cmdline::run()", referenced from:
      boost::program_options::basic_command_line_parser<char>::run()  in Parameters.cpp.o
  "boost::program_options::variables_map::variables_map()", referenced from:
      dolfin::Parameters::parse_dolfin(int, char**)in Parameters.cpp.o
  "boost::program_options::options_description_easy_init::operator()(char const*, char const*)", referenced from:
      dolfin::Parameters::parse_dolfin(int, char**)in Parameters.cpp.o
  "boost::program_options::options_description::options_description(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)", referenced from:
      dolfin::Parameters::parse_dolfin(int, char**)in Parameters.cpp.o
  "boost::program_options::store(boost::program_options::basic_parsed_options<char> const&, boost::program_options::variables_map&, bool)", referenced from:
      dolfin::Parameters::parse_dolfin(int, char**)in Parameters.cpp.o
  "boost::program_options::detail::cmdline::style(int)", referenced from:
      boost::program_options::basic_command_line_parser<char>::style(int)in Parameters.cpp.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [dolfin/libdolfin.0.9.9.dylib] Error 1
make[1]: *** [dolfin/CMakeFiles/dolfin.dir/all] Error 2
make: *** [all] Error 2
Failure with exit status: 2
Exit message: There was a problem building dolfin-0.9.9.

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.