Build from Source: Compiler errors
Added by Stefan Kurek over 1 year 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!
Replies (1)
RE: Build from Source: Compiler errors - Added by Matthias Van Ceulebroeck 10 months ago
Hello Stefan,
I apologize for the very late response, it has been very busy lately.
The array include was already added in a pull request (perhaps one of yours?).
SSL shouldn't interfere with this backend at all. May I ask on what system you are compiling and with what versions?
For the boost error, die the linker corretly link the boost thread library, it seems to me like it may not?
Best,
Matthias