Build from Source: Compiler errors
Added by Stefan Kurek 3 months ago
While building Wt 4.10.2 from source, I am facing issues frame make
ing.
Typing make
in the console (in the appropriate step from the installation guide) outputs a compiler error.
In src/Wt/Dbo/backend/Postgres.C
, std::array
is undeclared. (Add #include <array>
fixes this issue.)
Further errors with SSL were resolved by setting ENABLE_SSL
in CMakeLists.txt
to OFF
. (As this is mentioned to be optional by the installation guide, I hope this will not result in other issues.)
Upon recompilation, linking errors with Boost pop up:
[ 74%] Linking CXX executable test.wt
../src/libwt.so.4.10.2: undefined reference to `boost::detail::set_tss_data(void const*, void (*)(void (*)(void*), void*), void (*)(void*), void*, bool)'
../src/libwt.so.4.10.2: undefined reference to `boost::thread_detail::enter_once_region(boost::once_flag&)'
../src/libwt.so.4.10.2: undefined reference to `boost::thread_detail::commit_once_region(boost::once_flag&)'
../src/libwt.so.4.10.2: undefined reference to `boost::thread_detail::rollback_once_region(boost::once_flag&)'
I am using module
s and already tried Boost 1.55, 1.70 and 1.71, but the errors are the same. Could it be that cmake tries to compile Boost instead of linking against precompiled libraries?
Any pointers and solutions are welcome! Thank you in advance!