Support #11975
openCompilation issue
0%
Description
Hi,
I am trying to compile WT (C++) using the following tools:
- OS: Redhat Linux 8.3
- gcc: version 8.3.1
- boost: version 1_77
- wt: version 4.9.2
I am trying to compile WT in 32bit format, so I used the following environment variable:
- export CFLAGS=-m32
- export CXXFLAGS=-m32
The compilation goes well until the last step where I get the following errors. I beleive that some functions related to boost::program_options are needed by WT that are not found in boost installation.
Am I correct? Any suggestion on how to resolve them?
[ 98%] Built target test.wt
[ 98%] Building CXX object test/CMakeFiles/test.http.dir/test.C.o
[ 98%] Building CXX object test/CMakeFiles/test.http.dir/http/HttpClientServerTest.C.o
[100%] Linking CXX executable test.http
../src/http/libwthttp.so.4.9.2: undefined reference to boost::program_options::validation_error::get_template[abi:cxx11](boost::program_options::validation_error::kind_t)'
boost::program_options::invalid_option_value::invalid_option_value(std::cxx11::basic_string, std::allocator > const&)'
../src/http/libwthttp.so.4.9.2: undefined reference to
../src/http/libwthttp.so.4.9.2: undefined reference to `boost::program_options::detail::cmdline::cmdline(std::vector<std::cxx11::basic_string, std::allocator >, std::allocator, std::allocator > > > const&)'
../src/http/libwthttp.so.4.9.2: undefined reference to boost::program_options::arg[abi:cxx11]'
boost::program_options::error_with_option_name::error_with_option_name(std::cxx11::basic_string, std::allocator > const&, std::cxx11::basic_string, std::allocator > const&, std::cxx11::basic_string, std::allocator > const&, int)'
../src/http/libwthttp.so.4.9.2: undefined reference to
../src/http/libwthttp.so.4.9.2: undefined reference to `boost::program_options::to_internal(std::cxx11::basic_string, std::allocator > const&)'
../src/http/libwthttp.so.4.9.2: undefined reference to boost::program_options::abstract_variables_map::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
boost::program_options::validate(boost::any&, std::vector, std::allocator >, std::allocator, std::allocator > > > const&, std::cxx11::basic_string, std::allocator >*, int)'
../src/http/libwthttp.so.4.9.2: undefined reference to
../src/http/libwthttp.so.4.9.2: undefined reference to `boost::program_options::options_description::options_description(std::cxx11::basic_string, std::allocator > const&, unsigned int, unsigned int)'
../src/http/libwthttp.so.4.9.2: undefined reference to boost::program_options::error_with_option_name::substitute_placeholders(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
boost::program_options::validate(boost::any&, std::vector, std::allocator >, std::allocator, std::allocator > > > const&, bool*, int)'
../src/http/libwthttp.so.4.9.2: undefined reference to
../src/http/libwthttp.so.4.9.2: undefined reference to `boost::program_options::value_semantic_codecvt_helper::parse(boost::any&, std::vector, std::allocator >, std::allocator, std::allocator > > > const&, bool) const'
collect2: error: ld returned 1 exit status
make[2]: *** [test/CMakeFiles/test.http.dir/build.make:120: test/test.http] Error 1
make[1]: *** [CMakeFiles/Makefile2:1694: test/CMakeFiles/test.http.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Updated by Matthias Van Ceulebroeck over 1 year ago
- Tracker changed from Bug to Support
It indeed seems it has issues linking boost::program_options
. How about pointing to that specific library in your LD_LIBRARY_PATH
?