facebook / wangle

Wangle is a framework providing a set of common client/server abstractions for building services in a consistent, modular, and composable way.
Apache License 2.0
3.04k stars 536 forks source link

Current build fails at BootstrapTest #34

Closed mjs6643 closed 7 years ago

mjs6643 commented 8 years ago

Boost 1.60, GCC 5.3, Ubuntu 14.04

[ 71%] Building CXX object CMakeFiles/BootstrapTest.dir/bootstrap/BootstrapTest.cpp.o Linking CXX executable bin/BootstrapTest /usr/bin/ld: CMakeFiles/BootstrapTest.dir/bootstrap/BootstrapTest.cpp.o: undefined reference to symbol 'ZN5boost10filesystem4pathdVERKS1' /usr/local/lib/libboost_filesystem.so.1.60.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: * [bin/BootstrapTest] Error 1 make[1]: * [CMakeFiles/BootstrapTest.dir/all] Error 2 make: *\ [all] Error 2

anirudhvr commented 8 years ago

This seems like a library order issue in the link command (-lboost_Filesystem should come after the .o). Can you share the failed build command for BootstrapTest?

VictorDegliame commented 8 years ago

I fixed the issue by adding boost filesystem to CMakeLists.txt and created the following pull request: https://github.com/facebook/wangle/pull/35

Hope that helps.

anirudhvr commented 8 years ago

Thanks! I'll merge it in shortly.